We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44672
    • 3 Posts
    Greetings to Modx experts from novice!

    It seems Modx ignores my &outerTpl parameter.

    There is no difference that I put this
    [!Wayfinder? &startId=`3`!]

    or this code
    [!Wayfinder? &startId=`3` &outerTpl=`outerTpl`!]

    Output is the same:

    <ul><li><a href="/folder/page1.html" title="page1 title" >Page1 title</a></li>
    <li class="last active"><a href="/folder/page2.html" title="page2 title" >Page2 title</a></li>
    </ul>

    My "outerTpl" chank is:
    <!-- outerTpl -->
    <ul id="topnav">
    [+wf.wrapper+]
    </ul>

    May be it should be placed in the special category?

    Thank you.
    • Should be working. Works fine for me.

      You don't need to be calling Wayfinder uncached; in fact listing snippets like Wayfinder and Ditto almost always should be cached.
        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
        • 44672
        • 3 Posts
        I have changed Wayfinder to

        [[Wayfinder? &startId=`3`
        &outerTpl=`outerTpl`
        ]]

        Chank outerTpl
        - as it was:
        <!-- outerTpl -->
        <ul id="topnav">
        [+wf.wrapper+]
        </ul>

        But but instead of the expected string
        <!-- outerTpl --><ul id="topnav"><li><a href="/folder/...

        There is in the output
        <ul><li><a href="/folder/...

        Could this be because I recall Wayfinder through TV?
        • The whole snippet tag must be on one line when using Evo. Revo can have them on multiple lines.
            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
            • 44672
            • 3 Posts
            Thank you for help. It was for the tags <b><em></em></b> which weren't seen in TinyMCE smiley
              • 16278
              • 928 Posts
              Quote from: sottwell at Aug 04, 2013, 06:06 PM
              The whole snippet tag must be on one line when using Evo. Revo can have them on multiple lines.
              Multi-line snippet calls have been fine in Evo since v1.0.5
              (from release notes: [#MODX-948] Parser: Snippet calls no longer break with blank characters or when broken across multiple lines)

              ;) KP
              • Well, that's nice to know.
                  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