This extension provides extended template features like using layouts, sections and partial templates without using any different template engine. This extension was developed as a proof of concept to show how to implement this feature in Contao. After template inheritance will be introduced in Contao 3.3 it was refactored to backport template inheritance to Contao 3.2 using the same syntax as in Contao 3.2.
- Backports features explained here to Contao 3.2
- Add support for multiple template inheritance as proposed in contao/core#6934
- Blacklist or whitelist configuration to decide in which template the feature can be used
- The default behavior is to blacklist templates which should not have
This extension uses the feature of callables introduced by contao/core#6176. That means that followings variable names are used. If your template uses this names for templates vars, there will be a conflict.
block
,endblock
,insert
,extend
,parent
for provided methods__helper
for assigned template helper
You can easily install the extension using the Composer client by installing
netzmacht/contao-template-extended