We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25179
    • 2 Posts
    Hi,

    I am new to MODx and just starting to set up my first site. I’m trying to have a two menu page layout. Across the top would be the main menu which would be the top level of documents. Down the left would be any subdocuments of the currently selected main document. I’m wondering how I can make the startDoc param in the left hand menu be dynamic. My two DropMenu snippets would look like this:

    [[DropMenu?phName=mainMenu&topdiv=true&topdivClass=mainMenu&startDoc=0&levelLimit=1&topnavClass=topMenubar&here=activeLink]]

    [[DropMenu?phName=subMenu&topdiv=true&topdivClass=subMenu&startDoc=[??????]&levelLimit=1&topnavClass=topMenubar&here=activeLink]]

    I want the huh?? to basically be the parent id of the current document, but not if it is the root. Is this possible?

    Thanks for any help.

    Robin
      • 25179
      • 2 Posts
      I’m just getting my head round how the snippets work and I’ve now managed to get this working the way I wanted.

      Thanks for all the excellent snippets!!

      Robin