We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3689
    • 264 Posts
    Right now my wayfinder looks like this:
    <ul>
    <li><a title="Home" href="http://site.com/">Home</a></li>
    <li class="active"><a title="Events" href="/events/">Events</a></li>
    <li><a title="About" href="/about">About</a></li>
    <li class="last"><a title="Contact" href="/contact">Contact</a></li>
    </ul>


    and I would like to add identifiers to my li so it has the page name as the identifier so it looks like this

    <ul>
    <li id="home"><a title="Home" href="http://site.com/">Home</a></li>
    <li id="events" class="active"><a title="Events" href="/events/">Events</a></li>
    <li id="about"><a title="About" href="/about">About</a></li>
    <li id="contact" class="last"><a title="Contact" href="/contact">Contact</a></li>
    </ul>
    


    how do I do this? this is my current call

    [!Wayfinder?&startId=`0`&level=1!]
      • 36926
      • 701 Posts
      Use this call

      [!Wayfinder?&startId=`0`&level=1 &rowTpl=`chunkName`!]


      Where chunkName is a chunk with the following:
      
      <li id="[+menutitle+]" [+wf.classes+]>
      	<a href="[+wf.link+]" title="[+wf.title+]" [+wf.attributes+]>[+wf.linktext+]</a>
      	[+wf.wrapper+]
      </li>
      
      


      I’ve used [+menutitle+] but you can use what ever field you wish for you ID, be note that these are user defined so could contain spaces.

      For more info on wayfinder parameters and templates check out:
      http://www.muddydogpaws.com/development/wayfinder/parameters.html
        • 3689
        • 264 Posts
        Im trying to get rid of the visible submenus so i tried
        [!Wayfinder?&startId=`0`&hideSubMenus=`true` &level=0 &rowTpl=`menu`!]

        this makes it so the submenus are hidden on other pages but when on the parent page of the child pages it shows the submenu/child links. How do i get rid of this? I dont want the child pages to show at all and also my IDs look like this
        <li id="" 

        so nothing is appearing inside the "..."

        tried [+wf.title+] but the ID is Capitalized so its "Home" instead of "home".. how do i get a lowercase h?
          • 3689
          • 264 Posts
          is this even possible? ive been trying to figure it out for a while now without any luck.. is there something outside of wayfinder i need to do to make the Capitalized letter lowercase?
            • 36926
            • 701 Posts
            Whats in your menu chunk?

            To not show the submenus you can either untick show in menu on the document or within in the row chunk don’t put [+wf.wrapper+].