Replies: 1 comment 4 replies
-
Perhaps you could restructure your setup to use taxonomies for storages instead? You could then use the taxonomy tag with the |
Beta Was this translation helpful? Give feedback.
4 replies
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.
-
Hi,
I have trouble wrapping my head around the Statamic query system and I'm getting a bit frustrated that I cannot use all the usual Eloquent methods. 😇 That's learning, I guess 🤓
I have the following code that works:
However, it's seems a bit overkill to me to fetch all of the fabrics to display in the end only the ~15 different storages. Especially since I have several other
<select>
on the same page for other fabric attributes. In Eloquent, I would have done something likeFabric::select('storage')->distinct()->get()
. How can I achieve the same with Statamic Stache?Thanks for your help!
Beta Was this translation helpful? Give feedback.
All reactions