Render.contentArea ViewHelper <f:render.contentArea>
ViewHelper to render a content area as provided by the page-content processor. The most common use case is to render all content elements within a column from a backend layout.
page = PAGE
page.10 = PAGEVIEW
page.10.paths.10 = EXT:my_site_package/Resources/Private/Templates/
Copied!
<f:render.contentArea contentArea="{content.main}" />
Copied!
or:
{content.main -> f:render.contentArea()}
Copied!
or with markup before and after rendered record by using the "recordAs" argument in combination with the <f:render.record> ViewHelper <https://docs.typo3.org/permalink/t3viewhelper:typo3-fluid-render-record>_:
<f:render.contentArea contentArea="{content.main}" recordAs="record">
before {record.fullType}
<f:render.record record="{record}" />
after {record.fullType}
</f:render.contentArea>
Copied!
Go to the source code of this ViewHelper: Render\ContentAreaViewHelper.php (GitHub).
Arguments
The following arguments are available for the render.contentArea ViewHelper:
contentArea
-
- Type
- TYPO3\CMS\Core\Page\ContentArea
A content area from the page-content processor
recordAs
-
- Type
- string
Name of the variable to store the current record in, if you want to use it in the before/after content.