I’m brand new to Modx and thus to Wayfinder so I’m a little unsure of myself. I’m trying to create a menu that will list the parent page and the children of a given set of pages. So far, I’ve gotten it it to list all of them in a an unordered list, but the code it produces is a little messed up. I’m not sure what I’m doing incorrectly.
Here’s my Wayfinder call in my template:
[[Wayfinder? &startId=`[[*parent]]` &displayStart=`true` &outerTpl=`outer` &startItemTpl=`menustart` &rowTpl=`menurow`]]
Here’s my outerTpl chunk:
<ul>
[[+wf.wrapper]]
</ul>
&startItemTpl:
<li>
<a href="[[+wf.link]]">[[+wf.linktext]]</a>
[[+wf.wrapper]]
</li>
&rowTpl:
<a href="[[+wf.link]]">[[+wf.linktext]]</a>
[[+wf.wrapper]]
</li>
And the html it produces:
<li>
<a href="index.php?id=2">Index</a>
<ul>
<li>
<a href="index.php?id=3">About</a>
</li>
<li>
<a href="index.php?id=4">Dates</a>
</li>
<li>
<a href="index.php?id=5">Fees</a>
</li>
<li>
<a href="index.php?id=6">Apply</a>
</li>
</ul>
</li>
Thanks for your help. I’m confident I’ve inserted a few problems