Skip to main content

ui:portalContainer

View as Markdown

Renders the elements used inside the ui:portal ViewHelper into the current position in the DOM.

The default name bucket is rendered automatically at the end of <body> (via TYPO3's PageRenderer), so this ViewHelper is no longer needed for it in a normal page render. It's still useful for two cases: placing portalled content somewhere other than the end of <body> (give ui:portal a matching custom name), or rendering outside TYPO3's regular page pipeline (e.g. an isolated component preview), where nothing else flushes the registry for you.

Example

Place a matching name wherever you want that portal's content to end up:

<ui:portal name="sidebar">...</ui:portal>
...
<ui:portalContainer name="sidebar" />

Arguments

Name Type Description Required Default
name string The name of the container No 'default'