Quick templating in Fluid
EXT:clubmanager is using Fluid as templating engine. If you are not experienced with Fluid yet you can read more about it in the chapter Templates.
Copy the Fluid templates that you want to adjust to your sitepackage extension.
You find the original templates in EXT:
and the partials in EXT:.
Important
Never change these templates directly!
To override the standard clubmanager templates with your own you can use the TypoScript constants to set the paths:
Note
This TypoScript-based approach is available for legacy/fallback use-cases. Site Sets and Site Settings are the preferred configuration method.
plugin.tx_clubmanager {
view {
templateRootPath = EXT:mysitepackage/Resources/Private/Extensions/Clubmanager/Templates/
partialRootPath = EXT:mysitepackage/Resources/Private/Extensions/Clubmanager/Partials/
layoutRootPath = EXT:mysitepackage/Resources/Private/Extensions/Clubmanager/Layouts/
}
mailView {
templateRootPath = EXT:mysitepackage/Resources/Private/Extensions/Clubmanager/Templates/Email
partialRootPath = EXT:mysitepackage/Resources/Private/Extensions/Clubmanager/Partials/Email
layoutRootPath = EXT:mysitepackage/Resources/Private/Extensions/Clubmanager/Layouts/Email
}
}
Add these lines to the file
EXT: in your
sitepackage.
Of course all ViewHelpers provided by TYPO3 can be used.
Tip
For use with ext:bootstrap_package ^16.0 use Site Set settings instead of the old bootstrap constants file. See:
EXT:clubmanager/Configuration/Sets/Clubmanager/settings.yaml