Skip to content

Instantly share code, notes, and snippets.

View joekolade's full-sized avatar

Joe Kolade joekolade

View GitHub Profile
@joekolade
joekolade / constants.ts
Created July 9, 2015 15:07
TYPO3 Responsive Imagehandling
styles.content.imgtext.captionSplit = 1
@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.
*
@joekolade
joekolade / gist:6fbf847ed4b634868385
Last active March 3, 2023 11:06
[Install clean npm on mac] #mac #shell
ls -1 /usr/local/node_modules > ~/node_modules.txt
rm -rf /usr/local/lib/node_modules
brew uninstall node
brew install node --without-npm
echo prefix=~/.node >> ~/.npmrc
curl -L https://www.npmjs.org/install.sh | sh
export PATH="$HOME/.node/bin:$PATH"
for i in cat ~/node_modules.txt;do npm install -g $i;done
@joekolade
joekolade / bootstrap_extbase_plugin_TSsetup.ts
Last active March 3, 2023 11:05
[Run Extbase Plugin] Typoscript: Bootstrap Extbase Plugin #typo3 #typoscript
temp.include = USER
temp.include {
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
vendorName = Events
pluginName = Eventlist
extensionName = Events
settings =< plugin.tx_events.settings
persistence =< plugin.tx_events.persistence
view =< plugin.tx_events.view