Skip to content

Instantly share code, notes, and snippets.

<?php
namespace Visol\Userunilupublications\Hooks;
use Visol\Userunilupublications\Service\AccessControlService;
/***************************************************************
* Copyright notice
* (c) 2014 Lorenz Ulrich <lorenz.ulrich@visol.ch>
* 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 / 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/
@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
<f:flashMessages severity="OK" as="flashMessagesOK">
<ul class="alert alert-success list-unstyled">
<f:for each="{flashMessagesOK}" as="flashMessage">
<li>{flashMessage}</li>
</f:for>
</ul>
</f:flashMessages>
<f:flashMessages severity="Notice" as="flashMessagesNotice">
<ul class="alert alert-info list-unstyled">
<f:for each="{flashMessagesNotice}" as="flashMessage">
@lorenzulrich
lorenzulrich / ResourceBuiltVersionViewHelper.php
Created April 5, 2016 17:49
ViewHelper used to return a version number of a resource based on the MD5 hash of a file.
<?php
namespace Acme\Demo\ViewHelpers;
/**
* ResourceBuiltVersion
*
* ViewHelper used to return a version number of a resource based on the MD5 hash of a file.
*
* Useful to prevent caching issues with static resources.
*