Hey guys, i have used wayfinder in every project i made and this is the first time im a bit stuck on a new feature my client wants.
I have this structure
- web
- link 1
- link 2
- link 21
- link 3
- link 31
- link 32
- link 4
Now the default behavior makes link3 a clickable link and has its own page. In earlier projects i have used the plugin FirstChildRedirect, to redirect this item to "link 31". But now my client wants that this link is simply not clickable.
So link 3 has no href attribute, but this is not for every folder, since link 2 must be a page.
I have used this chunk of code for the menurow template, but it doesnt seem to work? My idea wa sthat if the client did not fill in the document alias, i would check that and then not create a link.
<li [[+wf.id]] [[+wf.classes]] > <a [[+wf.link:is=`[[+wf.docid]]/`:then=``:else=`href="[[+wf.link]]"`]] [[+wf.attributes]]>[[+wf.linktext]]</a> [[+wf.wrapper]] </li>
Help plx