We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6006
    • 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.
      • 6726
      • 7,075 Posts
      A lot of people will thank you for that grin

      Thanks for sharing !
        .: COO - Commerce Guys - Community Driven Innovation :.


        MODx est l'outil id
        • 18397
        • 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)
          • 6726
          • 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 smiley
            .: COO - Commerce Guys - Community Driven Innovation :.


            MODx est l'outil id
          • This was also discussed here.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org