Closed (fixed)
Project:
Node Hierarchy
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
31 Oct 2008 at 20:56 UTC
Updated:
11 Sep 2010 at 21:50 UTC
Is there a code example of how you could generate the children and grandchildren of a node within a .tpl.php file? I would like to use the hierarchical structure created by nodehierarchy to produce the children and grandchildren but I don't wan to be limited to a view as far as presentation?
Comments
Comment #1
break9 commentedAnyone?
Comment #2
break9 commentedcan i use the function:
or is that function not available and how do I tell which functions are available outside of the module?
Comment #3
isaac.niebeling commentedYou'd probably need to use a view, and then just theme it. There's lots of info on theming views, and I've used it to present stuff in a lot of different ways.
Comment #4
break9 commentedI've tried to use the view but I can't get anything beyond the immediate children to appear. I can't get the grandchildren? So I was curious if the module made any functions available outside of itself so I could construct the page myself.
Any help is appreciated on either how to get the view to work correctly with views 2 (i am using the current dev version of nodeheirarchy)
Or how to access the children or grandchildren without using a view.
Thanks
Comment #5
dgorton commentedThis could et wildly out of control if you have lots of content with a deep hierarchy, but you can do this via a node_load of the child, followed by a node_load of it's children.