Wayfinder won't use my rowTpl. I have no clue why. It also doesn't respond at all to my Property Set.
I have 4 contexts in my MODX 2.2.6 install. I have Property Sets in 1 that work, no issues.
But this one context, it just blows off my rowTpl, yet manages to find time to use my custom outerTpl.
I thought there was a default rowTpl chunk the way other Snippets create their own, but I don't see it anywhere in the Chunks container, nor in the Filesystem. Not sure what else I can do.
[ed. note: ultrasef last edited this post 13 years, 7 months ago.]
-
☆ A M B ☆
- 24,524 Posts
Can you paste the offending Wayfinder snippet call here?
-
☆ A M B ☆
- 24,524 Posts
The actual defaults for the basic outerTpl, rowTpl, and startItemTpl can be found in the core/components/wayfinder/wayfinder.class.php, in the checkTemplates() function beginning with line 732.
if ($n === 'outerTpl') {
$this->_templates[$n] = '<ul[[+wf.classes]]>[[+wf.wrapper]]</ul>';
} elseif ($n === 'rowTpl') {
$this->_templates[$n] = '<li[[+wf.id]][[+wf.classes]]><a href="[[+wf.link]]" title="[[+wf.title]]" [[+wf.attributes]]>[[+wf.linktext]]</a>[[+wf.wrapper]]</li>';
} elseif ($n === 'startItemTpl') {
$this->_templates[$n] = '<h2[[+wf.id]][[+wf.classes]]>[[+wf.linktext]]</h2>[[+wf.wrapper]]';
Thanks Susan. I solved the problem: typo in my rowlTpl Couldn't see the first l