Closed aerni closed 1 year ago
This PR adds support for variables in any text, textarea, and code field.
Support for variables comes in two flavors.
Antlers Our beloved Antlers. Use it like you're used to:
seo_title: '{{ title }}'
@field Unlike Antlers, this syntax also works with GraphQL:
seo_title: '@field:title'
You can also get values from linked entries:
# Antlers seo_title: '{{ event:title }}' # @field seo_title: '@field:event:title'
If you want to go totally nuts, this works too:
# in an entry seo_title: '@default' # in the collection defaults seo_title: '@field:title'
This PR adds support for variables in any text, textarea, and code field.
Basic Usage
Support for variables comes in two flavors.
Antlers Our beloved Antlers. Use it like you're used to:
@field Unlike Antlers, this syntax also works with GraphQL:
Advanced Usage
You can also get values from linked entries:
If you want to go totally nuts, this works too: