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

    I am trying to have to wayfinder.
    The first will only deisplay the first level menu in the left column.
    And the second with display ALL submenu for all menu.

    My problèem is the following:
    This display well the first level
    [[!Wayfinder? &startId=`0` &level=`1` &outerClass=`menu-ul` &levelClass=`menu-leve-l` &hideSubMenus=`0` &hereClass]]


    And this, display well the second level, BUT ONLY for the selected menu of the first level
        	 [[Wayfinder? 
          		&startId=`[[UltimateParent? &topLevel=`1`]]` 
          		&level=`2` 
          		&outerClass=`submenu-ul` 
          		&levelClass=`sublevel-` 
          		&innerClass=`sub-menu2` 
          		&hideSubMenus=`0` 
          		&hereClass
         	]]
    


    I need to have all submenus of the menu (fist level) displayed.

    Secondly, when I click on a menu of the first level, I would like to have all of its subemnu in bold, and other submenu remind in norml.

    Do you have an idea how to help me?

    Many thank
      • 22427
      • 793 Posts
      Replacing
      &startId=`[[UltimateParent? &topLevel=`1`]]` 
      by
      &startId=`0`
      should do it.

      Secondly, ...
      You didn't give a value to your &hereClass parameters!
      Assuming you set
      &hereClass=`here`
      try this in the CSS:
      ul.submenu-ul li.here a {
         font-weight: bold;
      }

        • 36931
        • 206 Posts
        Hello,
        No this does not work. I tried it. by default &hereClass disppays "active". This works fine.
        Thank any way.

        I found a solution which soud good.
        I create a chunck called rowRpl
            	 [[Wayfinder? 
              		&startId=`0`
              		&rowTpl=`rowTpl`
              		&outerTpl=`outerTpl`
             	]]
        


        In my rwo Tpl, I call again wayfinder for all menu
        [[Wayfinder? 
        	&startId=`[[+wf.docid ]]`
        	&rowTpl=`rowTplClass`
        	&outerTpl=`outerTplSubMenu`
              	&hideSubMenus=`0` 
              	&hereClass
        ]]
        

        As now I have two <ul>. On first wayfind, I create achunck outerTpl, in order to remove the first ul
        [[+wf.wrapper]]
        


        On the second wayfinder, I created again an outerTol : outerTplSubMenu
        It will arrow me to attribu a class to the url of a submenu owned to the selected first level. In that ways, all submenu will be in bold
        <ul [[!ifEval? &input=`[[UltimateParent]]==[[+wf.docid]]` &contentTrue=`class="subMenu-active"`]]>[[+wf.wrapper]]</ul>
        

        If someone as a better soution are welcome shocked)

        Cheers