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

    I really love the Andreas6 template, but I’ve a little problem with the dual menu system in that template.

    It would be nice if I can use the "top nav" to display the links to the different "catagories" of the site, and use the "leftside nav" to display the contents for that catagory.

    The problem is, how to do this with the DropMenu without creating a template for each catagory....

    The other support request is, the template is nice, but the colors and pictures aren’t really suitable for my website.
    Unfortunately I’m not a graphic artists, so if anyone is interested and capable of making these for me? (This is a so called bounty, no? smiley )

    Greetings,

    Remon
    • LOL... I’m sure you’ll get some help, but bounties usually come with $s attached. wink
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
      • I’m a cheap date (actually, a trip to Taco Bell was my idea of a great date...); I work for virtual chocolate!
          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
        • Ok, I’ve got your menus straightened out. Now as far as the color scheme goes, what do you have in mind?

          Calls DropMenu twice, once for the top menu:
          [[DropMenu?levelLimit=`1`]]


          And again for the side menu:
          [!DropMenu?startDoc=`[[SetDoc]]`!]


          The [!...!] style is necessary to get the inner snippet parsed properly.

          SetDoc is very simple:

          // SetDoc - sets docID to 0 if it is site_start
          $id = ($modx->documentIdentifier == $modx->config['site_start']) ? 0 : $modx->documentIdentifier;
          return $id;


          If a top menu item has no submenu, it won’t show anything, except for the Home item, which will display the main menu. If you don’t want it to do that, you want it empty also if it has no submenu, call the second DropMenu like this:

          [[DropMenu?startDoc=`[*id*]`]]
            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
            • 26435
            • 1,193 Posts
            Hey R.S. How would this work?

            http://www.scottydelicious.com/template-remon.php

            -sD-
            scotty Delicious
              Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
              All of the above... in no specific order.


              I send pointless little messages