Changing paths of the template for frontend plugins

Please do never change templates directly in the Ressources folder of the extensions, since your changes will get overwritten by extension updates.

The easiest way to override templates is to set the following constants:

  • plugin.tx_sfeventmgt.view.templateRootPath
  • plugin.tx_sfeventmgt.view.partialRootPath
  • plugin.tx_sfeventmgt.view.layoutRootPath

Those values will automatically be added after the default paths configuration of the extension. If you prefer to configure the path-values using TypoScript setup, please refer to the example below (note the plural of the path-name):

plugin.tx_sfeventmgt {
  view {
    templateRootPaths {
      2 = EXT:sitepackage/Resources/Private/Extensions/SfEventMgt/Templates/
    }
    partialRootPaths {
      2 = EXT:sitepackage/Resources/Private/Extensions/SfEventMgt/Partials/
    }
    layoutRootPaths {
      2 = EXT:sitepackage/Resources/Private/Extensions/SfEventMgt/Layouts/
    }
  }
}
Copied!

Doing so, you can just override single files from the original templates.

Changing paths of the template for backend module

Since TYPO3 12.4 the override functionality for backend templates has been reworked. Instead of invoking TypoScript to retrieve template paths, it is now required to use TSConfig:

templates.derhansen/sf_event_mgt.20 = derhansen/sf_event_mgt_extend_demo:Resources/Private
Copied!

Details see changelog entry