ContentAreaViewHelper extends AbstractViewHelper

ViewHelper

This class is the implementation of a Fluid ViewHelper.

View this class in the TYPO3 ViewHelper reference: <f:render.contentarea>

FinalYes

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/
  <f:render.contentArea contentArea="{content.main}" />

or:

  {content.main -> f:render.contentArea()}

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>
Tags
see
https://docs.typo3.org/permalink/t3viewhelper:typo3-fluid-render-contentarea

Table of Contents

Properties

$escapeOutput  : bool

Methods

__construct()  : mixed
initializeArguments()  : void
render()  : string

Properties

$escapeOutput

protected bool $escapeOutput = false

use content as-is

Methods

__construct()

public __construct(EventDispatcherInterface $eventDispatcher) : mixed
Parameters
$eventDispatcher : EventDispatcherInterface

initializeArguments()

public initializeArguments() : void

render()

public render() : string
Return values
string

        
On this page

Search results