Skip to content

Instantly share code, notes, and snippets.

View frans-beech-it's full-sized avatar

Frans Saris frans-beech-it

View GitHub Profile
@frans-beech-it
frans-beech-it / gist:24bf64f3f43c44ff3f6a
Created July 11, 2014 07:13
Add dynamic TCA field eval configuration
ext_localconf.php
--------------------
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tceforms.php']['getSingleFieldClass'][$_EXTKEY] =
'EXT:' . $_EXTKEY . '/Classes/Hooks/Tceforms.php:Tx_Calendar_Hooks_Tceforms';
Classes/Hooks/Tceforms.php
--------------------
class Tx_Calendar_Hooks_Tceforms
{
<?php
/***************************************************************
* Copyright notice
*
* (c) 2015 Hans Höchtl <[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
* it under the terms of the GNU General Public License as published by