Denis Milosavljevic
Denis Milosavljevic

Reputation: 405

TYPO3 - How to customize extension properly

I took one Project which is based on TYPO3 6.2.0

I needed to customize some extensions (templates) and I made this changes directly in the original template files.

I am just wondering what is standard and proper (update safe) way for customizing TYPO3 extensions?

Thanks in advance!

Upvotes: 0

Views: 172

Answers (1)

Jacco van der Post
Jacco van der Post

Reputation: 618

You can look in the typoscript template of the extension (often setup.ts or setup.txt).

In newer extensions you will find something like

    plugin.tx_bla {
       view {
          templateRootPaths.0 = EXT:bla/Resources/Private/Templates/
          templateRootPaths.1 = {$plugin.tx_bla.view.templateRootPath}
          partialRootPaths.0 = EXT:bla/Resources/Private/Partials/
          partialRootPaths.1 = {$plugin.tx_bla.view.partialRootPath}
          layoutRootPaths.0 = EXT:bla/Resources/Private/Layouts/
          layoutRootPaths.1 = {$plugin.tx_bla.view.layoutRootPath}

Then copy the templatefiles to your config extension or the fileadmin and adjust the path either in the constants (for the .1) or directly in the setup. After that clear system cache.

In older extension this might look likewise:

    plugin.tx_bla {
       view {
          templateRootPath = 
          partialRootPath =
          layoutRootPath = 

Upvotes: 2

Related Questions