[TYPO3-core] RFC: #11374: Feature: Add Linebreak in Palette of TCEFORMS

Christian Kuhn lolli at schwarzbu.ch
Sun Aug 2 19:21:13 CEST 2009


Hey Steffen,

Steffen Kamper wrote:
> Type: Feature
> 
> BT Reference: http://bugs.typo3.org/view.php?id=11374
> 
> Branches: trunk
> 
> Problem:
> There is no possibility to add a linebreak in palette fields.
> 
> Solution:
> As palette is used for grouping fields, i added an option in palette to
> allow a linebreak.
> 
> This is done with following syntax:
> $TCA[tablename]['palettes'] = array(
>         '1' => array('showitem' => field1, field2, --linebreak--, field3'),
> );

There is a problem with two linebreaks following each other.

Example for tt_content (typo3/sysext/cms/tbl_tt_content.php line 1105):

'4' => Array('showitem' => 'sys_language_uid, --linebreak--,
l18n_parent, --linebreak--, colPos, spaceBefore, spaceAfter,
section_frame, sectionIndex'),

This throws an error for elements in default language (l18n_parent isn't
shown here):
Warning: implode() [function.implode]: Invalid arguments passed in
/var/www/TYPO3v4/Core/trunk/t3lib/class.t3lib_tceforms.php on line 4851

BTW: Documentation is missing.

Regards
Christian


More information about the TYPO3-team-core mailing list