[TYPO3-mvc] different layout tempaltes for same action/controller
Stefano Cecere
scecere at krur.com
Fri Feb 11 16:04:56 CET 2011
hi!
i have a list which i want to render in 3 different tempaltes (normal,
mini and maxi)
i could manage making 3 sections in the List.html , and choosing the
"layout" by:
$this->view->setLayoutPathAndFilename(t3lib_extMgm::extPath('myext') .
'Resources/Private/Layouts/mini.html');
or
$this->view->setLayoutPathAndFilename(t3lib_extMgm::extPath('myext') .
'Resources/Private/Layouts/maxi.html');
is this the best way?
since this "context" is specifig just for the list main controller, and
Layout folder seems global...
couldn't i pass to the view the section i want it to use?
something like: $this->view->useSection('mini'); ?
thanks
PS: when there'll be an english manual i guess i'll stop making stupid
questions .9
--
____ ___ __ _ ______________________
Stefano Cecere
KRUR.com
More information about the TYPO3-project-typo3v4mvc
mailing list