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.
-
☆ A M B ☆
- 24,524 Posts
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.
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?
-
☆ A M B ☆
- 24,524 Posts
The whole snippet tag must be on one line when using Evo. Revo can have them on multiple lines.
-
☆ A M B ☆
- 24,524 Posts
Well, that's nice to know.