We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36632
    • 202 Posts
    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.]
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Can you paste the offending Wayfinder snippet call here?
        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
        • 22427
        • 793 Posts
        You find the default template chunks in the manual under Parameters > Default values in Revolution.
          • 36632
          • 202 Posts
          Quote from: ottogal at Feb 07, 2013, 06:36 PM
          You find the default template chunks in the manual under Parameters > Default values in Revolution.

          LOL! Yep, that's where you find out what the default params are, but not where the actual chunks are located.
            • 28042 ☆ 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]]';
            
              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
              • 36632
              • 202 Posts
              Thanks Susan. I solved the problem: typo in my rowlTpl Couldn't see the first l