Hi
I'm trying to automatically generate a navigation page based on the sub pages of a folder
By using [[!Wayfinder? &startId=`2` &level=`1`]] it displays the ul
What i am trying to is output something like
<div class="docBody229Header"><h2>[[*menutitle]]</h2></div>
<div class="docBody229">[[*description]]</div>
by using [[!Wayfinder? &startId=`2` &level=`1` &rowTpl=`navInner`]] with navInner the above code, it just outputs the containing folder rather than the sub pages
Am i mis understanding what wayfinder can do and instead have to figure out my styling a UL or is this possible and i am just missing something really silly
Thanks
Ben
I think you would be better to use getResources here:
[[getResources? &parents=`2` &tpl=`navInner`]]
and use the placeholders-tag:
, not the Resource-field/TV-tag:
inside tpl-chunks
the tpl-chunk would look like this:
<div class="docBody229Header"><h2>[[+menutitle]]</h2></div>
<div class="docBody229">[[+description]]</div>
Perfect that works a treat. How do it get the links for each one ?
Found it, just incase anyone else has this issue
<a href="[[~[[+id]]]]"> link </a>