We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1919
    • 10 Posts
    In Revo 2.2.5, Wayfinder 2.3.3 I'm trying to disable the link on the parent of a submenu, but nothing happens.
    Both &categoryFoldersTpl and &parentRowTpl are ignored.

    My latest try (this call is in a chunk, dont know if it matters)
    [[!Wayfinder?
    	&startId=`0`
    	&outerTpl=`menuOuter`
    	&innerTpl=`menuInner`
    	&categoryFoldersTpl=`@CODE:<li>[[+wf.linktext]][[+wf.wrapper]]</li>`
    	&hereClass=`selected` 
    	&firstClass=``
    ]]
    

    The template for the parent is empty and link attributes set to rel="category"

    Any ideas?

    Thank you [ed. note: apmartins last edited this post 13 years, 10 months ago.]
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Hm. Definitely not working. This is not good.

      Interesting...works fine on a 2.3.0 that I have on my localhost. Exact same Wayfinder call. [ed. note: sottwell last edited this post 13 years, 10 months ago.]
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 1919
        • 10 Posts
        So it's a bug?

        Is there another way to do that?
        I read somewhere that there's a way to make something like an if statement to disable the href... not sure how.
          • 1919
          • 10 Posts
          Solved this with Output Filters, not the best way but for now will work.

          my &rowTpl
          <li [[+wf.classes]]>
          [[+wf.docid:is=`3`:or:is=`4`:then=`<a title="[[+wf.title]]" [[+wf.attributes]]>[[+wf.linktext]]</a>
          `:else=`<a href="[[+wf.link]]" title="[[+wf.title]]" [[+wf.attributes]]>[[+wf.linktext]]</a>`]]
          [[+wf.wrapper]]
          </li>