$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.
A lot of people will thank you for that
Thanks for sharing !
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
Laughs! I actually wrote that for the Greenery template and never released it on its own (its still in the greenery package)
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
-
☆ A M B ☆
- 24,524 Posts
This was also discussed
here.