digital-marketing-framework / typo3-template-engine-twig
Anyrel - Twig Template Engine
Installs: 3 380
Dependents: 3
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:typo3-cms-extension
Requires
- php: ^8.2
- digital-marketing-framework/template-engine-twig: ^3.0
- digital-marketing-framework/typo3-core: ^3.0
- typo3/cms-core: ^12.4 || ^13.4
Requires (Dev)
- mediatis/typo3-coding-standards: ^2.1 || ^3.1
README
EXT:dmf_template_engine_twig is overriding the default template engine from EXT:dmf_core
It will allow you to use Twig in the template fields
Manual
Data access
It is possible to output the data directly with the field name. Example:
Hello {{ firstname }} {{ lastname }}, Thank you for your message!
Furthermore, we have an array in which all fields have been stored. Here is an example of how to access the array:
{% for key,value in all_values %} {{ key }}: {{ value }} {% endfor %}