We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28215
    • 4,149 Posts
    This is an auto-generated topic for Wayfinder 2.1.1-pl by splittingred.

    Brief Description:

    Wayfinder is a highly flexible navigation builder for MODx Revolution.
    New in 2.1.1-pl

    • [li]Wayfinder now properly uses MODx parsing system
    • Fixed issue with includeDocs statement
    • Fixed issues with PDO statements
    • Added the missing permissions check
    • Added wayfinder parameter "permissions" - default to "list", empty to bypass permissions check
    • [/li]
      shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
      • 30552
      • 75 Posts
      Somehow I cannot seem to get &titleOfLinks=`alias` to work, either in this version, or in version RC1 before it.

      The only way this works for me is if I go in and change line 512 of wayfinder.class.php from
      $useTextField = (empty($tempDocInfo[$this->_config['textOfLinks']])) ? 'pagetitle' : $this->_config['textOfLinks'];


      to
      $useTextField = (empty($tempDocInfo[$this->_config['textOfLinks']])) ? 'alias' : $this->_config['textOfLinks'];


      However, I don’t know enough about php to see that anything in particular is wrong with the code. Any tips here?



        • 21838
        • 284 Posts
        Okay, I’ve updated from Wayfinder 2.1.1-rc1 to 2.1.1-pl and here it goes: includeDocs works not properly!

        These are my working (until update) menus:
        [[!Wayfinder? &startId=`0` &level=`2` &excludeDocs=`12,13,14` ]] [[!Wayfinder? &startId=`0` &includeDocs=`12,13,14` &level=`1`]]
        


        In previous versions they appeared as I want. But now the second menu includes all docs, not only IDs "12,13,14". When I exclude the others (which can’t be a real solution because of dynamic building) it works fine.

        System: MODx Revolution 2.0.4

        Thanks for advice.
          MODX Free Template Base: MODX-Boilerplate | my blog (lots of MODX stuff) | my gitHub (translations) | MODX User Groups Germany (Facebook)
          • 8385
          • 11 Posts
          For me includeDocs stops working after updating.

          MODx 2.0.4 pl2
            • 10208 ☆ A M B ☆
            • 1,780 Posts
            includeDocs is still broken apparently. I saw one post from five years ago, and this now, nearly two years old the last post.

            I'll scour the forum, but it seems like this would have been addressed by now. Is it not broken for others? I never had reason to try it till now, but it indeed breaks the whole menu if the parent isn't part of the menu. startId seems to start the menu with a title, but does not include it as a link (why would this happen? It is not occuring in the main menu, but that's using startId = 0. ). Since it's not linked (startID), I wanted to include the actual start container with includeDocs parameter. But since the parent isn't in the menu, no includeDocs. Kinda catch 22 here.
              Frogabog- MODX Websites in Portland Oregon
              "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
              Having server issues? These guys have MODX Hosting perfected - SkyToaster
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              If you want the parent to be part of the menu, a little juggling of the chunk/tpls is needed.

              Use the StartItemTpl to start the unordered list, and include the first li item of the startItem's link. Add the wf.wrapper and leave it open.

              In the OuterTpl, just have the wf.wrapper and the closing ul, leave out the opening ul.
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org