We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5393
    • 63 Posts
    I just wonder...I am making a website which has 7 subsection in the site. each section has its own templates because each one look slightly different from others. How can I add wayfinder in this case? i mean, do I need to add a wayfinder in every template or I should create a chunk and then put wayfinder inside the chunk and I link this chuck to all templates?

    Thx
    Ernest
      • 3749
      • 24,544 Posts
      Either will work, but the second one will probably be easier to maintain (assuming that the Wayfinder tag is the same for all templates).

      It’s also possible that you could use the same template for all sections by creating Template variables and using them to select the CSS file and some of the formatting code (in chunks).
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 5393
        • 63 Posts
        thanks for your quick reply.

        let’s say I use the 2nd way to structure the whole website and so each templates has the same chunk to show menu bar. If my wayfinder code is like: [[Wayfinder?&startId=`0` &level=`1`], can my website work? please help...

        thx
        ernest


          • 9995
          • 1,613 Posts
          no u forgot ]

          [[Wayfinder?&startId=`0` &level=`1`]]

          or

          [!Wayfinder?&startId=`0` &level=`1`!]
            Evolution user, I like the back-end speed and simplicity smiley
            • 5393
            • 63 Posts
            Thanks for your help again. what if my navigation bar has a dropdown menu and it looks like something like that:

            product 1
            >A
            >B
            >C

            product 2
            >A
            >B
            >C

            product 3
            >A
            >B
            >C

            how to set up wayfinder code for that? I couldn’t find a good tutorial to show me how to do that...

            thx!


              • 9995
              • 1,613 Posts
              [[Wayfinder?&startId=`0` &level=`2`]]

              u can also add (i think) &hideSubmenus=`true` so it would only collapse when ur on the main page.

              - http://wiki.modxcms.com/index.php/Wayfinder
                Evolution user, I like the back-end speed and simplicity smiley
                • 5393
                • 63 Posts
                Thanks. It seems working now.