We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18662
    • 22 Posts
    I only ever seem to have problems with Way finder :’( :’( :’(

    I used [[Wayfinder? &hideSubMenus=`true` &rowTpl=`Navbar` &outerTpl=`noul`]]

    I have a structure like this
    en/home
    en/prog
    en/prog/music
    en/prog/sched
    en/prog/shows
    en/now
    en/now/listen
    en/now/message
    


    This code produces a list of links which is perfect on the second level down, but I want the same list that would appear on the second level down, to appear on the third level down also.

    So: en/prog displays links for en/prog/music en/prog/sched and en/prog/shows, I want to be able to display those 3 links actually on those 3 pages. So music would have the links for en/prog/music en/prog/sched and en/prog/shows also.

    Anyone have any ideas?

    TIA
    Matt
      Matthew Hardwick
      Freelance Media Specialist
      <hr>
      Check out my latest ModX project http://www.bay-radio.co.uk
      • 24495
      • 407 Posts
      Please post your tpl chunks. Maybe there is wrong code.
        • 18662
        • 22 Posts
        They’re are blank.

        They are their to achieve just a sequence of links instead of a list of links. I don’t think this code isn’t what is causing the problem as it’s to do with the menu level, not the formatting of the links.
          Matthew Hardwick
          Freelance Media Specialist
          <hr>
          Check out my latest ModX project http://www.bay-radio.co.uk
          • 24495
          • 407 Posts
          Maybe I’m wrong but I think that an empty template produces only links in the first level. You should have the placeholder [+wf.wrapper+] in your tpl where inner content will be inserted. Try this first please.
            • 18662
            • 22 Posts
            1) That code works for second level pages... not top level pages as there is only en and cy and all the pages are under that level.
            1) Regardless off, and indeed without the TVs it makes no difference as to the fact it’s not displaying anything.
              Matthew Hardwick
              Freelance Media Specialist
              <hr>
              Check out my latest ModX project http://www.bay-radio.co.uk
              • 24495
              • 407 Posts
              Missing startId in your call. Look at the parameters: http://wiki.modxcms.com/index.php/Wayfinder

              If this doesn’t help please post the HTML you wish to have for your menu AND the current code produced by your WF call. Then I can check the tpl code.
                • 18662
                • 22 Posts
                I am not sure you have grasped what my problem is, maybe I should have explained it better. There is nothing wrong with the code that it’s producing. I just want to know how to produce it on a different page. But the code is anyway:

                It produces this:
                <a href="en/prog/music">Music</a>
                <a href="en/prog/sched">Sched</a>
                <a href="en/prog/shows">Shows</a>

                This is exactly what I want it to produce.

                BUT it only produces this on the page en/prog

                I want to know how to get that exact same code on the pages en/prog/music, en/prog/sched and en/prog/shows.

                Basically I want to know how to make it have the startId of the parent (where the parent of music is prog) I don’t want to have to hard code the parent ID in manually into the template because there are so many folders with pages in them.
                  Matthew Hardwick
                  Freelance Media Specialist
                  <hr>
                  Check out my latest ModX project http://www.bay-radio.co.uk
                  • 24495
                  • 407 Posts
                  Ok, I’m a bit confused (maybe my English isn’t good enough). Let’s try some steps to solve this problem.

                  At first set your call like this:
                  [!Wayfinder?&startId=`[[UltimateParent]]` &level=`2` &hideSubMenus=`true` &rowTpl=`Navbar` &outerTpl=`noul`!]

                  The UltimateParent snippet sets the startId to the parent document "en". The folder "en" should be UNchecked at "Show in menu".

                  The "outerTpl" left blank. The "rowTpl" can be like this:
                  <a href="[+wf.link+]">[+wf.linktext+]</a>[+wf.wrapper+]


                  Better now?
                    • 33337
                    • 3,975 Posts
                    Zaigham (aka zi) Reply #9, 19 years ago
                    Matthew! rasc’s post should help you solve your problem smiley
                      Zaigham R - MODX Professional | Skype | Email | Twitter

                      Digging the interwebs for #MODX gems and bringing it to you. modx.link
                      • 18662
                      • 22 Posts
                      I don’t want the ultimate parent, I just want the parent, i.e. the folder that the document is in?
                        Matthew Hardwick
                        Freelance Media Specialist
                        <hr>
                        Check out my latest ModX project http://www.bay-radio.co.uk