[TYPO3-mvc] How to use layouts and sections

Dmitri Pisarev dimaip at gmail.com
Thu Jun 10 20:15:51 CEST 2010


On 10.06.2010 19:11, Henjo Hoeksma wrote:
> On 2010-06-10 17:02:02 +0200, Dmitri Pisarev said:
>
>> Hi Henjo!
>> On 10.06.2010 18:07, Henjo Hoeksma wrote:
>>> Hi list,
>>>
>>> I am wondering how I can use layouts and sections... I understand how to
>>> use different viewHelpers etc.
>>> I can extract from the code in Fluid that default the layout 'default'
>>> is used.
>>>
>>> How can I specify other layouts? How to call them?
>> Sorry for being boring, but a good old docs link is never a bad idea
>> http://flow3.typo3.org/documentation/manuals/fluid/fluid.usermanual/#fluid.usermanual.layouts
>>
>
> If
>>
>>> I understand correctly, the layout determines what section to render.
>>>
>>> My default layout is inserted around my plugin. But how can - for
>>> example - use 2 different layouts for the same plugin (if possible)
>> That's a good question. I don't know either.
>>> how to specify the layout which a plugin should use?
>> <f:layout name="example.html" />
>>>
>>> I am kinda lost here, so I appreciate your help ;-)
>> Sorry, I'm a newbie at extbase, so let's way for the others to jump in.
>>>
>>> Thanks in advance!
>>>
>>> Henjo
>>>
>>> PS I do think ExtBase and Fluid rock!
>> Do doubt;) I'm getting more and more convince with it.
>>
>> Cheers,
>> Dmitri.
>
> Hi Dmitri,
>
> thanks, so far I had come myself... concluding I must have not asked my
> questions clear enough :-)
>
> Anyways: Rens gave me a hint....
>
> $this->view->setLayoutPathAndFilename(t3lib_extMgm::extPath('extensionKey')
> . 'Resources/Private/Layouts/alternate.html');
Thanks for sharing. Sorry for me always answering obvious things 
everybody knows... Anyways, this way I learn more myself then help 
others. Write if you find out more!



More information about the TYPO3-project-typo3v4mvc mailing list