Can any one help me to convert this code into revo code
<?php
$params = array("level" => 1);
$id = isset($startId) ? $startId : $modx->documentIdentifier;
// check if doc has a parent, if not we just use id
$parent_id = $modx->documentObject["parent"];
$id = $parent_id==0?$id:$parent_id;
$params["startId"] = $id;
return $modx->runSnippet('Wayfinder', $params);
?>
Please help I got struck.
[ed. note: pronab.saha last edited this post 13 years, 8 months ago.]
-
☆ A M B ☆
- 24,524 Posts
Why not just use the UltimateParent snippet as the startId value?