We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34459
    • 134 Posts
    what's a superfish?
      Check out blackflow.pl
      • 26503
      • 620 Posts
      there is another option, in your wayfinder row templates, call a snippet that 'decides' which menu items to make clickable or not...

      here's my navRowTpl:

      [[killLink? &docid=`[[+wf.docid]]`]]


      the killLink snippet it calls:

      
      <?php
      //[[killLink? &docid=`[[+wf.docid]]`]]
      
      if ($docid == 13){
      
      	$output = $modx->getChunk('navRowDeadTpl');
      
      }else{
      
      	$output = $modx->getChunk('navRowLiveTpl');
      
      }
      
      return $output;
      
      



      navRowDeadTpl:

      <li><a>[[!getEventDate? &resourceId=`[[+wf.docid]]`]][[+wf.linktext]]</a>[[+wf.wrapper]]</li>


      navRowLiveTpl

      <li><a href="[[+wf.link]]">[[!getEventDate? &resourceId=`[[+wf.docid]]`]][[+wf.linktext]]</a>[[+wf.wrapper]]</li>





      So basically the snippet just decides which row template to pass back to wayfinder based on the document id... you could tweak that to use the document name, query results or whatever...


        *** Not just websites, we also create signage, banners, print, trade show displays and more! ***

        Sean Kimball CLP, CLS.
        Technical Director / Sr. Developer | BigBlock Studios
        ._______________________________________________.
        Bigblock Studios http://www.bigblockstudios.ca Web site design & development.
        27-1300 King Street East. Box 167 Oshawa, Ontario L1H8J4 Canada.
        phone/fax: 905-426-5525
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Quote from: blackflow at May 21, 2012, 02:17 PM
        what's a superfish?

        http://users.tpg.com.au/j_birch/plugins/superfish/

        The original "suckerfish" menu is here http://www.alistapart.com/articles/dropdowns/
          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
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          The way to prevent Wayfinder from making a menu item a link is to have the item be a "category folder" item, and specify a tpl for these items.

          &categoryFoldersTpl - Name of the chunk containing the template for category folders. Category folders are determined by setting the resource's template to blank or by setting the link attributes field to rel="category".

          For example, the categoryFoldersTpl could look like this:
          <li [[+wf.classes]]><span>[[+wf.linktext]]</span></li>


          Then your CSS would style the li span elements the same way it does the li a elements, so that they would look the same.




            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