feat: add string template filters "default" and "ternary" (#3677) (#5878)

This commit is contained in:
Kolja Markwardt
2021-10-11 17:11:06 +02:00
committed by GitHub
parent c2c7d8309e
commit c791158dd5
3 changed files with 31 additions and 1 deletions

View File

@ -545,7 +545,7 @@ collections:
```
The above config will transform the title field to uppercase and format the date field using `YYYY-MM-DD` format.
Available transformations are `upper`, `lower` and `date('<format>')`
Available transformations are `upper`, `lower`, `date('<format>'), default('defaultValue') and ternary('valueForTrue','valueForFalse')`
## Registering to CMS Events