Skip to content

Syntax for Conditional on Taxonomy Term not documented #1450

Open
@ssyberg

Description

@ssyberg

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions