Add a segments property to the URL field just like the craft.app.request.segments #17833
Unanswered
BramMortier
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It would be nice to have a segments property on the LinkData object just like the craft.app.request object when creating navigations with multiple levels that need active states managed on those multiple levels.
then we can just compare the craft.app.request.segments[0] to linkField.segments[0] and if they are true we now the structure matches on that level and can set the active state accordingly.
Thanks for considering!
Beta Was this translation helpful? Give feedback.
All reactions