Project

General

Profile

Actions

Bug #92383

closed

selectCheckBox with description renders multiple select groups

Added by Georg Tiefenbrunn about 4 years ago. Updated over 3 years ago.

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

100%

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 2 (0 open2 closed)

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

Actions
Related to TYPO3 Core - Bug #93331: Rendering of selectCheckBox TCA is broken with item descriptionsClosed2021-01-20

Actions
Actions

Also available in: Atom PDF