We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44473
    • 1 Posts
    &parentRowTpl not working properly and only &rowTpl code coming in html. i don't know whats going wrong.
    here is the code
    [[Wayfinder?
      &startId=`0`  
      &parentRowTpl =`ParentRowTplMain` 
      &rowTpl=`NavigationMenuRow`
      &outerTpl=`NavigationMenuOuterContainer`  
      &innerTpl=`NavigationMenuInnerContainer`
      &innerRowTpl=`NavigationMenuInnerRow`      
        ]]


    $parentRowTpl chunk
    <li class="sub" data-role="dropdown"><a href="[[+wf.link]]" [[+wf.attributes]]>
        [[+wf.linktext]]
    </a>    [[+wf.wrapper]]
    </li>


    $rowTpl chunk
    <li class="sub"><a href="[[+wf.link]]" [[+wf.attributes]]>
        [[+wf.linktext]]
    </a>
        [[+wf.wrapper]]
    </li>
    • I'm am having a simular issue, parentRowTpl is not being applied, when I debug I get the following errors:

      Warning: Illegal offset type in /home/www/ad4a1c379d9f1e0201e847611f40e3c0/web/core/components/wayfinder/wayfinder.class.php on line 350
      
      Warning: strpos() expects parameter 1 to be string, array given in /home/www/ad4a1c379d9f1e0201e847611f40e3c0/web/core/components/wayfinder/wayfinder.class.php on line 926
      
      Warning: htmlentities() expects parameter 1 to be string, array given in /home/www/ad4a1c379d9f1e0201e847611f40e3c0/web/core/components/wayfinder/wayfinder.class.php on line 926
      • Are you sure that the parent resources have their "Container" setting checked?
          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
        • Worked like a charm, did not know that was a necessity, no reference of this in the rtfm nor the Kongondo guide...
          • I just stumbled over this myself a few days ago. Dragging resources in the Tree into another resource doesn't set the new parent's "Container" setting. Took me a while to figure out what was going on.

            I have added a warning to the rtfm; bug report is here [ed. note: sottwell last edited this post 10 years, 9 months ago.]
              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