Search code examples
typo3fluidtypo3-8.x

TYPO3 8.7 Backend fields for a custom content element are not rendered


I have a template extension on TYPO3 8.7 and try to add some custom content elements. Everything seems to work fine, except for the backend fields - they're just not rendered.

I developed the extension from scratch and thought that maybe that was the problem, so I installed the Extension Builder module and made another extension with it, but the result is still the same.

The element can be seen in the Wizard and is rendered in the frontend, but when I want to edit it in the backend it has no backend fields, except for the dropdown list with the element types. I guess I didn't add some configuration in order to make it work, but I just have no clue what it could be.


Solution

  • I solved the problem. The following line was missing in ext_localconf.php:

    \FluidTYPO3\Flux\Core::registerProviderExtensionKey('MyTest.my_test', 'Content');
    

    Then I don't need the code in tt_content.php, cause the items that it adds to the dropdown list have nothing to do with the backend layouts. New content elements are added to the dropdown list automatically from the template files and the following information is used for it:

    <flux:form id="counter"
               label="counter"
               description="Counter description">