Hello,
I am trying to create a view that shows the children of a node. The page view works but I cannot get the block view to show. Any ideas?
Is this something I am not configuring right or this module does not support block views?
Thank you!
Hello,
I am trying to create a view that shows the children of a node. The page view works but I cannot get the block view to show. Any ideas?
Is this something I am not configuring right or this module does not support block views?
Thank you!
Comments
Comment #1
ronan commentedViews integration should work in a block, but by default, drupal blocks to not know what page they are being generated on or what node you are looking at. Try this:
Add the nodehierarchy parent argument to the view.
Add the following code to the argument handling code:
That should display all children of the node you are currently looking at.
If you want to display the children of a given node that is the same wherever the block appears use:
where 12345 is the node id
R
Comment #2
kirilius commentedThank you!
Comment #3
bevinlorenzo commentedOh my gosh! I freakin love you Ronan! I have bee trying to figure this out all day! Send me paypal ID for reward!
Comment #4
ronan commentedHa ha, glad I could help. No reward necessary.
All the best
R
Comment #5
dgorton commentedJust cleaning