[TYPO3-mvc] Manually set the template path in the controller

Bastian Waidelich bastian at typo3.org
Tue May 24 15:15:20 CEST 2011


Peter Niederlag wrote:

Hi all,

> I use a View/VariantView for this purpose:
> https://gist.github.com/822613

That's a very neat idea. would be something that could be considered to 
be included in the core.
I created a slightly modified version that works with Fluid 1.3+ and 
added it to the wiki:
http://forge.typo3.org/projects/typo3v4-mvc/wiki/How_to_change_the_template_for_one_plugin_instance

In contrast to your version it takes the layout from
plugin.tx_yourextension.view.layoutVariant which can also be overridden 
in the plugin flexform.

Best,
Bastian


More information about the TYPO3-project-typo3v4mvc mailing list