We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16085
    • 203 Posts
    The ignoreSecurity is a welcomed addition! smiley
      • 26978
      • 4 Posts
      Hey smiley

      I would like to know how [+wf.level+] is used.

      I’m trying to use the Anywidth2-Menu from cssplay.co.uk and one thing I need is the <ul> in &innerTpl to get the actual level as class-name. But [+wf.classes+] doesn’t work with the <ul>, so I thought using 2.5beta with [+wf.level+] would be the answer … but it just results in a blank regardless of where I insert it.

      Any clues on that?

      <!--EDIT-->
      [+wf.level+] works, but it doesn’t work in the &innerTpl ... this template doesn’t seem to know levels .. why is that?

      --
      sheep cool
        • 11954
        • 58 Posts
        Would be fun with some instructions on how to install the damned thing, especially if you expect people to test it out for you. The only instructions are for version1 of Wayfinder so not much help.
          • 15987
          • 786 Posts
          Quote from: MadeMyDay at May 05, 2009, 05:22 AM

          The new feature of adding the active class to the weblink is great. But I think you forgot the self class. In line 416:

          Thanks for finding that. I will get it added and an updated download put out.

          Quote from: kongondo at May 13, 2009, 01:07 PM

          is WF beta 2.5 phx clashing with ditto’s phx.pre.class..?

          I will look into this error. It should not be trying to duplicate the class so I will have to investigate. I will get back to you when I have an udpate.

          Quote from: sheeplover at May 19, 2009, 04:47 AM

          [+wf.level+] works, but it doesn’t work in the &innerTpl ... this template doesn’t seem to know levels .. why is that?

          the level placeholder is only available at the row level currently, I can see how it might be useful to have in the wrappers as well. I will see what it would take to add this in.

          Quote from: heimdall at May 21, 2009, 10:49 AM

          Would be fun with some instructions on how to install the damned thing, especially if you expect people to test it out for you. The only instructions are for version1 of Wayfinder so not much help.

          Well, my first instinct was to respond with: Its a snippet so install it like all other ’damned’ snippets.

          But I am usually nicer than that, so I will update the first post with instructions.
            • 11954
            • 58 Posts
            OK sorry for being dumb, figured out how to get it installed but now I get:

            Parse error: syntax error, unexpected ’=’, expecting ’)’ in /home/highroll/public_html/assets/snippets/wayfinder2.5/Wayfinder.class.php on line 372

            :’(
              • 10313
              • 375 Posts
              Quote from: heimdall at May 25, 2009, 05:11 PM

              OK sorry for being dumb, figured out how to get it installed but now I get:

              Parse error: syntax error, unexpected ’=’, expecting ’)’ in /home/highroll/public_html/assets/snippets/wayfinder2.5/Wayfinder.class.php on line 372

              :’(

              Hi!

              As assumed above, this is a matter of the correct PHP version. I don’t know what the minimum version is, but with my 5.2.9 it runs fine, while it did not with 4.?.

              Martin
                • 10313
                • 375 Posts
                Quote from: kongondo at May 13, 2009, 01:07 PM

                is WF beta 2.5 phx clashing with ditto’s phx.pre.class..?

                Fatal error: Cannot redeclare class prePHx in C:\wamp\www\modxtests\assets\snippets\ditto\classes\phx.pre.class.inc.php on line 11

                Hello! As I’m having the same problem and I’ve solved it (or mayber worked around). Here is my soultion:
                As we can see, the error is thrown from within Ditto, not Wayfinder. So we have to avoid redeclaring the class in Ditto. This can be done in the snippet definition in the manager:

                change line 181 from
                if ($phx == 1) {

                to
                if ($phx == 1 && !class_Exists("prePHx")) {


                That’s it. The reason: Ditto builds an array of file names to be included. The change prevents loading the code for prePHX class declaration.

                Martin
                  • 16183
                  • 1,390 Posts
                  @Martin

                  You’re the man. Thanks. I’ve been getting that error even with Ditto and PHx. Should this be filed in jira as a bug?

                  cheers/k
                    • 25663 MODX Staff
                    • 12,272 Posts
                    File away please with full details on what this affects. Thanks!
                      Ryan Thrash, MODX Co-Founder
                      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                      • 16183
                      • 1,390 Posts
                      I’m not sure I understand what this [+wf.iterator+] does and what is its matching parameter (i.e. how to specify it in the WF call)? Enlighten me please? Thanks.

                      Secondly, there is this [+wf.outerid+] which  I guess is for inserting an id to the outerTpl. Again, what is its matching parameter?

                      And, is it also applied to the innerTpl?
                      <=== this is a dumb question; ignore it (he, he! - thx Martin for bringing me back to my senses)  grin [note to self: it’s an id dimwit! It must not be used more than once]

                      Thanks.
                      /k