We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30208
    • 1 Posts
    First of all, i recently found out about ModX, love it!!

    My problem is this.

    i have two wayfinder menues on my site, mainmenu and a 2nd menu like this
    <div class="menu">
                      [!Wayfinder? &startId=`0`  &config=`mainmenu` !]

    </div>
    <div class="main">
    <div class="submenu">
      [!Wayfinder? &startId=`[[UltimateParent]]`   &config=`fc`!]

    </div> .... rest of site..

    The thing is I want the Parent menu object be marked as active for all it´s childs. hm confusing explanation.

    something like this http://www.fertilitetscentrum.se/goteborg/?meny=behandling&page=ICSI-mikroinjektion but /w wayfinder

    is this doable? i guess i could make my mainmenu without Wayfinder.

    Greatful for any help.




      • 3707
      • 241 Posts
      Doesn’t Wayfinder do this by default?

      I use two separate Wayfinder calls on a page for one site and the parent item in the first menu remains active for items in the second menu. If you look at the description for the &hereClass:
      &hereClass
      default: active
      values: name of class
      description: The hereClass will be applied to the current item and to each parent up the document tree.
      A class of "active" should be set for current and parent items.