You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why not just use configurePlugin / registerPlugin?
TYPO3 has a helper method to quickly create plugins in ExtensionUtility::configurePlugin/registerPlugin
In the background, it will create a completely new Content Element, which just copies the "Header" element. If you need custom fields or FlexForm configuration, you need to manually override the element. But if you create the Content Element with Content Blocks and only register the controller actions for it via the utility, you have the full power of Content Blocks on your side. You can quickly create FlexForm config and manage labels, icons etc. in your component.
Note: registerControllerActions is an internal method, but it is unlikely to change in version 13. This way of adding plugins is experimental. The idea to separate Content Element registration and controller action registration is a good one in my opinion.
There are plans to further simplify the registration of extbase plugins with Content Blocks. I didn't go into the Content Blocks Core, because this would introduce a dependency to extbase, which we don't want: #95
This will probably be an addon to Content Blocks, as soon as we have an API to register custom Content Types.
The text was updated successfully, but these errors were encountered: