:navigation-title: render.contentArea .. include:: /Includes.rst.txt .. _typo3-fluid-render-contentarea: ====================================================== Render.contentArea ViewHelper `` ====================================================== .. versionadded:: 14.2 Instead of using the :html:`` and :html:`` ViewHelpers to render content areas, use the new :html:`` ViewHelper. This ViewHelper can be used to render a content area provided by the `page-content data processor `_. It is commonly used with the `PAGEVIEW `_ TypoScript content object. Theme creators are encouraged to use the :html:`` ViewHelper to allow other extensions to modify the output via event listeners. .. typo3:viewhelper:: render.contentArea :source: /Global.json :display: tags,gitHubLink :noindex: .. contents:: Table of contents .. _typo3-fluid-render-contentarea-example: Rendering all content elements within a backend layout column ============================================================= The most common use case for the `` is to render all content elements within a column from a backend layout. .. tabs:: .. group-tab:: Fluid .. code-block:: html :caption: packages/my_sitepackage/Resources/Private/Templates/Page/Default.html Or using inline syntax: .. code-block:: html :caption: packages/my_sitepackage/Resources/Private/Templates/Page/Default.html {content.main -> f:render.contentArea()} .. group-tab:: TypoScript .. code-block:: typoscript :caption: packages/my_sitepackage/Configuration/Sets/main/setup.typoscript page = PAGE page { 10 = PAGEVIEW 10 { paths.10 = EXT:my_sitepackage/Resources/Private/Templates/ dataProcessing.10 = page-content } } For an example of how to configure the backend layout in page TSconfig and further data processor options, see `Example: Use the page-content data processor to display the content `_. .. _typo3-fluid-render-contentarea-example-recordas: Using the "recordAs" argument to wrap each content element ========================================================== Using the :ref:`recordAs ` argument, `` can be combined with the `Render.record ViewHelper `_ to wrap each content element: .. code-block:: html :caption: packages/my_sitepackage/Resources/Private/Templates/Page/Default.html .. _typo3-fluid-render-contentarea-event: Intercepting the rendering of content areas via an event ======================================================== Developers can intercept the rendering of content areas in Fluid templates using :php:`\TYPO3\CMS\Fluid\Event\ModifyRenderedContentAreaEvent` to modify output. .. _typo3-fluid-render-contentarea-arguments: Arguments of the `` ViewHelper ==================================================== .. typo3:viewhelper:: render.contentArea :source: /Global.json :display: arguments-only