sitegeist / movealong
Render 4xx status pages via fusion
Installs: 30 501
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 5
Forks: 5
Open Issues: 1
Type:neos-package
Requires
- neos/neos: ^3.3 || ^4.0 || dev-master
This package is auto-updated.
Last update: 2021-02-19 14:05:38 UTC
README
Sitegeist.MoveAlong
Render 4xx status pages via fusion
Configuration
The status codes that are handled via fusion error-rendering can be controlled via settings.
Neos: Flow: error: exceptionHandler: renderingGroups: notFoundExceptions: matchingStatusCodes: [ 403, 404, 410 ]
The fusion code that actually renders the error-message.
#
# Main error matcher
#
error = Neos.Fusion:Case {
#
# Find the document to render in case of 404
#
@context.notFoundDocument = ${q(site).children('[instanceof Neos.Neos:Document]').filter('[uriPathSegment="404"]').get(0)}
#
# Custom matcher for 404 status
#
4xx {
@position = 'start'
condition = ${statusCode >= 400 && statusCode < 500 && notFoundDocument}
renderer = Neos.Fusion:Renderer {
@context.node = ${notFoundDocument}
@context.documentNode = ${notFoundDocument}
renderPath = '/root'
}
}
#
# Default rendering of classic error-message
#
default {
@position = 'end 9999'
condition = true
renderer = Sitegeist.MoveAlong:ErrorMessage
}
}
Authors & Sponsors
- Wilhelm Behncke - behncke@sitegeist.de
- Martin Ficzel - ficzel@sitegeist.de
The development and the public-releases of this package is generously sponsored by our employer http://www.sitegeist.de.
Installation
Sitegeist.MoveAlong is available via packagist. Just run composer require sitegeist/movealong
. We use semantic-versioning so every breaking change will increase the major-version number.
License
see LICENSE file