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

    I have a template which calls the Wayfinder snippet twice - once for a horizontal main menu and once for a vertical side menu.

    When I select a menu item from the main menu, it is marked "active" i.e. the <li> item has a class value of "active". However if I select an item from the side menu, the item which was selected in the main menu is no longer active.

    Is it possible to keep an item in one Wayfinder snippet "active" after calling an item from a second Wayfinder instance?

    Gerry
      • 7231
      • 4,205 Posts
      This is done with the site structure. If the side vertical menu is reflecting a section inside a section from the horizontal menu. Foe example below, if you are in page ’a’ both the a and the 2 menu items would be labeled active.

      - 1
      - 2
      ---a
      ---b
      - 3


        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

        Something is happening here, but you don&#39;t know what it is.
        Do you, Mr. Jones? - [bob dylan]
        • 13890
        • 8 Posts
        Thanks dev_cw...I can stop banging my head off the wall now smiley