We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36551
    • 416 Posts
    I want to apply a style to the top level menu items when there are submenu items present. Here's my wayfinder call:

    [[Wayfinder? &startId=`0` &level=`2` &parentRowTpl=`parentrow` &parentClass=`navparents` &rowTpl=`rowtpl` &debug=`0`]]


    I have a chunk called parentrow:
    <li [[+wf.classes]]><a href="[[+wf.link]]" title="[[+wf.title]]" >[[+wf.linktext]]</a> ++ [[+wf.wrapper]]</li>
    


    The rowTpl is working just fine but the parentRowTpl is being ignored. There are no classes added to the parent li and the ++ (in the parentrow for testing) don't appear either.

    The debug report shows the values are retrieved from the DB and it shows the item in question as having children.

    I know this should be simple and straight forward, but I'm stuck. . .
    • pity this never got a response. But what was a problem has actually helped me achieve a unique dropdown. This part of the call saved my time:
      &parentRowTpl=`parentrow` &parentClass=`navparents`

      Your call should have worked maybe there was a bug back then.
      • Having children is not enough; the parent resource also has to have the "container" setting checked. There are times when a resource can have children, and show as a container in the Tree, but the Container setting is still not checked. It happens whenever you move resources into a resource that is not already set as a Container; moving resources into a parent resource via drag-and-drop in the Tree does not change the setting. That caught me out a couple of weeks ago, and took some time before I realized what had happened.
          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
        • That's been getting me too lately, yet it seems that before 2.2.8 simply moving a resource automatically checked the container box.

          I've also had issues simply moving some resources lately. Sometimes they'll move, sometimes I have to set the order manually. Sometimes they'll move into one non container resource but not the one I want it in. This seems new to me.
            Frogabog- MODX Websites in Portland Oregon
            "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
            Having server issues? These guys have MODX Hosting perfected - SkyToaster
          • Yes, I've noticed that too. Seems like the javascript is a little messed up.
              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
            • Thanks, makes me feel little less crazy now. If you noticed it too... it's likely real.
                Frogabog- MODX Websites in Portland Oregon
                "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
                Having server issues? These guys have MODX Hosting perfected - SkyToaster
              • After a few months away from MODx I had to battle this all through yesterday: 'children refusing to have parents'

                So what I noticed is that for it to persist after you leave the manager or your seat, you need to not be on any of the parent or resources you aim to child while doing the tree move.
                • Well now, there goes my tabs and quick edit habits...
                    Frogabog- MODX Websites in Portland Oregon
                    "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
                    Having server issues? These guys have MODX Hosting perfected - SkyToaster