Bug #92383

selectCheckBox with description renders multiple select groups

Added by Georg Tiefenbrunn 2 months ago. Updated 2 months ago.

Status:
Accepted
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2020-09-23
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

rendering of "select_checkbox_3 icons, description" (select_checkbox_3) from EXT: styleguide is broken.

// https://github.com/TYPO3/styleguide/blob/master/Configuration/TCA/tx_styleguide_elements_select.php#L350
        'select_checkbox_3' => [
            'exclude' => 1,
            'label' => 'select_checkbox_3 icons, description',
            'config' => [
                'type' => 'select',
                'renderType' => 'selectCheckBox',
                'items' => [
                    ['foo 1', 1, '', 'optional description'],
                    ['foo 2', 2, 'EXT:styleguide/Resources/Public/Icons/tx_styleguide.svg', 'LLL:EXT:styleguide/Resources/Private/Language/locallang.xlf:translatedHelpTextForSelectCheckBox3'],
                    ['foo 3', 3, 'EXT:styleguide/Resources/Public/Icons/tx_styleguide.svg'],
                    ['foo 4', 4],
                ],
            ],
        ],

Expected output

  • Select group (no title, not collapsed)
    • "foo 1" ? icon ('optional description')
    • "foo 2" ? icon ('A localized help text')
    • "foo 3"
    • "foo 4"

As in https://docs.typo3.org/m/typo3/reference-tca/10.4/en-us/ColumnsConfig/Type/selectCheckBox.html#example select_checkbox_3 should render one 'group' containing 4 elements ("foo 1" to "foo 4").

Current output

  • Select group (no title)
    • "foo 3" ? icon ('none')
    • "foo 4" ? icon ('none')
  • Select group/panel 'optional description'
    • "foo 1" ? icon ('optional description')
  • Select group/panel 'LLL:EXT:styleguide/Resources/Private/Language/locallang.xlf:translatedHelpTextForSelectCheckBox3'
    • "foo 2" ? icon ('LLL:EXT:styleguide/Resources/Private/Language/locallang.xlf:translatedHelpTextForSelectCheckBox3')

Related issues

Related to TYPO3 Core - Feature #91008: Add grouping and sorting for TCA select itemsClosedBenni Mack2020-04-12

Actions
#1

Updated by Georg Ringer 2 months ago

  • Status changed from New to Accepted
#2

Updated by Georg Ringer 2 months ago

  • Related to Feature #91008: Add grouping and sorting for TCA select items added

Also available in: Atom PDF