Modeling a nav bar that accepts multiple collections #11206
Unanswered
runoncedev
asked this question in
Q&A
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to model up a global to use it as a nav bar and I need it to accept multiple collections.
Normally I would create a field for each relationship, but this way I can't manually sort them.
Let's say I have 2 collections:
I need to add page "Contact" and category "Featured" to the nav bar and manually set the order: I want "Featured" to come first and "Contact" latter.
So I would code the UI that way: first show "page" items and then "category" items.
But then I need to add a secondary nav bar somewhere, and this fixed sorting doesn't cut it. I need to be able to manually sort each menu items.
How can I do this? Is it the right thing to use globals for this use case?
Beta Was this translation helpful? Give feedback.
All reactions