[TYPO3-mvc] more than one template for one action?

Steffen Kamper info at sk-typo3.de
Wed Jul 22 14:45:29 CEST 2009


Hi Joerg,

Joerg Schoppet schrieb:
> Hi,
> 
> Steffen Kamper schrieb:
>> Hi,
>>
>> i try to find a concept with JS and my wish would be to have 2 templates.
>>
>> One template for header data (javascript) and one for the body (normal 
>> output). Having a header template would make it much easier to write 
>> dynamic JS, it's not nice to do this in php.
>> The header template should be catched after render to use it in 
>> pageHeader, the other template should be printed as usual.
>>
> this is only a thought, no idea if really working.
> 
> Perhaps there can be something done with the "redirect" feature of the 
> controller?
> 

no idea, as this is needed "parallel", so the JS-template is needed for 
eg actions "index, edit" but not for other pagetypes like "users", and 
the normal templates are action.html

vg Steffen


More information about the TYPO3-project-typo3v4mvc mailing list