Skip to content

Instantly share code, notes, and snippets.

@overcome
overcome / newstitle.ts
Created May 23, 2017 12:04
Newstitel als Seitentitel von tx_news
#default
page.headerData.5 = TEXT
page.headerData.5.field = subtitle
page.headerData.5.ifEmpty.field = title
page.headerData.5.wrap =| - {$pageTitle}
# auf der News Detailseite wird der Newstitel als Browsertitel ausgegeben
# id ändern!!
#[globalVar = TSFE:id=999999]
[PIDinRootline = 1,2,3]
@overcome
overcome / contao3.conf
Created May 19, 2017 10:13 — forked from RavuAlHemio/contao3.conf
Contao 3 and 4 nginx.conf
index index.php index.html;
location ~ ^/(favicon\.ico|robots\.txt)$ {
allow all;
log_not_found off;
access_log off;
}
# don't show templates
location ~* \.(tpl|html5|xhtml)$ {
@overcome
overcome / LocalConfiguration.php
Created April 17, 2017 13:31 — forked from oliverthiele/LocalConfiguration.php
Redis Configuration in TYPO3
<?php
return array(
// ...
'SYS' => array(
'caching' => array(
'cacheConfigurations' => array(
'cf_cache_hash' => array(
'backend' => 'TYPO3\\CMS\\Core\\Cache\\Backend\\RedisBackend',
'options' => array(
'database' => 10,
@overcome
overcome / realurl_conf.php
Created April 17, 2017 11:21 — forked from oliverthiele/realurl_conf.php
TYPO3 RealURL-Konfiguration Example
<?php
// Not needed in current RealURL versions: $TYPO3_CONF_VARS['FE']['addRootLineFields'] .= ',tx_realurl_pathsegment';
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = array(
'_DEFAULT' => array(
'init' => array(
'enableCHashCache' => true,
'appendMissingSlash' => 'ifNotFile,redirect[301]',
'enableUrlDecodeCache' => true,
'enableUrlEncodeCache' => true,
'adminJumpToBackend' => true,
@overcome
overcome / IndexUserFunc.php
Created April 12, 2017 10:29 — forked from htuscher/IndexUserFunc.php
TYPO3 Solr userFunc IndexQueue
<?php
namespace Vendor\Extension\Solr\UserFunc;
class IndexUserFunc
{
/**
* This value is automatically inserted by userFunc handling
* @var \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer
*/
@overcome
overcome / gist:8b56a9196a5633e89716deec1db1b8d7
Created March 24, 2017 03:12
[typo3][composer][config] Config token in composer.json
You can solve it by creating a new github token to authenticate your composer requests.
You can do this two ways:
By defining your token globally:
composer config --global github-oauth.github.com <TOKEN>
Or by defining your token in a project composer.json:
{
"config": {
@overcome
overcome / flexform.xml
Created March 23, 2017 06:21 — forked from alrnz/flexform.xml
TypoLink in flexform for TYPO3 7.6
<settings.link>
<TCEforms>
<exclude>1</exclude>
<label>
Link to Page or a File or a Content-Element
</label>
<config>
<type>input</type>
<size>30</size>
<eval>trim</eval>
@overcome
overcome / gulpfile.js
Created March 11, 2017 09:53 — forked from torgeir/gulpfile.js
Example gulpfile.js
// Load plugins
var gulp = require('gulp'),
sass = require('gulp-ruby-sass'),
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('gulp-minify-css'),
jshint = require('gulp-jshint'),
uglify = require('gulp-uglify'),
imagemin = require('gulp-imagemin'),
rename = require('gulp-rename'),
clean = require('gulp-clean'),
@overcome
overcome / UsingAjaxUrl.html
Created March 7, 2017 05:59 — forked from helhum/UsingAjaxUrl.html
Using TS rendering
{namespace t=Helhum\TyposcriptRendering\ViewHelpers}
<button class="ajax-button" data-ajaxUri="{t:uri.ajaxAction(action: 'foo', controller: 'bar') -> f:format.htmlentities()}">
Click Me
</button>
<script type="text/javascript">
jQuery.ajax(
jQuery(".ajax-button").data("ajaxUri")
).done(
@overcome
overcome / gist:2e8f86ec2d4a609b1d6b363eee03fb72
Created March 1, 2017 19:07 — forked from maddy2101/gist:5668835
TCA, Model and Fluid Partial to display FAL images as a simple gallery using TYPO3 and Extbase 6.1
SQL:
images int(11) unsigned DEFAULT '0',
=======================================================
TCA
....
'images' => array(
'exclude' => 0,
'label' => 'images',
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
'images',