-
- 1,613 Posts
So how would the Wayfinder call looks like, or more important the rowTpl / inner / outer etc.?
There needs to be a small hack too I think because of the <li class="dropdown"> and the <a href="#" class="dropdown-toggle" data-toggle="dropdown"> for the ones with dropdown.
This is what I need to get:
<ul class="nav">
<li><a href="#">Home</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Drop meh</a>
<ul class="dropdown-menu">
<li><a href="#">About</a></li>
<li><a href="#">Services</a></li>
</ul>
</li>
</ul>
[ed. note: fourroses666 last edited this post 10 years, 8 months ago.]
Evolution user, I like the back-end speed and simplicity
-
- 1,613 Posts
** this one didn't work out that great **
[ed. note: fourroses666 last edited this post 10 years, 8 months ago.]
Evolution user, I like the back-end speed and simplicity
-
- 1,613 Posts
Ok, looks much better now, everything is right except for the menu links with no submenu:
Needs to be:
<li><a href="#">Home</a></li>
But this is the output:
<li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">Home</a></li>
Wayfinder call:
[[Wayfinder?
&startId=`0`
&level=`2`
&outerTpl=`menuOuter`
&rowTpl=`menuRow`
&innerTpl=`menuInner`
&innerRowTpl=`menuInnerRow`
&outerClass=`nav`
]]
menuInner:
<ul class="dropdown-menu [+wf.classnames+]">
[+wf.wrapper+]
</ul>
menuInnerRow:
<li[+wf.classes+]><a href="[+wf.link+]">[+wf.linktext+]</a>[+wf.wrapper+]</li>
menuOuter:
<ul[+wf.classes+]>
[+wf.wrapper+]
</ul>
menuRow:
<li class="dropdown [+wf.classnames+]">
<a class="dropdown-toggle" data-toggle="dropdown" href="[+wf.link+]">[+wf.linktext+]</a>
[+wf.wrapper+]
</li>
Evolution user, I like the back-end speed and simplicity
-
- 1,613 Posts
Hey thanx man!!
The parentRow did the trick!
I only had to change the innerTpl to get my submenu working, it needed the dropdown-menu class:
<ul class="dropdown-menu">[+wf.wrapper+]</ul>
Evolution user, I like the back-end speed and simplicity