I'd also like to request that next to the "Embed Children view" box, that there be a tickbox that says "Include siblings and parent". I'm attempting to create articles in a series, and it'd be kinda useful if I could have a way of just clicking something and ticking a box to get an index to those articles at the end of the article.
Comments
Comment #1
rhache commentedI have to agree with this sentiment. Sometimes it's the sibling relationship that matters, and this would make it easier if the module had this feature included.
Otherwise great module.
Thanks,
Rene
Comment #2
meecect commentedI made a view to do this. It's a block view, but you can tailor it however you'd like...as a attachment, for example.
Note, it's difficult to test the view from the views ui due to the way that it works. Essentially, it uses the 'default argument' feature to get an argument if none is provided. It uses this to automatically get the parent node id in the absence of an argument. So it probably wont work on the view UI page, but will when you view the block or attachment for an actual node.
View export:
Comment #3
Dracolyte commentedThanks for the code. I'm using it in D6.13 and it works great.
Comment #4
taote commented@meecect, I´m trying to get a block with next or previous node. This view gives you all the siblings. Do you know how to get only the next or the previous according to the order in the node hierarchy? Thanks
Comment #5
taarten commentedWow thanks dude. It works fine!
Comment #6
grasmash commentedI've used this to get a list of siblings, but it doesn't list the parent. Is that possible?
Comment #7
boran commentedTo produce a list of the parent, siblings and children (i.e. all "related nodes" in the node-custom.tpl, I do:
Related_node_list is a view cloned form nh_children view with the layout adapted to my needs.
Note that there is one disadvantage here: the siblings list also includes the current node, which may confuse users somewhat.