DEPRECATION WARNING

This documentation is not using the current rendering mechanism and will be deleted by December 31st, 2020. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

Overriding the FLUID templates

At TypoScript we have described the way content elements are rendered.

By default these settings are done in the file setup.txt which can be found in the folder EXT:fluid_styled_content/Configuration/TypoScript/Static/.

Using lib.fluidContent

This option gives you the possibility to add another templateRootPath and can be defined the same as partialRootPaths and layoutRootPaths:

lib.fluidContent {
   templateRootPaths {
      200 = EXT:your_extension_key/Resources/Private/Templates/
   }
   partialRootPaths {
      200 = EXT:your_extension_key/Resources/Private/Partials/
   }
   layoutRootPaths {
      200 = EXT:your_extension_key/Resources/Private/Layouts/
   }
}

A content element is using a templateName, which is defined in setup.txt. You can override this value, but the template from the extension "fluid_styled_content" will not be loaded then, since its name is still the default value.

tt_content {
   bullets {
      templateName = ChangedName.html
   }
}