If you are using Wayfinder you can use the &displayStart and the corresponding &startItemTpl parameters.
-
- 69 Posts
So I can use Wayfinder to display page titles too?
The sub nav that you see is called with Ditto.
Wayfinder can use quite a few of the regular resource variables:
[+wf.classes+] - where classes specifed will be inserted (includes class=" ")
[+wf.classnames+] - outputs the just the class names (without class=" ")
[+wf.link+] - the href value for your link
[+wf.title+] - text for the link title
[+wf.linktext+] - text for the link display
[+wf.wrapper+] - where to insert a submenu
[+wf.id+] - where to insert unique id
[+wf.attributes+] - where to insert link attributes
[+wf.docid+] - the document identifier for the current item
[+wf.subitemcount+] - displays the number of items in a folder
[+wf.description+] - output the description field
[+wf.introtext+] - output the introtext field
The &textOfLinks and &titleOfLinks can also be specified
&textOfLinks
default: menutitle
values: [ id | menutitle | pagetitle | introtext | menuindex | published | hidemenu | parent | isfolder |
description | alias | longtitle | type | template ]
description: The field specified in the textOfLinks parameter will be inserted into the placeholder
[+wf.linktext+].
&titleOfLinks
default: pagetitle
values: [ id | menutitle | pagetitle | introtext | menuindex | published | hidemenu | parent | isfolder |
description | alias | longtitle | type | template ]
description: The field specified in the titleOfLinks parameter will be inserted into the placeholder
[+wf.title+].
You can use these placeholders anywhere in the chunk tpl you want.
<a href="[+link+]" title="[+title+]">[+linktext+] - [+title+]</a>
and if you specified &textOfLinks=`pagetitle` or &titleOfLinks=`pagetitle` or even &titleOfLinks=`longtitle` you can get some interesting menu structures.