Issue Bug Closed

#101179ExtensionManagementUtility::addTcaSelectItem() ignoring 4th array-argument for item-group

Gabriel Kaufmann TYPOworx GmbH | NewMedia 06/27/23, 12:49 updated 02/06/24, 13:09

Description

I’ve tried to use ExtensionManagementUtility::addTcaSelectItem() to register custom CType with item-group for CType Select. But obviously this argument is ignored and not passed to TYPO3 TCA:

  ExtensionManagementUtility::addTcaSelectItemGroup(
    'tt_content',
    'CType',
    'my-group',
    'LLL:EXT:my_slider_mixtape/Resources/Private/Language/locallang_tca.xlf:tt_content.group.sliders'
  );

  ExtensionManagementUtility::addTcaSelectItem(
   'tt_content',
   'CType',
   [
      // title
      'My custom CType',
      // plugin signature: extkey_identifier
      'custom_ctype'
      // icon identifier
      'custom-icon,
      // CType ItemGroup
      'my-group',
   ],
  );

Refering to the docs for this feature it should work like this:
https://docs.typo3.org/m/typo3/reference-tca/12.4/en-us/ColumnsConfig/Type/Select/Properties/ItemGroups.html

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.