Skip to content

Instantly share code, notes, and snippets.

View joekolade's full-sized avatar

Joe Kolade joekolade

View GitHub Profile
@joekolade
joekolade / AbtractPage.fusion
Last active March 3, 2023 11:04 — forked from abteilung/Favicons.fusion
[Favicons in Neos CMS] Render Favicons with Neos CMS #neos #fusion
prototype(Joekolade.SbfwSite:Document.AbstractPage) < prototype(Neos.Neos:Page) {
head {
favicons = Joekolade.SbfwSite:Component.Favicon
headTags = Neos.Fusion:Component {
renderer = afx`
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
`
}
@joekolade
joekolade / ModelController.php
Last active March 3, 2023 11:09 — forked from oliverthiele/ModelController.php
[Extbase Error Handling] ErrorAction handling Errors in Extbase Actions #typo3
/**
* A special action which is called if the originally intended action could
* not be called, for example if the arguments were not valid.
*
* The default implementation sets a flash message, request errors and forwards back
* to the originating action. This is suitable for most actions dealing with form input.
*
* We clear the page cache by default on an error as well, as we need to make sure the
* data is re-evaluated when the user changes something.
*