Attention
TYPO3 v11 has reached end-of-life as of October 31th 2024 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v11 here: TYPO3 ELTS.
Debug.render ViewHelper <f:debug.render>
Debuggable version of f:render - performs the same rendering operation but wraps the output with HTML that can be inspected with the admin panel in frontend.
Replaces f:render
when the admin panel decides (see
View
class). Also possible to use explicitly by using
f:debug.render
instead of the normal f:render
statement.
Source code
Go to the source code of this ViewHelper: RenderViewHelper.php (GitHub).
Arguments
The following arguments are available for <f:
:
debug
-
- Type
- boolean
- Default
true
If true, the admin panel shows debug information if activated,
section
-
- Type
- string
Section to render - combine with partial to render section in partial
partial
-
- Type
- string
Partial to render, with or without section
arguments
-
- Type
- mixed
- Default
array
()
Array of variables to be transferred. Use {_all} for all variables
optional
-
- Type
- boolean
If TRUE, considers the section optional. Partial never is.
default
-
- Type
- mixed
Value (usually string) to be displayed if the section or partial does not exist
contentAs
-
- Type
- string
If used, renders the child content and adds it as a template variable with this name for use in the partial/section