[TYPO3-dev] Subtitle

Björn Pedersen pedersen at frm2.tum.de
Mon Aug 29 18:32:36 CEST 2011


Am 29.08.2011 18:30, schrieb Peter Klein:
> Hi Robert.
> 
> It looks like t3lib_extMgm::addToAllTCAtypes() is broken in TYPO3
> v4.5+, as it works as it's supposed to in previous versions of TYPO3.
> 
> You could use a "dirty" approch and use regex to insert the extra
> field, until the bug is fixed.
> 
> -- cut --
> t3lib_div::loadTCA("tt_content");
> if (!preg_match('/subheader;;8,/',
> $TCA['tt_content']['types']['text']['showitem'])) {
> 	$TCA['tt_content']['types']['text']['showitem'] =
> preg_replace('/;header,/', '$0subheader;;8,',
> $TCA['tt_content']['types']['text']['showitem']);
> }
> -- cut --

This won't work, as the TCA changed to use palettes for all fields now.

Björn





More information about the TYPO3-dev mailing list