Skip to content

Instantly share code, notes, and snippets.

@nerdpraxis
nerdpraxis / .gitignore
Last active March 29, 2019 09:55 — forked from wolffc/.gitignore
[gitignore] #typo3 #git
### this is the Global Git Ignore file
# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Icon?
# Define specific block style for the RTE editor in TYPO3 v6.1.7+
# Probably works in older v6 versions, but not tested
# Add the following to TS config on the root page of your site
# and add applicable CSS rules to e.g. fileadmin/templates/unia2014/Resources/Public/css/RTE.css
# to make the formatting work in the BE.
# (You will need to add the CSS to your FE CSS too.)
# m@mhm.li - 04/2014 - Free use, no credit required
RTE.classes{
@nerdpraxis
nerdpraxis / conf.ts
Last active June 12, 2018 06:34 — forked from kathangeorg/gist:2225375
Multi Domain Config TypoScript #ts #typoscript
//TypoScript
# Multi Domain Configuration
[globalString = ENV:HTTP_HOST=example1.de]
config.baseURL = http:// www.example1.de/
[global]
[globalString = ENV:HTTP_HOST=www.example2.de]
config.baseURL = http:// www.example2.de/
[global]
@nerdpraxis
nerdpraxis / ttnews-mit-realurl-conf
Last active June 12, 2018 06:34 — forked from devberg/ttnews-mit-realurl
[ttnews-realurl-conf] #realurl #typoscript #ts #ttnews
<?php
// =======================================================================
// 1 - ZU /ttenews/ext_localconfig.php DATEI HINZUFÜGEN
//
// 2 - BEI 'fixedPostVars' SOLLTE MAN DER SINGLEPAGE UID EINGEBEN
//
// 3 - TYPOSCRIPT EINSTELLUNGEN WENN MAN OHNE DATUM VERWNDEN WILL
// # ZU REAL URL
// plugin.tt_news.useHRDatesSingle = 1
# FLEXFORM / Snippet with ❤ by Typoheads
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3DataStructure>
<meta>
<langDisable>1</langDisable>
</meta>
<ROOT type="array">
<type>array</type>
<el type="array">
@nerdpraxis
nerdpraxis / page_tsconfig.txt
Created July 10, 2014 22:31 — forked from noelboss/page_tsconfig.txt
How to configure gridelements for Typo3 purely with TypoScript and TSconfig and thus living in files. Based on this article: http://www.networkteam.com/blog/post/gridelements-professionell-nutzen.html
# Page TSConfig:
tx_gridelements.setup {
# ID of Element
1 {
title = Two Columns
config {
colCount = 2
rowCount = 1
rows {
1 {
TSConfig:
##################
## IMAGE FX ##
##################
TCEFORM.tt_content.image_effects.addItems.30 = Runde Ecken
Typoscript:
## TYPO3 6.2.x
# Create a language-switching menu to other language versions of the current page
# If the page is not translated, the language label will be shown but not linked.
# ACT is the current language, not CUR.
# Add the following code to an existing typoscript base in TYPO3.
# This code alone is not sufficient to make a working website :)
# m@mhm.li - 04/2014 - Free use, no credit required
# Add the following to TS Constants:
@nerdpraxis
nerdpraxis / typo3_tricks_that_saved_my_live
Last active June 12, 2018 06:36 — forked from ut/typo3_tricks_that_saved_my_live
[Langsame Bilderstellung dank IM] #typo3 #imageMagic #ts #typoscript
# after typo3 4.2 > 4.5 update backend loads on some page very slow (or newer) -- after activating firebug i learned thumbs.php doesn't load.
# next step was imagemagick via install tool > image processing, same very slow. finally i found an older posting which recommends to
# disable im_useStripProfileByDefault at localconf.php
$TYPO3_CONF_VARS['GFX']['im_useStripProfileByDefault'] = '0';
# tt_news && cache, always a pain for editors
# enable cache reset for editors at user ts config
options.clearCache.pages=1 # allow be user to clear cache of a page
options.clearCache.all=1 # allow be user to clear fe cache
# TYPOSCRIPT / Snippet with ❤ by Typoheads
[dayofweek = 6,0] || [dayofweek = 1,2,3,4,5] && [hour = > 17, < 9]
# do whatever when it's NOT Mo-Fr and 09:00-18:00
[END]