Is it possible to write some php to list node id's of the children of a node? The I can use node_load to display any values or the child on the parent.

CommentFileSizeAuthor
#1 Patch for 6.x-1.x-dev2.33 KBsvdoord
#1 Patch for HEAD2.31 KBsvdoord

Comments

svdoord’s picture

Version: 5.x-2.3 » 6.x-1.x-dev
Component: Miscellaneous » Code
Category: support » feature
Status: Active » Needs review
StatusFileSize
new2.31 KB
new2.33 KB

I need something like this as well, but for D6. I took the liberty to modify this issue, because otherwise I would create a duplicate.

I created a patch to add an API function to relativity which returns a list of child nodes, given a parent node id. I named the function "relativity_list_children". I created a patch both for 6.x-1.x-dev and for HEAD. The patch also uses the new function in two places where it is applicable.

Could this please be reviewed, and hopefully committed + released (1.3)?

socialnicheguru’s picture

i will help to test