We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23268
    • 2 Posts
    Hello all,

    i search the web a lot to find a solution for this.
    How is it possible, that i know in which level of the hierarchiy i am within wayfinder.
    Lets Say:
    root : level 0
    -menu1: level 1
    --menu1_1: level 2
    --menu1_1: level 2
    -menu2: level 1
    --menu2_1: level 2
    --menu2_2: level 2

    There is no placeholder for this within wayfinder.
    I tried to find a solution by using phx by i am not sure which api call i can use.

    Has someone an idea for this ?

    Best regards,

    Phil
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      It has a parameter, &levelClass, that will create a classname using whatever you specify plus the level. This value by itself isn’t added to the list of placeholders, however. So you could get
      class="level1"

      for your menu items.
        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
        • 23268
        • 2 Posts
        Thanks! That is a good hint - I try to use this to implement what I want.

        Best regards,

        Philip