Overriding Templates

EXT:partner_rating is using Fluid as template engine.

This documentation won't bring you all information about Fluid but only the most important things you need for using it. You can get more information in the section Fluid templates of the Sitepackage tutorial. A complete reference of Fluid ViewHelpers provided by TYPO3 can be found in the ViewHelper Reference

Change the templates using TypoScript constants

As any Extbase based extension, you can find the templates in the directory Resources/Private/.

By default, the following Fluid template files of this directory are used:

Page tree of directory EXT:partner_rating/Resources/Private/
.
├── Layouts
│   └── Default.html
├── Partials
│   ├── FormPartner.html
│   ├── FormRating
│   │   ├── Action.html
│   │   ├── Partner.html
│   │   ├── Rating.html
│   │   └── Reason.html
│   └── SaveRating.html
└── Templates
    └── Rating
        ├── List.html
        └── Show.html

If you want to change a template, copy the desired files to the directory where you store the templates.

We suggest that you use a sitepackage extension. Learn how to Create a sitepackage extension.

Tip

Make sure that you only copy the files for which you want to make changes. This has the advantage that the remaining files will be automatically updated with future extension updates. This way you only have to worry about updating the files you have copied.

In the constant editor under WebTemplateConstant Editor you can define your own fluid paths in addition to the default paths.

Constant Editor: Fluid Template Paths

Constant Editor: Fluid Template Paths

Alternatively you can define the following TypoScript constants directly:

plugin.tx_partnerrating_pi1 {
    view {
        templateRootPath = EXT:your_extension/Resources/Private/Templates/
        partialRootPath = EXT:your_extension/Resources/Private/Partials/
        layoutRootPath = EXT:your_extension/Resources/Private/Layouts/
    }
}