hi
I am trying to build a snippet to return the active id on a nav if the document executing has the same parent doc id as the one Im passing in . It is a jagged navigation with varying items so I didnt use wayfinder
anyways, my question is to do with how I could be doing something wrong using getParentid(). I followed
http://rtfm.modx.com/display/revolution20/modX.getParentIds
my code as follows :
$modx = new modX();
$parent = $modx->getParentIds(38);
print_r($parent);
$parent just returns an empty array. I was expecting two ids to be returned, the parent doc and the container above that. The immediate parent is published
help?