In Revo 2.1.2, trying to call Wayfinder (2.3.1) with the parameter [tt]&categoryFoldersTpl[/tt] I run into an issue I don’t understand.
I use the link attribute [tt]rel="category"[/tt] for the page I don’t want to become a link in the WF output - of course, it has children with the checkbox [tt]Hide From Menus[/tt] unchecked.
My call is
[[!Wayfinder?
&startId=`0`
&level=`0`
&hideSubMenus=`0`
&categoryFoldersTpl=`catrow`
]]and of course I thought my chunk [tt]catrow[/tt] was the culprit.
To test this, I replaced its code by the code of the default rowTpl:
<li [[+wf.id]] [[+wf.classes]] >
<a href="[[+wf.link]]" title="[[+wf.title]]" [[+wf.attributes]]>[[+wf.linktext]]</a>
[[+wf.wrapper]]
</li>
So the menu item of that special page should be output like all the other rows.
Instead I become the strange result that the created code for that special row containes a totally empty link:
<li>
<a href="" title="" ></a>
</li>
Now I’m clueless what is happening here.
Edit:
Looking around in the file [tt]wayfinder.class.php[/tt] , in the function which has to "determine which template to use", I found the following piece of code (line 295-296):
} elseif ($resource['isfolder'] && ($resource['template']=="0" || is_numeric(strpos($resource['link_attributes'],'rel="category"'))) && $this->_templates['categoryFoldersTpl'] && ($resource['level'] < $this->_config['level'] || $this->_config['level'] == 0)) {
$usedTemplate = 'categoryFoldersTpl';
Here I don’t understand the condition
[tt]($resource[’level’] < $this->_config[’level’] || $this->_config[’level’] == 0)[/tt].
Ok, I do understand this.
Any hint is much appreciated!
Thank you
ottogal