Hi all,
I can’t seem to get the getDocumentChildren API call to work, was hoping someone could enlighten me as to what I’m doing wrong?
Call from within snippet:
[tt]$Categories = modx -> getDocumentChildren($id=20, $active=1, $deleted=’0’, $fields=’id, pagetitle, description, alias, parent’);[/tt]
As far as i can see this is as close to the call contained in the api documentation as i can get to but the line throws up the following error
[tt]Parse error: syntax error, unexpected T_OBJECT_OPERATOR in C:\sokkit\site\modx\manager\includes\document.parser.class.inc.php(733) : eval()’d code on line 2[/tt]
Being new to PHP I’m sure that I’m doing something fundamental wrong, but I’ve attemped using similar applications to those I’ve found when searching the forum to no avail.
Any help would be appreciated.
Ta
Steve
Addional problem detailed below solved @
http://modxcms.com/forums/index.php/topic,9246.0.html