Get the node id's of a nodes children

djmystic82 - June 27, 2008 - 12:17
Project:Node Relativity
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

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.

#1

svdoord - July 8, 2009 - 10:21
Version:5.x-2.3» 6.x-1.x-dev
Component:Miscellaneous» Code
Category:support request» feature request
Status:active» needs review

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)?

AttachmentSize
Patch for 6.x-1.x-dev 2.33 KB
Patch for HEAD 2.31 KB

#2

SocialNicheGuru - July 17, 2009 - 17:13

i will help to test

 
 

Drupal is a registered trademark of Dries Buytaert.