We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22098
    • 218 Posts
    Hello,

    i would like to use wayfinder 2.0 with the config settings, but i cannot find any documentation anywhere?

    Olaf
      • 15987
      • 786 Posts
      are you talking about the config file?

      if so, there is no documentation on this yet, there are some examples in the zip package you can reference. But basically it is a php file and you just set the parameters you would like to use in the file. Each parameter is a variable that can be set in the config file i.e. &startId becomes $startId

      Since these files are php code you could even write some code to create some dynamic values for the wayfinder call.
        • 22098
        • 218 Posts
        Hello,

        i am calling wayfinder this way:

        [[Wayfinder? &startId=`0` &config=’cssplay-dropline’]]

        but it doesn’t seem to find or parse the cssplay-dropline.config.php file....do i miss something?

        Olaf
          • 22098
          • 218 Posts
          ok, this works:

          [[Wayfinder? &startId=`0` &config=mollio]]

          it seems that wayfinder 2.0 breaks when you use quotes around the config-parameter...

          another bug: when i set &debug=’FALSE’ debug info is still displayed

          Olaf
            • 15987
            • 786 Posts
            olaf,
            you should use backtics around your parameters (` `) not quotes (’ ’)
              • 22098
              • 218 Posts
              wow, backticks? is this only with wayfinder or with all modX snippets? this is the first time i ever heard of backticks?
              Wouldn’t it be much more user-friendly to be able to use regular quotes for parameters? Or is that really difficult to implement?

              BTW, love the wayfinder snippet! cheers!

              Olaf
                • 25663 MODX Staff
                • 12,272 Posts
                Backticks are mentioned in every bit of documentation, including the sticky posts in the MODx 101 subforum. wink They apply to all MODx snippets.

                Given that though, that’s the single biggest thing that most users forget and slip up on.
                  Ryan Thrash, MODX Co-Founder
                  Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                  • 22098
                  • 218 Posts
                  to be honest, i never read any mention about backticks in any modx documentation...i did a quick search on the site and on the site documentation online, and in the html documentation of both wayfinder 1 and 2, and couldn’t find any reference to it??
                  anyway, is there a special reason why modX is expecting backticks instead of the more common used quotes?

                  Olaf
                    • 25663 MODX Staff
                    • 12,272 Posts
                    Because params that include single-quotes can be problematic.

                    http://modxcms.com/forums/index.php/topic,10651.0.html

                    http://modxcms.com/forums/index.php/topic,11800.msg79283.html#msg79283 (next to last sentence)
                      Ryan Thrash, MODX Co-Founder
                      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                      • 22098
                      • 218 Posts
                      cheers! grin