This question could be asked in numerous ways, so I'm just going to explain my situation.
I currently have a block that works fine listing any child nodes (node reference is used between the nodes). This works as it uses an Argument for the Node ID so it can list all the children in a nice list.
However, I wish to have this very list of child nodes - displayed in a sort of "Teaser List" from a seperate view. The reason this "new" view wont work - is because there is currently no Node ID to reference the children - as the block doesn't sit on the parent page anymore.
So my initial solution was to embed a view using views_embed_view with something like:
print views_embed_view('show_units_display', 'block_1', $node->nid);
And I would have this in my views template file for each result row. But seeing as the view itself sits on an entirely seperate page - no Node ID is passed here and there no results are displayed!
My overall outcome would look like this:
Node 1 - title
Node 1 - body
-- display list of children of node 1 here --
Node 2 - title
Node 2 - body
-- display list of children of node 2 here --
And so on...
Any help would be brilliant!
Cheers,
Garry.