We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15987
    • 786 Posts
    I think I have that fixed already. If you look at line 99 in your code, I have changed it to this:

    if ($counter == ($numSubItems) && $numSubItems > 0) {
    


    So it sets the last item flag correctly if there is only 1 item in the menu. This then works with your original code for grabbing the lastTpl when there is only one item.

    Thanks again for your help, I am going to try and get a final beta out today.
      • 15987
      • 786 Posts
      I have just added beta2 to the first post with some more additional features.

      Test away and let me know if you find any issues. I would like to wrap up this version asap, so some fast testing would be great.
        • 10190
        • 187 Posts
        Hi,

        I’ve tested WF2.5beta2, works like a charm with TVs in the chunks and @INHERIT, for details look here:

        http://modxcms.com/forums/index.php/topic,34321.msg208759.html#msg208759

        Keep up the great work, you made my day with this release!

        Cheers, Frisco
          • 23653
          • 10 Posts
          Pretty sure this going to be super. Just wondering if there has been any way to sort wayfinder by pub date, or if there are any good hacks for this.
            • 9460
            • 12 Posts
            Thanks for this developpement, I am interested in parsing protected pages.

            I have a problem in the installation of this beta version. Could you point to a page that explain how to install this beta version?

            I have first tried to declare a Wayfnder2.5 snippet, in order to not remove my 2.0 version installed with MODx 0.9.6.3. I have this error message:
            Fatal error: Cannot redeclare class Wayfinder in /MY_HOME/assets/snippets/wayfinder2.5/Wayfinder.class.php on line 10

            I think calling both 2.0 and 2.5 version in page is impossible. So I have tried to rename 2.0 version in Wayfinder.old and rename Wayfinder2.5 in Wayfinder, and now I have this one:
            Fatal error: Cannot redeclare class prePHx in /MY_HOME/assets/snippets/wayfinder2.5/includes/phx/phx.pre.class.inc.php on line 11

            Did I do something wrong?

            Thanks in advance.

            Quote from: kylej at Mar 13, 2009, 10:40 AM

            I have been going through my list of things to add to Wayfinder and decided to release an early beta for testing. There are still some things I need to work out and more I would like to add before an initial release, but this should be good for testing.
              • 25663 MODX Staff
              • 12,272 Posts
              Since protected pages can now be shown, in menus even if they’re not accessible, maybe a couple of new classes are in order:

              &inaccessibleClass - pages that need proper auth/login to which you’re not a member
              &protectedClass - protected pages that you can in fact access (you’ve logged in)
                Ryan Thrash, MODX Co-Founder
                Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                • 15987
                • 786 Posts
                Ryan,

                I did add a class called &secureClass and this gets set only if the page has the privateweb flag set in the database. I am not checking any user permissions (so your suggestions will not currently work), but I will look into what it might take to add some user checking like you said.
                  • 25663 MODX Staff
                  • 12,272 Posts
                  &secureClass is perfectly adequate I’d think. There’s always future versions.
                    Ryan Thrash, MODX Co-Founder
                    Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                    • 17883
                    • 1,039 Posts
                    The new feature of adding the active class to the weblink is great. But I think you forgot the self class. In line 416:

                     if (!empty($this->css['self']) && $resource['id'] == $this->modx->documentIdentifier) {
                                    $returnClass .= $hasClass ? ' ' . $this->css['self'] : $this->css['self'];
                                    $hasClass = 1;
                                }


                    change to

                     if (!empty($this->css['self']) && ($resource['id'] == $this->modx->documentIdentifier || $resource['content'] == $this->modx->documentIdentifier)) {
                                    $returnClass .= $hasClass ? ' ' . $this->css['self'] : $this->css['self'];
                                    $hasClass = 1;
                                }


                    did it for me. Could be a bit less dirty, but works ;-)
                      • 16183
                      • 1,390 Posts
                      is WF beta 2.5 phx clashing with ditto’s phx.pre.class..?

                      When navigating my site, I am getting this error after installed WF2.5 beta (sorry couldn’t test this earlier)

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

                      How do I deal with this please? Thanks

                      cheers/k

                      modx 0963
                      server wamp