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
-
☆ A M B ☆
- 24,524 Posts
Quote from: blackflow at May 21, 2012, 02:17 PMwhat's a superfish?
http://users.tpg.com.au/j_birch/plugins/superfish/
The original "suckerfish" menu is here
http://www.alistapart.com/articles/dropdowns/
-
☆ 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.