We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28676
    • 136 Posts
    I do have one version of this working, but now left it 2 weeks and fogot everything!

    Cant load wiki at the moment just keeps timing out.

    I am doing a different <ul> menu at the bottom of my page and cant for the life of me figure out how to add a class to the <ul>

    Is it poss? what template should I generate can someone give me an example?

    the menu output I need is (ignore the div bit) Many many thanks.

    <div id="navcontainer">
    <ul id="navlist">
    <li id="active"><a href="#" id="current">Item one</a></li>
    <li><a href="#">Item two</a></li>
    <li><a href="#">Item three</a></li>
    <li><a href="#">Item four</a></li>
    <li><a href="#">Item five</a></li>
    </ul>
    </div>

    simon
      I made my first site with modx
      ------------------------
      http://www.shop-bright.com | Uk shopping blog
      • 11975
      • 2,542 Posts
      Hi,

      If you allow me to give you an advice, print out the wayfinder documentation it’s very complete.

      Create a chunk call wfOuterMenu:

      <ul id="navlist">[wf.wrapper+]</ul>
      


      And in your wayfinder call

      [[wayfinder? &outerTpl=`wfOuterMenu ` ]]
        Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
        • 28676
        • 136 Posts
        thats exactly what I`m after, sorry for the dumb post couldnt get on wikki due to time out.

        also if anyone is looking at this its

        <ul id="footers">[+wf.wrapper+]</ul>

        you missed the +, but really thanks got my head around it again now.

        cheers
        simon
          I made my first site with modx
          ------------------------
          http://www.shop-bright.com | Uk shopping blog
          • 11975
          • 2,542 Posts
          You’re welcome.

          :-)
            Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
          • I have a similar but slightly different requirement. I need to have each inner ul element have a unique ID. Now I can easily enough get the actual a elements to have unique IDs, but this is a little different. I hacked DropMenu once to do that, it simply incremented a value on each loop, and made IDs of id="inner1" and id="inner2" etc for all the ul elements. Wayfinder is a bit more complex. I have no doubt that I’ll figure it out eventually, but if anybody else has had a similar need, I’d be happy to hear how you handled it. Even unique IDs for each li element would do the trick.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 15987
              • 786 Posts
              Susan,
              I don’t think there is a way to get it on the ul (not sure without going back into the code though), but to get a unique id on each li, set the parameter &rowIdPrefix=`some prefix`

              This will then output a unique id consisting of some prefix + docId for each li.
              • I’m pretty sure that gets put in the <a> tag, which doesn’t help.

                I figured that the best way to handle the situation would be to manually create the top-level menu (that most likely doesn’t change anyway) and have a separate Wayfinder call for each submenu, setting the ID in the outer template for each submenu’s main UL. That way you can have a regular main menu bar, but have each submenu be styled differently.
                  Studying MODX in the desert - http://sottwell.com
                  Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                  Join the Slack Community - http://modx.org
                  • 15987
                  • 786 Posts
                  Quote from: sottwell at Nov 29, 2006, 10:16 AM

                  I’m pretty sure that gets put in the <a> tag, which doesn’t help.

                  If you are using the default templates it will be added to the <li>
                  • Don’t know where I got the idea that they went in the a tags. Thanks.
                      Studying MODX in the desert - http://sottwell.com
                      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                      Join the Slack Community - http://modx.org