[TYPO3-mvc] Partial template from other extensions

Bastian Waidelich bastian at typo3.org
Tue Apr 26 09:28:35 CEST 2011


arno dudek wrote:

Hi Arno,

> Is there a posibility to parse partials of an other extension or must I
> load and parse a "normal" template from the other extension?

You can't specify another extension in the render view helper. Instead 
you could override the partial root path and set it to the same directory:

plugin.tx_myextension1 {
   view {
     templateRootPath = fileadmin/templates/ext/ext1/Templates/
     layoutRootPath = fileadmin/templates/ext/ext1/Layouts/
     partialRootPath = fileadmin/templates/ext/_shared/Partials/
   }
}

plugin.tx_myextension2 {
   view {
     templateRootPath = fileadmin/templates/ext/ext2/Templates/
     layoutRootPath = fileadmin/templates/ext/ext2/Layouts/
     partialRootPath = fileadmin/templates/ext/_shared/Partials/
   }
}

HTH
Bastian


More information about the TYPO3-project-typo3v4mvc mailing list