Hi
I want to write a snippet in revloution that shows all the titles of the parents of the current document.
I found getChildsIds in the forums and with a bit common sense I got
<?php
$parent=$modx->documentObject['parent'];
$parentsparent=$modx->getParentIds($parent,1);
$parentarray = $modx->getChildIds($parentsparent[0], 1);
print_r ($parentarray);
?>
now I need to get the titles of all those documents...
I know there is an API where tons of functions are to be found.
But how the *** do I search in there?
it’s so big and I have no idea where to look?
and I have trouble understanding what the searchbox on
http://api.modxcms.com/ actually does.
Can someone teach me how to find functions in the api ?
So I won’t have to ask the forums every time I need a function?