Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax for Conditional on Taxonomy Term not documented #1450

Open
ssyberg opened this issue Sep 9, 2024 · 0 comments
Open

Syntax for Conditional on Taxonomy Term not documented #1450

ssyberg opened this issue Sep 9, 2024 · 0 comments

Comments

@ssyberg
Copy link

ssyberg commented Sep 9, 2024

Full discussion here: statamic/cms#6488

Most relevant excerpt:
I think this is the answer, though I'm not totally sure if these are the right identifiers. The secret sauce here missing from the docs is the <some sort of handle>::

if:
  <taxonomny_terms_field_handle>: 'contains <taxonomy_handle???>::<taxonmy_term_slug>'

So in my current example it looks like this:

unless:
  news_types: 'contains news_types::media-mentions'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant