Hello!
I’ve read the articles about having too many variables, or duplicate/old variables but I think my issue is a little different.
I’m building a multi-level nav, which has parents and children and sub-children. Currently, I have each button (nav item) handling it’s own State, because I need to be able to control each button separately based on what gets selected.
The issue: There are a lot of variables to switch per selection. Breadcrumbs, Page Titles, Descriptions, Page Views, the nav item itself getting selected and simultaneously setting all others to default.
My question is, is there an easier way to do mass variable state switches for the nav? If I add a new nav item, or include a new element that requires a variable, I then have to go into each nav item’s interactions and add that to the list. As you can imagine with 20+ nav items this gets tiring and frustrating. 😛
It would be great to have these all be part of a larger group where the rule is only one can be selected at a time, but I doubt that exists. *It also makes keeping a parent staying selected an issue as well.
Has anyone run into this yet? Any ideas? 🙂