We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9207 ☆ A M B ☆
    • 2,475 Posts
    This one is driving me nuts. I have a simple Wayfinder call that works fine so long as the Chunks are normal database Chunks. The Wayfinder call fails when I use Static Chunks. Anyone seen this?

    This works:
    [[!Wayfinder? &startId=`0` &level=`2` 
    &outerTpl=`outerTpl` 
    &innerTpl=`innerTpl`]]
    


    But this fails -- only the top level pages are listed (nesting fails), so the problem could have something to do with the innerTpl? :

    [[!Wayfinder? &startId=`0` &level=`2` 
    &outerTpl=`outerTpl-STATIC` 
    &innerTpl=`innerTpl-STATIC`]]
    


    Where in all cases, I'm using the default formatting string for the database and static chunks -- I've event tried printing these to the logs from within the Wayfinder class and it's seeing them correctly:
    <ul[[+wf.classes]]>[[+wf.wrapper]]</ul>
    



    Wayfinder 2.3.3-pl
    MODX 2.2.9-pl
    I've disabled plugins and I've set this up on a blank template to ensure that JSS or CSS are not interfering.
      • 36533
      • 65 Posts
      nuwebstudios Reply #2, 13 years ago
      Out of curiosity, what happens if you call this Wayfinder snippet cached [[Wayfinder?... instead of [[!Wayfinder?...

      Also, what do your outerTpl and innerTpl look like?

      I'm wondering if you are experiencing some similar problems as this issue: http://bugs.modx.com/issues/10157

      spackko, was having an issue on 2.2.9 only showing first level. [ed. note: nuwebstudios last edited this post 13 years ago.]
        • 9207 ☆ A M B ☆
        • 2,475 Posts
        The problem was with 2.2.9 somehow. Reverting to 2.2.8 fixes this.

        outerTpl and innerTpl were the same:

        <ul[[+wf.classes]]>[[+wf.wrapper]]</ul>


        No difference whether the snippet was uncached or not.
          • 36533
          • 65 Posts
          nuwebstudios Reply #4, 13 years ago
          I'd recommend explaining your scenario on the issue I just linked to as it might help them better identify the problem. Though it's not specifically related to startId=`0` it sounds like you are having a related issue.
            • 9207 ☆ A M B ☆
            • 2,475 Posts
            Def. seems like it's plausibly related -- I'm dealing with multiple contexts and the startId of 0 could plausibly be misconstrued in that situation. If I can write a unit test, I'll post it with that bug report.
              • 22303 MODX Staff
              • 10,725 Posts
              Here is the patch; various uses of Media Sources were breaking the parser state and causing this issue — https://github.com/modxcms/revolution/commit/5cd13cba13e52e888cff5a5209b4d88bb976daf5

              Will be in 2.2.10 shortly...
                • 25803 ☆ A M B ☆
                • 721 Posts
                I'm having the same issue with a FormIt chunk that does not function when Is Static is checked but does when it is not. I'll try the patch above later today.

                I assume we just backup our current modparser.class.php file and replace it with the one on github?
                  • 25803 ☆ A M B ☆
                  • 721 Posts
                  Using this patch fixed my FormIt "Is Static" issue. My Wayfinder chunks were all set to Is Static but they worked anyway. [ed. note: rx2 last edited this post 12 years, 11 months ago.]