Good day all!
I'm beginner in MODX Revo.
I have a (maybe simple) question. I have menu with 2 levels. How to remove link from parent level if there is submenu?
MODX Revolution version: 2.5.1
menu:
[[Wayfinder?
&startId=`0`
&level=`2`
&outerTpl=`outerTpl`
&innerTpl=`innerTpl`
&rowTpl=`rowTpl`
&parentRowTpl=`parentRowTpl`
]]
outerTpl:
<ul class="nav clear">
[[+wf.wrapper]]
</ul>
innerTpl:
<ul class="sec_nac">
[[+wf.wrapper]]
</ul>
rowTpl:
<li [[+wf.classes]]>
<a href="[[+wf.link]]">[[+wf.linktext]]</a>
</li>
parentRowTpl:
<li class="active open_sec_nav [[+wf.classnames]]"><a href="[[+wf.link]]">[[+wf.linktext]]</a>
[[+wf.wrapper]]
</li>
There is no content to put in parent page, so I need to disable link.
I read this post:
https://forums.modx.com/thread/40823/how-to-disable-clickable-in-one-link-wayfinder
tried to do same, but nothing changed. Cache cleared.