Fluid-based error handler¶
The fluid-based error handler is defined in EXT:core/Classes/Error/PageErrorHandler/FluidPageErrorHandler.php.
Properties¶
The fluid-based error handler has the properties errorCode and errorHandler and the following:
errorFluidTemplate¶
- Datatype
string
- Description
Path to fluid template file. Path may be
absolute
relative to site root
starting with
EXT:
for files from an extension
- Example
EXT:sitepackage/Resources/Private/Templates/Error.html
errorFluidTemplatesRootPath¶
- Datatype
string [optional]
- Description
Paths to Fluid Templates, Partials and Layouts in case more flexibility is needed.
- Example
EXT:sitepackage/Resources/Private/Templates/
errorFluidPartialsRootPath¶
- Datatype
string [optional]
- Description
Paths to Fluid Templates, Partials and Layouts in case more flexibility is needed.
- Example
EXT:sitepackage/Resources/Private/Partials/
errorFluidLayoutsRootPath¶
- Datatype
string [optional]
- Description
Paths to Fluid Templates, Partials and Layouts in case more flexibility is needed.
- Example
EXT:sitepackage/Resources/Private/Layouts/
Examples¶
Shows the content of a Fluid template on error with HTTP status 404.
errorHandling:
-
errorCode: 404
errorHandler: Fluid
errorFluidTemplate: 'EXT:my_sitepackage/Resources/Private/Templates/Sites/Error.html'
errorFluidTemplatesRootPath: ''
errorFluidLayoutsRootPath: ''
errorFluidPartialsRootPath: 'EXT:my_sitepackage/Resources/Private/Partials/Sites/'