Blade: how to retrieve Taxonomy value #6273
Replies: 4 comments 3 replies
-
Just like your previous discussion, make sure that field has |
Beta Was this translation helpful? Give feedback.
-
@jasonvarga OK I'm having this issue again...I thought I had a better handle after our last discussion, but this just isn't resolving for me: I changed a taxonomy field from no max items to max_items: 1. The Yaml looks like this: Its as if after I made the change to max_items:1, its not taking effect. I cleared the cache, stache....am I missing some additional step needed to "trigger" this change? |
Beta Was this translation helpful? Give feedback.
-
dumping the $page: |
Beta Was this translation helpful? Give feedback.
-
OK I think I got this one resolved. Since its a taxonomy term, has to be resolved, so changed to: {{ $page->music_genre->title }} all good. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a taxonomy field in my entry blueprint:
The taxonomy looks like this:
The entry looks like this:
How do I retrieve the taxonomy value for this entry in blade?
I have the value injected in the template at $page->speed_rpm, but can't seem to access any values on the collection. I'm thinking I need to do an inline Statamic::tags query using the slug? If so, how to access the slug value?
Beta Was this translation helpful? Give feedback.
All reactions