[TYPO3-mvc] Fluid: Render custom template in current context to be able to use layouts

Tobias Pinnekamp typo3 at tpinne.de
Tue Jul 20 17:42:36 CEST 2010


Hi,

Am 20.07.2010 16:43 Uhr, schrieb roberto blanko:
> // If certain template was specified, use it
> if ($this->settings['templateName']) {
>       return $this->view->render($this->settings['templateName']);
> }

I haven't tested it but try to use

if ($this->settings['templateName']) {
	$this->view->setTemplatePathAndFilename('path/to/templateFile');
}

and let the rest be done by extbase/fluid. Maybe it solves your problem. 
Because $this->view->render() expects an action name as argument.

Best regards
Tobias


More information about the TYPO3-project-typo3v4mvc mailing list