Jump to content


Photo

getAllChildren($id=0)


  • Please log in to reply
4 replies to this topic

#1 displayname

displayname

    Etomite Forum Newbie

  • Member
  • 7 posts

Posted 04 July 2010 - 09:22 PM

When I use getAllChildren($id=0), shouldn't I get an array of ALL existing documents (well, I don't!)? I guess I'm missing the obvious, but aren't all documents supposed to be a child of id 0? If not, how could I get this array, please?

#2 displayname

displayname

    Etomite Forum Newbie

  • Member
  • 7 posts

Posted 05 July 2010 - 01:52 PM

Hm, I see folder nested documents obviously aren't taken into consideration. Can't I make getAllChildren or similar to recursively list all existing documents, please?

#3 displayname

displayname

    Etomite Forum Newbie

  • Member
  • 7 posts

Posted 06 July 2010 - 10:43 AM

Getting a list of all existing documents should be doable, I guess. But how?

Anyone, please?

:unsure:

#4 Ralph

Ralph

    Loves Etomite Forums!

  • Admin
  • 6,539 posts

Posted 06 July 2010 - 12:42 PM

Because the document tree provides a heirarcical order, if you use either getAllChildren() of getActiveChildren() with an id=0 you will only get the top level documents... We have many menu snippets which can be studied to see how attaining the entire structure can be done... You default install should contain the getSiteMap() snippet which might be the best place to start... Also, see the Documentation Site for information about the entire Etomite API...

#5 displayname

displayname

    Etomite Forum Newbie

  • Member
  • 7 posts

Posted 07 July 2010 - 10:12 AM

Thanks Ralph for your answer. I guess I'll have to bite the bullet and do it manually then with the help you suggested.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users