We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7923
    • 4,213 Posts
    use:

    [!Wayfinder? &startId=`[[UltimateParent]]` &outerTpl=`wfsidenavigation`!]
    


    and it should work fine.. make sure you have the newest version of UltimateParent from resource repository.


      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
      • 31979
      • 26 Posts
      I didnt find an easy way to create a menu with index numbers like that:

      [1] [2] [3] [4] [5] [6]

      So I changed the code of wayfinder a little bit as shown here: http://modxcms.com/forums/index.php/topic,6207.msg51783.html#msg51783

      Any comments? Is there a more elegant way to do it than to hack the code?

        www.waso.com
        • 7923
        • 4,213 Posts
        I guess you could have used &textOfLinks=`menuindex`


          "He can have a lollipop any time he wants to. That's what it means to be a programmer."
          • 31979
          • 26 Posts
          The Menuindex is not necessarily a consecutive list of numbers.
            www.waso.com
            • 7923
            • 4,213 Posts
            Yes, not necessarily by default, but is there reasons why you couldnt make it to be manully? Please do discuss further about this, i wasnt trying to shoot your ideas down, just asking if you could of done it with menuindex and if not, why?


              "He can have a lollipop any time he wants to. That's what it means to be a programmer."
              • 31979
              • 26 Posts
              Of course you are right, it would be perfectly possible to use &textOfLinks=`menuindex`.
              This method is just
              1.) more convenient
              2.) eliminates a potential source of error smiley
                www.waso.com
                • 18479
                • 4 Posts
                Hello Doze,

                Thanks for your reply. Sorry for the replying earlier. I sent you a PM. Did you see it? I was hoping that you will connect to the system and look behind the scene.

                Let me know if that is an option

                Thanks
                Martin
                huh
                  There are only two ways to go, up or down
                  • 13993
                  • 100 Posts
                  2 items I would like to see added that I don’t see a way of doing.

                  I am trying to implement this design with modx http://www.openwebdesign.org/viewdesign.phtml?id=2748

                  Here is the top menu
                      <ul class="floatRight">
                        <li><a href="index.html" title="Introduction" class="here">Intro</a></li>
                        <li><a href="help.html" title="Learn how to use the template">Help</a></li>
                        <li><a href="tags.html" title="View the styled tags">Tags</a></li>
                        <li><a href="print.html" title="View the print layout">Print</a></li>
                  
                        <li><a href="http://fullahead.org/contact.html" title="Get in touch" class="last">Mail</a></li>
                      </ul>


                  Notice it uses classes inside the <a href> tag. I would like to be able to do the same thing for <a> tags the granularity as is possible for the <ul> and <li> tags. I see no way to enter a class for the <a> if it is the first, the last, or the current docs.

                  The bottom menu is
                      <span class="floatRight">
                        <a href="index.html" title="Introduction">intro</a> <span class="grey">|</span>
                        <a href="help.html" title="Learn how to use the template">help</a> <span class="grey">|</span>
                        <a href="tags.html" title="View the styled tags">tags</a> <span class="grey">|</span>
                  
                        <a href="print.html" title="View the print layout">print</a> <span class="grey">|</span>
                        <a href="http://fullahead.org/contact.html" title="Get in touch">mail</a>
                      </span>


                  I would like to be able to add "<span class="grey">|</span>" type content in between links. If this is possible I can’t see it. But I may be wrong.
                    • 11975
                    • 2,542 Posts
                    Hi,

                    Did you try to build your own chunk to use in wayfinder rendering.

                    For instance for the main menu

                    &outerTpl: myOuterTpl
                    <ul [+wf.classes+]>[+wf.wrapper+]</ul>
                    


                    &rowTpl: myRowTpl
                    <li><a href="[+wf.link+]" [+wf.classes+]>[+wf.linktext+]</a></li>
                    


                    and your wayfinder call

                    [[wayfinder? &outerTpl=`myOuterTpl` &rowTpl=`myRowTpl` &outerClass=`floatRight ` &hereClass=`here` ]]


                    :-)
                      Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                      • 13993
                      • 100 Posts
                      There we go. I just had to chunk it up smiley

                      This discussion is closed to further replies. Keep calm and carry on.