Skip to content

Instantly share code, notes, and snippets.

@lorenzulrich
lorenzulrich / realurl_conf.php
Created October 25, 2013 00:43
RealURL configuration for multi-language and multi-domain setups
<?php
/* http://www.typo3.net/artikel/typo3-howto-domain-basierte-sprachumschaltung-mit-realurl/ */
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array (
'www.mysite.ch' => array(
'init' => array(
'enableCHashCache' => 1,
'appendMissingSlash' => 'ifNotFile',
'enableUrlDecodeCache' => 1,
'enableUrlEncodeCache' => 1,
),
@lorenzulrich
lorenzulrich / .htaccess
Created December 3, 2013 21:52
TYPO3 Flow .htaccess
#
# TYPO3 Flow context setting
#
# You can specify a default context by activating this option:
# SetEnv FLOW_CONTEXT Production
# If the root path is not the parent of the Web directory,
# TYPO3 Flow's root path must be specified manually:
# SetEnv FLOW_ROOTPATH /var/www/myapp/
<?php
namespace Visol\Userunilupublications\Hooks;
use Visol\Userunilupublications\Service\AccessControlService;
/***************************************************************
* Copyright notice
* (c) 2014 Lorenz Ulrich <[email protected]>
* All rights reserved
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
lib.menu.language = HMENU
lib.menu.language {
special = language
special.value = 0,1
1 = TMENU
1 {
# Remove the (old) default behaviour which adds onfocus="blurLink(this);" to all links
noBlur = 1
NO = 1
@lorenzulrich
lorenzulrich / gist:6cc62fa75f4efaf0728c
Created March 26, 2015 11:35
TYPO3 Composer Project File
{
"repositories": [
{
"type": "composer",
"url": "http://composer.typo3.org/"
},
{
"type": "git",
"url": "https://github.com/visol/easyvote.git"
},
@lorenzulrich
lorenzulrich / AdditionalConfiguration.php
Created March 31, 2015 18:37
Multi-language page not found handling for TYPO3 CMS
$GLOBALS['TYPO3_CONF_VARS']['FE']['pageNotFound_handling_redirectPageID'] = 4690;
<?php
namespace My\Site\Userfunc;
/**
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
@lorenzulrich
lorenzulrich / config.ts
Last active August 12, 2017 07:39
TYPO3: One domain per language with RealURL
[globalVar = GP:L=1]
config {
sys_language_uid = 1
language = en
locale_all = en_CH.utf8
htmlTag_langKey = en
baseURL = http://default.domain.tld/
}
[global]
@lorenzulrich
lorenzulrich / realurl_conf.php
Last active January 28, 2019 14:44
TYPO3 RealURL: Two sites in an installation, both with one domain per language
<?php
$realUrlSiteConfigurations = [
'site1' => [
'rootPageUid' => 1,
'schema' => 'https',
'languageDomainMap' => [
0 => 'www.site1.ch',
1 => 'www.site1.fr',
2 => 'www.site1.it',
]
@lorenzulrich
lorenzulrich / setup.ts
Created February 8, 2016 18:58
TYPO3 CMS: Page UID and rootline in body tag
page {
bodyTagCObject = COA
bodyTagCObject {
wrap = <body|>
20 = TEXT
20.value.field = uid
20.stdWrap.noTrimWrap = | data-uid="|"|
30 = HMENU