Hi,
I was searching the MODx-Forums for more than an hour but couldn´t made it out.
My problem:
I need a snippet in a parent document that uses the ID for any child doucument listed in this parent document. Just for testing I put up this:
<?php
$childid= $modx->documentIdentifier;
return $childid;
?>
because I believed that documentIdentifier will give the same result as [+id+] used in a chunk.
But while [+id+] returns the children’s ID, the above code returns the parent’s ID.
Maybe I should use getActiveChildren but this one returns an array of all children. And
OpenGeek’s GetChildID returns the parent’s ID plus 1.
Does anyone knows a solution and could help me?