-
Notifications
You must be signed in to change notification settings - Fork 30
[TASK] Make the plugin a CType
#1960
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
base: main
Are you sure you want to change the base?
Conversation
Pull Request Test Coverage Report for Build 21597349897Details
💛 - Coveralls |
This will be an extra pr Related: #1332
cdebf22 to
45941cd
Compare
CType
|
|
||
| excludePaths: | ||
| # We need this Class only for V12. So we exclude it here | ||
| - ../../Classes/Upgrades/AbstractListTypeToCTypeUpdate.php |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is related to the upgrade wizard (which is not part of this PR). So we don't need the changed to this file in this PR.
| ->autowire() | ||
| ->autoconfigure(); | ||
| ->autoconfigure() | ||
| ->public(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this needed for this PR? If so, why?
| /** | ||
| * Register TeaIndex as "Insert Record" | ||
| */ | ||
| ExtensionManagementUtility::addToInsertRecords('tea_index'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we do this, we should have the other plugins as well.
| ); | ||
| foreach ($plugins as $contentType) { | ||
| // This makes the plugin selectable in the BE. | ||
| ExtensionUtility::registerPlugin( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ExtensionUtility::registerPlugin returns the plugin signature. Can we (re-)use it for ExtensionManagementUtility::addToAllTCAtypes and ExtensionManagementUtility::addPiFlexFormValue?
| <target>Teeliste</target> | ||
| </trans-unit> | ||
| <trans-unit id="plugin.tea_index.description"> | ||
| <source>Tea plugin to show the listview.</source> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <source>Tea plugin to show the listview.</source> | |
| <source>Tea plugin to show the list view.</source> |
(also in the other file)
| ,1,1,"list","Tea index","tea_teaindex","<?xml version=""1.0"" encoding=""utf-8"" standalone=""yes"" ?> | ||
| ,"uid","pid","CType","header","pi_flexform" | ||
| ,1,1,"tea_teaindex","Tea index","<?xml version=""1.0"" encoding=""utf-8"" standalone=""yes"" ?> | ||
| <T3FlexForms> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should indent the XML to align with the <?xml again.
| "psr/http-message": "^1.0.1", | ||
| "typo3/cms-core": "^12.4.41", | ||
| "typo3/cms-extbase": "^12.4.41 || ^13.4", | ||
| "typo3/cms-fluid": "^12.4.41 || ^13.4", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this needs to stay as we have Fluid templates.
| ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT | ||
| ); | ||
|
|
||
| ExtensionManagementUtility::addPageTSConfig('@import \'EXT:tea/Configuration/TSconfig/Page/ContentElementWizard.tsconfig\''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file does not exist, and this PR does not introduce it. So this line should be removed.
Part of #1332