[TYPO3-mvc] Render Section outside of layouts

Stefan Frömken firma at sfroemken.de
Thu Apr 5 16:11:27 CEST 2012


Am 05.04.2012 15:42, schrieb Bastian Waidelich:
> Stefan Frömken wrote:
>
> Hi Stefan,
>
>> I want to use a section outside of a Layout-Template. There is a hint in
>> the renderViewHelper PHPDoc:
>
>> How I have to call such a file based section?
>> <f:render section="status.html" /> ?!?!
>
> Sections must be in the same template file:
>
> <f:section name="foo">This won't be rendered automatically</f:section>
>
> <f:render section="foo" />
>
> If you want to render snippets from *other* files you can use
>
> <f:render partial="SomePartial" />
>
> HTH
>

Thanks. That works and it is nearly 3-4ms faster than accessing a partial.

Stefan


More information about the TYPO3-project-typo3v4mvc mailing list