hi there, is it possible to call a snippet within a snippet call? ie:
[[Wayfinder? &startId=`[[GetParentID]]` &level=`1` &removeNewLines=`true`]]
my "GetParentID" returns either the parentID or the current ID depending on whether the current document has a parent or is in the root:
$thisID = $modx->documentObject['id'];
$parentID = $modx->getParent($thisID,0,'id');
if(empty($parentID['id'])){
return $thisID;
}else{
return $parentID['id'];
}
if this is not possible, how else could i achieve the same effect?
many thanks!