-
- 1 Posts
$id = $modx->documentIdentifier;
$idp = $modx->documentObject[’parent’];
if ($idp != 0) {
return "[[DropMenu? &startDoc=[*parent*] &levelLimit=1 &topnavClass=topMenubar &here=activeLink]]";
}
simply show a submenu if the parent isn’t the root.
-
- 7,075 Posts
A lot of people will thank you for that
Thanks for sharing !
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
-
- 3,250 Posts
Laughs! I actually wrote that for the Greenery template and never released it on its own (its still in the greenery package)
-
- 7,075 Posts
Duh ? Never noticed it... but then again I don’t use template much so... well anyway, it’s handy to have it
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
This was also discussed
here.