We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19369
    • 1,098 Posts
    This is my code:
    [[Wayfinder? &startId=`0` &level=`2` &sortBy=`menuindex` &rowTpl=`rowTPL`]]


    rowTPL:
    <li[+wf.classes+]>
        [+phx:if=`[+wf.docid+]`:is=`5`:then=`
                [+wf.linktext+][+wf.wrapper+]
        `:else=`
                <a href="[+wf.link+]">[+wf.linktext+]</a>
        `+]
    </li>

      • 40024
      • 72 Posts
      @microcipcip Hmmm,yeah,this way the output is correct,but now if somebody would click on another parent resource(other than the "About us" resource i mean ),its children wouldn't show because there is no [+wf.wrapper+] placeholder in the "else" part.
      On the other hand,if you place a [+wf.wrapper+] placeholder in the else part, then the children from ALL parent resources will show.And afterwards,if you place a &hideSubMenus=`1` parameter, then all children will be invisible,unless you click on the parent menu item. But since "About us" is unclickable,its children can't appear.
      Remember that i want the children from "About us" to appear,but the children from all other parent resources not to appear UNLESS you click on the parent menu item first.

      Both you and @ottogal i thank you for your great support and i am sorry if i wasn't clear to you from the way i speak smiley .
        • 19369
        • 1,098 Posts
        @dinpapa, well, your Wayfinder menu is a little bit complex, but with the right use of PHx and Wayfinder parameters I guess it should be possible to do what you're trying to accomplish. What's nice about MODX is that you can use your imagination and make it do whatever you want.

        When I have a complex Wayfinder call like yours I just try and try (not really professional wink) until I get it to work. It's like solving a puzzle.
        [ed. note: microcipcip last edited this post 14 years, 4 months ago.]
          • 40024
          • 72 Posts
          @microcipcip That's what i do too.It's just that MODX is my first cms and i only started reading tutorials two months ago.Plus,i suck at php (means i know nothing) tongue . Anyway, i will keep trying and something will come up eventually smiley .