Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to configure groupName for custom record types #203

Open
tehplague opened this issue Jun 11, 2024 · 1 comment
Open

Add possibility to configure groupName for custom record types #203

tehplague opened this issue Jun 11, 2024 · 1 comment
Labels

Comments

@tehplague
Copy link

At the moment \TYPO3\CMS\ContentBlocks\Generator\TcaGenerator is unable to set ['ctrl']['groupName'] in TCA generated for custom record types. This makes custom record types loosely flying around in the new content wizard. The groupName could theoretically later be set by means of an additional PSR-14 listener. But this approach would introduce a need for developer effort that EXT:contentblocks tries to avoid.

IMHO it would be best if TcaGenerator was extended by an appropriate YAML option specified in the EditorInterface.yaml which could then be read in Classes/Generator/TcaGenerator.php:882 ff.

@nhovratov
Copy link
Contributor

@tehplague The whole NewRecord view and its grouping is a mess unfortunately. It groups records by extension, rather than a defined groups (like for Content Elements). So if you name your table "tx_myextension_foo", then "myextension" becomes the groupName automatically. If you don't name your table with "tx_", then TYPO3 assumes it is a system table and groups it under "system". This is why I didn't include this weird "groupName" option in the yaml options. Otherwise you would need to define an extension key, which cotradicts the self-contained concept.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants