<div id="globnav"> <nav>[[Wayfinder? &startId=`2` &level=`1`]]</nav> </div>
[[Wayfinder? &startId=`2` &level=`1`]]
[!Wayfinder? startId=`0` &level=`1` &rowClass=`topnav` &includeDocs=`1,2,12,81,95,99`]
<nav id="globnav"> [[Wayfinder? &startId=`2` &level=`1`]]</nav>
&outerTpl
Name of the chunk containing the template for the outer most container; if not included, a string including "<ul>[[+wf.wrapper]]</ul>" is assumed
Available placeholders are:
wf.classes - outputs relevant classes (including class=" ")
wf.classnames - outputs relevant classes (without class=" ")
wf.wrapper - outputs inner (row) contents. This placeholder is required.
Please note that you will need to wrap the placeholders with the relevant tags.
Evolution: [+wf._____+]
Revolution: [[+wf._____]]
Example of an &outerTpl chunk (Evo):
1<ul id="topnav"[+wf.classes+]>[+wf.wrapper+]</ul>
Revo:
1<ul id="topnav"[[+wf.classes]]>[[+wf.wrapper]]</ul>
The following table shows other parameters to change your output, that use the same placeholders as the &outerTpl parameter.
Parameter Description
&innerTpl Name of the chunk containing the template for any subfolders listed in the menu.
&rowTpl Name of the chunk containing the template for the regular row items.
Available placeholders are:
wf.classes - outputs relevant classes (including class=" ")
wf.classnames - outputs relevant classes (without class=" ")
wf.link - the href value for your link
wf.title - the title text for the link, from the field as specified in the &titleOfLinks parameter
wf.linktext - the text for the actual link, from the field as specified in the &textOfLinks parameter
wf.wrapper - outputs inner contents such as submenus
wf.id - outputs a unique ID attribute. You will need to specify the &rowIdPrefix parameter in order for this placeholder to receive a value. The value is your prefix + the docId.
wf.attributes - outputs the link attributes of the current item
wf.docid - the document identifier for the current item
wf.description - the current item's description
&outerTpl
<ul[[+wf.classes]]>[[+wf.wrapper]]</ul>
&rowTpl
<li[[+wf.id]][[+wf.classes]]><a href="[[+wf.link]]" title="[[+wf.title]]" [[+wf.attributes]]>[[+wf.linktext]]</a>[[+wf.wrapper]]</li>
&startItemTpl
<h2[[+wf.id]][[+wf.classes]]>[[+wf.linktext]]</h2>[[+wf.wrapper]]
Try it without the div.I'll try that, Frogabog. But I'm shure you agree with me: This shouldn't make a difference in wether it does work as stated in all docs or not.
<nav id="globnav"> [[Wayfinder? &startId=`2` &level=`1`]]</nav>
You may want to make &outerTpl and &rowTpl chunks so that Wayfinder doesn't use the defaults, but rather the classes/ID's you tell it to use. Place markup & classes/id's within the tpl chunks. add them to the Wayfinder call.That's exactly what I intend to do once this thing is sorted out.
&outerTplThanks mate. I came across this already though.
Name of the chunk containing....
Well, it doesn't matter. It either does work obeying to all paramaters or to none of them at all.
Also, just for kicks and giggles, try setting the &level to a higher number. I'm still not 100% clear on how that works for child containers of level 1 resources.
Are you sure that resource ID #2 is published and has published children set to show in the menu?Thanks, sottwell, for contributing.
Indeed. Unless there's something in the CSS hiding it?True. But not the case. Before I had the wrapping div in the page template.