Both sides previous revisionPrevious revision | |
v:2.0:templates:advanced [2023/05/25 12:21] – adam | v:2.0:templates:advanced [2025/07/09 18:07] (current) – [Allowed Twig Tags and Functionality] foxybrett |
---|
| |
* Tags: [[https://twig.symfony.com/doc/2.x/tags/block.html|block]], [[https://twig.symfony.com/doc/2.x/tags/embed.html|embed]], [[https://twig.symfony.com/doc/2.x/tags/if.html|if]], [[https://twig.symfony.com/doc/2.x/tags/import.html|import]], [[https://twig.symfony.com/doc/2.x/tags/include.html|include]], [[https://twig.symfony.com/doc/2.x/tags/for.html|for]], [[https://twig.symfony.com/doc/2.x/tags/macro.html|macro]], [[https://twig.symfony.com/doc/2.x/tags/set.html|set]] | * Tags: [[https://twig.symfony.com/doc/2.x/tags/block.html|block]], [[https://twig.symfony.com/doc/2.x/tags/embed.html|embed]], [[https://twig.symfony.com/doc/2.x/tags/if.html|if]], [[https://twig.symfony.com/doc/2.x/tags/import.html|import]], [[https://twig.symfony.com/doc/2.x/tags/include.html|include]], [[https://twig.symfony.com/doc/2.x/tags/for.html|for]], [[https://twig.symfony.com/doc/2.x/tags/macro.html|macro]], [[https://twig.symfony.com/doc/2.x/tags/set.html|set]] |
* Filters: [[https://twig.symfony.com/doc/2.x/filters/abs.html|abs]], [[https://twig.symfony.com/doc/2.x/filters/capitalize.html|capitalize]], [[https://twig.symfony.com/doc/2.x/filters/date.html|date]], [[https://twig.symfony.com/doc/2.x/filters/date_modify.html|date_modify]], [[https://twig.symfony.com/doc/2.x/filters/default.html|default]], [[https://twig.symfony.com/doc/2.x/filters/escape.html|escape]], [[https://twig.symfony.com/doc/2.x/filters/first.html|first]], [[https://twig.symfony.com/doc/2.x/filters/join.html|join]], [[https://twig.symfony.com/doc/2.x/filters/json_encode.html|json_encode]], [[https://twig.symfony.com/doc/2.x/filters/keys.html|keys]], [[https://twig.symfony.com/doc/2.x/filters/last.html|last]], [[https://twig.symfony.com/doc/2.x/filters/length.html|length]], [[https://twig.symfony.com/doc/2.x/filters/lower.html|lower]], [[https://twig.symfony.com/doc/2.x/filters/merge.html|merge]], [[https://twig.symfony.com/doc/2.x/filters/nl2br.html|nl2br]], [[https://twig.symfony.com/doc/2.x/filters/number_format.html|number_format]], [[https://twig.symfony.com/doc/2.x/filters/round.html|round]], [[https://twig.symfony.com/doc/2.x/filters/slice.html|slice]], [[https://twig.symfony.com/doc/2.x/filters/split.html|split]], [[https://twig.symfony.com/doc/2.x/filters/raw.html|raw]], [[https://twig.symfony.com/doc/2.x/filters/replace.html|replace]], [[https://twig.symfony.com/doc/2.x/filters/reverse.html|reverse]], [[https://twig.symfony.com/doc/2.x/filters/title.html|title]], [[https://twig.symfony.com/doc/2.x/filters/trim.html|trim]], [[https://twig.symfony.com/doc/2.x/filters/upper.html|upper]], [[https://twig.symfony.com/doc/2.x/filters/url_encode.html|url_encode]] | * Filters: [[https://twig.symfony.com/doc/2.x/filters/abs.html|abs]], [[https://twig.symfony.com/doc/2.x/filters/capitalize.html|capitalize]], [[https://twig.symfony.com/doc/2.x/filters/date.html|date]], [[https://twig.symfony.com/doc/2.x/filters/date_modify.html|date_modify]], [[https://twig.symfony.com/doc/2.x/filters/default.html|default]], [[https://twig.symfony.com/doc/2.x/filters/escape.html|escape]], [[https://twig.symfony.com/doc/2.x/filters/first.html|first]], [[https://twig.symfony.com/doc/2.x/filters/join.html|join]], [[https://twig.symfony.com/doc/2.x/filters/json_encode.html|json_encode]], [[https://twig.symfony.com/doc/2.x/filters/keys.html|keys]], [[https://twig.symfony.com/doc/2.x/filters/last.html|last]], [[https://twig.symfony.com/doc/2.x/filters/length.html|length]], [[https://twig.symfony.com/doc/2.x/filters/lower.html|lower]], [[https://twig.symfony.com/doc/2.x/filters/merge.html|merge]], [[https://twig.symfony.com/doc/2.x/filters/nl2br.html|nl2br]], [[https://twig.symfony.com/doc/2.x/filters/number_format.html|number_format]], [[https://twig.symfony.com/doc/2.x/filters/round.html|round]], [[https://twig.symfony.com/doc/2.x/filters/slice.html|slice]], [[https://twig.symfony.com/doc/2.x/filters/split.html|split]], <wrap important>[[https://twig.symfony.com/doc/2.x/filters/raw.html|raw]]</wrap>, [[https://twig.symfony.com/doc/2.x/filters/replace.html|replace]], [[https://twig.symfony.com/doc/2.x/filters/reverse.html|reverse]], [[https://twig.symfony.com/doc/2.x/filters/title.html|title]], [[https://twig.symfony.com/doc/2.x/filters/trim.html|trim]], [[https://twig.symfony.com/doc/2.x/filters/upper.html|upper]], [[https://twig.symfony.com/doc/2.x/filters/url_encode.html|url_encode]] |
* Functions: [[https://twig.symfony.com/doc/2.x/functions/block.html|block]], [[https://twig.symfony.com/doc/2.x/functions/date.html|date]], [[https://twig.symfony.com/doc/2.x/functions/random.html|random]], [[https://twig.symfony.com/doc/2.x/functions/template_from_string.html|template_from_string]], [[https://twig.symfony.com/doc/2.x/functions/min.html|min]], [[https://twig.symfony.com/doc/2.x/functions/max.html|max]] | * Functions: [[https://twig.symfony.com/doc/2.x/functions/block.html|block]], [[https://twig.symfony.com/doc/2.x/functions/date.html|date]], [[https://twig.symfony.com/doc/2.x/functions/random.html|random]], [[https://twig.symfony.com/doc/2.x/functions/template_from_string.html|template_from_string]], [[https://twig.symfony.com/doc/2.x/functions/min.html|min]], [[https://twig.symfony.com/doc/2.x/functions/max.html|max]] |
| |
Need a tag, filter or function not listed here? Simply [[http://www.foxycart.com/contact|get in touch]] and we can look at adding it. | Need a tag, filter or function not listed here? Simply [[http://www.foxycart.com/contact|get in touch]] and we can look at adding it. |
| |
| <WRAP important round>**Using ''raw''?** Please be aware that using ''raw'' should only be done with caution, and never on user-supplied fields, as it could introduce security vulnerabilities. When in doubt, please contact us to review your customizations.</WRAP> |
| |
We also have some custom Twig filters and functions we've added to meet specific needs: | We also have some custom Twig filters and functions we've added to meet specific needs: |