[BUGFIX] Having tt_content:image in a palette breaks IRRE Layout
authorSteffen Ritter <info@rs-websystems.de>
Sat, 7 Jul 2012 22:32:23 +0000 (00:32 +0200)
committerSteffen Ritter <info@rs-websystems.de>
Sat, 7 Jul 2012 22:34:56 +0000 (00:34 +0200)
Palette fields are always inline, to sit in one line aside.
Therefore sizing is not possible. This has ugly effects on
IRRE wildly resizing on collapse/expand.
This does not make sense. Since image field is the only
field within that palette (relict from pre-FAL) remove the
wrapping palette.

Change-Id: I3e92a4c8706ab613834c95c12178d6905f963704
Releases: 6.0
Fixes: #38741
Reviewed-on: http://review.typo3.org/12703
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
typo3/sysext/cms/tbl_tt_content.php

index 7987501..35d35a5 100755 (executable)
@@ -1790,7 +1790,7 @@ $TCA['tt_content'] = array(
                                        bodytext;Text;;richtext:rte_transform[flag=rte_enabled|mode=ts_css],
                                        rte_enabled;LLL:EXT:cms/locallang_ttc.xml:rte_enabled_formlabel,' // Only the following tab is relevant to be changed for FAL:
                                .'--div--;LLL:EXT:cms/locallang_ttc.xml:tabs.images,
-                                       --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.imagefiles;imagefiles,
+                                       image,
                                        --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.imagelinks;imagelinks,' // This palette will only have the clickEnlarge option in the future, as the real link field is moved to the sys_file_reference inline table. Maybe the clickEnlarge link should be moved to the appearance tab of the content element instead?
                                .'--div--;LLL:EXT:cms/locallang_ttc.xml:tabs.appearance,
                                        --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.frames;frames,
@@ -1806,7 +1806,7 @@ $TCA['tt_content'] = array(
                        'showitem' => '--palette--;LLL:EXT:cms/locallang_ttc.xml:palette.general;general,
                                        --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.header;header,
                                --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.images,
-                                       --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.imagefiles;imagefiles,
+                                       image,
                                        --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.imagelinks;imagelinks,
                                --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.appearance,
                                        --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.frames;frames,
@@ -2080,10 +2080,6 @@ $TCA['tt_content'] = array(
                        'showitem' => 'header;LLL:EXT:cms/locallang_ttc.xml:header_formlabel, --linebreak--, header_layout;LLL:EXT:cms/locallang_ttc.xml:header_layout_formlabel, header_position;LLL:EXT:cms/locallang_ttc.xml:header_position_formlabel, date;LLL:EXT:cms/locallang_ttc.xml:date_formlabel, --linebreak--, header_link;LLL:EXT:cms/locallang_ttc.xml:header_link_formlabel, --linebreak--, subheader;LLL:EXT:cms/locallang_ttc.xml:subheader_formlabel',
                        'canNotCollapse' => 1,
                ),
-               'imagefiles' => array(
-                       'showitem' => 'image;LLL:EXT:cms/locallang_ttc.xml:image_formlabel',
-                       'canNotCollapse' => 1,
-               ),
                'multimediafiles' => array(
                        'showitem' => 'multimedia;LLL:EXT:cms/locallang_ttc.xml:multimedia_formlabel, bodytext;LLL:EXT:cms/locallang_ttc.xml:bodytext.ALT.multimedia_formlabel;;nowrap',
                        'canNotCollapse' => 1,