Thanks Everett <not feeling real smart> I reinstalled the sample site and caught the difference just before you posted . . . . and it hit me. Doh.
I do this
[[!Wayfinder?startId=`0` &rowTpl=`mh.rowTpl` &hereClass=`selected` &lastClass=`last`]]
I get a menu from
<li><a id="[[+wf.attributes]]" [[+wf.classes]] href="[[+wf.link]]" title="[[+wf.title]]">[[+wf.linktext]]</a>[[+wf.wrapper]]</li>
All good, it’s accepting the ID’s, but I need a specific wrapper. As soon as I do this,
[[!Wayfinder?startId=`0` &outerTpl=`mh.outerTpl` &rowTpl=`mh.rowTpl` &hereClass=`selected` &lastClass=`last` &debug=`1`]]
with this as outerTpl,
<ul id="topnav"[[+wf.classes]]>
[[++wf.wrapper]]
</ul>
All I get for output is
<ul id="topnav">
</ul>
What am I missing? It would be helpful if the documentation shows cause and effect examples, it shows example usage . . . problem is I can’t get half of them to work so can’t see the effect. :-(
-
MODX Staff
- 95 Posts
Did you try making [[++wf.wrapper]] this instead: [[+wf.wrapper]]
so the outer tpl becomes this:
<ul id="topnav"[[+wf.classes]]>
[[+wf.wrapper]]
</ul>
-
☆ A M B ☆
- 2,475 Posts
Watch out with your Snippet parameters: EACH of them needs the ampersand "&". Your startId parameter needs to read: &startId
-
☆ A M B ☆
- 2,475 Posts
Hmm... I thought each param needed the "&"... maybe it’s different with Revo.