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
-
☆ 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
for your menu items.
Thanks! That is a good hint - I try to use this to implement what I want.
Best regards,
Philip