At the moment I have started with
// get id of current document $id = $etomite->documentIdentifier; // get data of current document $data = $etomite->getPageInfo($id, $active=1, $fields='id, pagetitle, longtitle, parent, alias'); // sort data I want into strings (I know I dont really need to do this bit) $pagetitle = $data['pagetitle']; $parent = $data['parent'];
I planned to use getChildren or similar but then found that getAllChildren gets all children in a two dimensional array, not just the current documents children. Should I just use this and extract the current document information or should I do my own getIntTables where parent=$data['parent'] type of thing.
I suppose both methods would work but which is the best or the more efficient method?
Thanks in advance for any help or advice,
EDIT In the end I did it with the getIntTables route and it is working fine. I reasoned that the more limited search must be more efficient as it pulls in less data. Any time differences would probably be totally unnoticeable anyway.
Edited by PaulD, 24 April 2010 - 01:19 AM.