[TYPO3-mvc] Render Section outside of layouts
Bastian Waidelich
bastian at typo3.org
Thu Apr 5 15:42:40 CEST 2012
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
--
Bastian
More information about the TYPO3-project-typo3v4mvc
mailing list