We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36446
    • 184 Posts
    Hi!
    I’m trying to build a menu for items of a folder and have a documtent strukture like this:
    Doc 1
    Doc 2
    *Doc 2_1
    *Doc 2_2
    *Doc 2_3
    Doc 3
    .
    .
    I want to have a menu that only apperars when you are on Doc 2 and in this menu you should see just this as an unordered list:
    Doc 2
    Doc 2_1
    Doc 2_2
    Doc 2_3

    I managed to create the menu using wayfinder and the &displayStart=`true` and used this as &startItemTpl
    <div[[+wf.classes]]>
    <ul style="display:inline"><li [[+wf.classes]]><a href="[[+wf.link]]" title="[[+wf.title]]">[[+wf.linktext]]</a></li><br />[[+wf.wrapper]]
        </ul>
    </div>
    


    my problem now is that the first Element (the parent) of my menu is always active no matter where i am in my menu. I tried setting a hereClass but this didn’t help me because the parent element is still always active. Is there a possibility that this item is not always active so i can style the active element with css properly?

    Any help would be highly appreciated!
    Thanks!
      https://www.beautyislife-shop.de - premium make-up!
      https://www.topsterne.de - sell it here!
      ---------------------------------------------------------
      • 36404
      • 307 Posts
      Hi,

      if you want a class that will only be applied to the "active" link but not to its parent, you may use &selfClass=`ziClassYouWant`

      have swing
        réfléchir avant d'agir
        • 36446
        • 184 Posts
        if you want a class that will only be applied to the "active" link but not to its parent, you may use &selfClass=`ziClassYouWant`

        thanks a lot - i guess that solved my problem!
          https://www.beautyislife-shop.de - premium make-up!
          https://www.topsterne.de - sell it here!
          ---------------------------------------------------------