Skip to content

Instantly share code, notes, and snippets.

View christianhaendel's full-sized avatar

ChrHaendel christianhaendel

View GitHub Profile
@christianhaendel
christianhaendel / pageNotFoundHandling.php
Created June 11, 2016 15:12
Enable Realurl to select individual errorPage
<?php
class user_pageNotFound {
function pageNotFound($params,$tsfeObj) {
global $TYPO3_CONF_VARS;
$url = \TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('TYPO3_SITE_URL').'index.php?id='.$TYPO3_CONF_VARS['EXTCONF']['realurl'][\TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('HTTP_HOST')]['errorPage'];
$_buffer = $this->loadPage($url);
echo $_buffer;
tt_content.image.20.1.layout.default.element.override.cObject = CASE
tt_content.image.20.1.layout.default.element.override.cObject {
key.data = file:current:extension
svg = TEXT
svg {
value = <img src="{file:current:publicUrl}" width="{field:imagewidth}" height="{field:imageheight}"###PARAMS######ALTPARAMS######BORDER######SELFCLOSINGTAGSLASH###>
insertData = 1
}
}
@christianhaendel
christianhaendel / fluid.html
Last active August 29, 2015 14:13
Setup Prev Next Link in TYPO3 ext:news languageBased with Typoscript
<!-- Example Fluid Part -->
<f:cObject typoscriptObjectPath="lib.prevLink" data="{newsItem.categories.0.uid}"/>
<h2>{newsItem.title}</h2>
<f:cObject typoscriptObjectPath="lib.nextLink" data="{newsItem.categories.0.uid}"/>
@christianhaendel
christianhaendel / 0_reuse_code.js
Last active August 29, 2015 14:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console