Reputation: 516
I have an extension with a plugin to render a list in the front-end. I don't want the header of the plugin to be rendered in the front-end nor want I that my customer is bothered with it in the beck-end.
How can I make it disappear? How can I find the place where it is defined how the back-end form for the plugin is rendered?
Thanks!
Upvotes: 1
Views: 2435
Reputation: 700
Add in Configuration/TCA/Overrides/tt_content.php:
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][<your_plugin_signature>] = 'header,header.types,subheader,header_link,header_position,header_layout,date';
Upvotes: 3
Reputation: 2683
Maybe the subtypes_excludelist is helpful for you. This is often used to remove some fields for plugins but I never tried to exclude all the header fields.
TYPO3: hide 'Plugin Mode' and 'Record Storage Page' in a plugin
https://docs.typo3.org/m/typo3/reference-tca/master/en-us/Types/Index.html#subtypes-excludelist
Upvotes: 0
Reputation: 516
TCEFORM.tt_content.header.types.list.disabled = 1
TCEFORM.tt_content.subheader.types.list.disabled = 1
TCEFORM.tt_content.header_link.types.list.disabled = 1
TCEFORM.tt_content.header_position.types.list.disabled = 1
TCEFORM.tt_content.header_layout.types.list.disabled = 1
achieves what I want to do with the huge drawback of having no list with a heading. So this might be an answer but no solution.
Upvotes: 0
Reputation: 3797
The backend fields can be configured via the TCEFORM
section of your Page TSConfig.
E.g. to disable the header field of your plugin:
TCEFORM.tt_content.header.types.tx_yourextkey.header.disabled = 1
See the documentation for more details.
Regarding frontend rendering: normally you don't need to change anything regarding your disabled fields because they are not rendered anyways.
But if you need to adjust something, check your TypoScript configuration in the TypoScript Object browser and search for this part (or similar):
tt_content.list.20.extkey_pi1
Upvotes: 1