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.

History 3

  1. Oliver Bartsch commented and changed status New Needs Feedback 12/06/23, 11:35

    Hi, I just checked this with your provided configuration and I was not able to reproduce any bug on current main. The group as well as the new CType is added as expected. Could you please check again, whether the issue still exists for you?

    Best, Oli

  2. Gabriel Kaufmann TYPOworx GmbH | NewMedia commented 02/05/24, 11:57

    Oliver Bartsch wrote in #note-1:
    > Hi, I just checked this with your provided configuration and I was not able to reproduce any bug on current main. The group as well as the new CType is added as expected. Could you please check again, whether the issue still exists for you?
    >
    > Best, Oli

    Thanks for checking. Well the project I had this issue has already past. I think if I would have solved it in past days when posting this issue, I would had reported it here and already closed the issue.

    Don’t know anymore how I solved it or if I left ignoring the problem. At this point I only can approve in closing this issue, until I may have the issue again.

  3. Oliver Bartsch commented and changed status Needs Feedback Closed 02/06/24, 13:09

    Hi,

    thanks for your feedback. So I’ll close this issue as requested. Feel free to contact me in case you encounter this or a similar problem again. Otherwise you can also create a new issue with reference to this one.

    Best, Oli