Skip to content

Instantly share code, notes, and snippets.

@stafast
stafast / constants.ts
Created October 14, 2015 18:03
TYPO3 7.5 fluid_styled_content TypoScript
styles.templates.templateRootPath = fileadmin/Ext/fluid_styled_content/Resources/Private/Templates/Content/
styles.templates.partialRootPath = fileadmin/Ext/fluid_styled_content/Resources/Private/Partials/
styles.templates.layoutRootPath = fileadmin/Ext/fluid_styled_content/Resources/Private/Layouts/
@stafast
stafast / fluid.html
Last active November 23, 2017 19:03
TYPO3 Get Content Elements by UID in Fluid (Tags: fluid dce ce inhaltselment cObject f:oObject )
<f:cObject typoscriptObjectPath="lib.getContentElementsByUid">{myUID}</f:cObject>
@stafast
stafast / gist:24bec3068ccd98b9c7fa
Created October 23, 2015 13:30
TYPO3 rte defaultContentLanguage (Link Übersetzung)
RTE.default.defaultContentLanguage = de
@stafast
stafast / typoscript.ts
Created November 12, 2015 09:15
TypoScript GET-Parameter Redirect
# Parameter need to be ?send=1
[globalVar = GP:send != 1]
config >
config.additionalHeaders = Location: /index.php?id=1
[globalVar]
@stafast
stafast / setup.ts
Created January 21, 2016 12:19
TYPO3 Solr tx_news detailPid multiple detailpages (News on detailpage)
plugin.tx_solr.index.queue.news.fields.url.typolink {
parameter = {field:pid}
parameter.insertData = 1
}
@stafast
stafast / gmap.js
Created February 4, 2016 12:43
Responsive Google Map
google.maps.event.addDomListener(window, 'load', init);
var map;
function init() {
......
// Resizer
google.maps.event.addDomListener(window, 'resize', function() {
map.setCenter(mapOptions.center);
});
}
@stafast
stafast / MediaGallery.html
Created May 27, 2016 10:07
TYPO3 Fluid Styled Content Text Media Gallery Bootstrap Grid
<div class="ce-column
{f:if(condition:'{gallery.count.columns}<{data.imagecols}',then:'
col-sm-{f:cObject(typoscriptObjectPath:\'lib.math\',data:\'12/{data.imagecols}\')}
',else:'
col-sm-{f:cObject(typoscriptObjectPath:\'lib.math\',data:\'12/{gallery.count.columns}\')}
')}
">
@stafast
stafast / SliderRenderer.php
Created June 15, 2016 07:41
Preview Rrenderer for IRRE with FAL
<?php
namespace Slider\Slider\Hooks;
use TYPO3\CMS\Backend\Utility\BackendUtility;
use TYPO3\CMS\Backend\View\PageLayoutView;
use TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
use TYPO3\CMS\Core\Utility\GeneralUtility;
/**
* Contains a preview rendering for the page module of CType="slider"
@stafast
stafast / realurl_conf.php
Created June 22, 2016 16:57
TYPO3 realUrl Extension Extbase cHash controller action
<?php
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
'postVarSets' => array(
'_DEFAULT' => array(
'controller' => array(
array(
'GETvar' => 'tx_EXT_pi1[action]',
'noMatch' => 'bypass'
),
array(
@stafast
stafast / solr.ts
Last active July 27, 2016 07:49
Solr IndexQueue htpasswd htaccess directory protection
plugin.tx_solr.index.queue.pages.indexer.authorization {
username = username
password = password
}