Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TYPO3: hide 'Plugin Mode' and 'Record Storage Page' in a plugin

I was wondering if it is possible to hide both the 'Plugin Mode' and 'Record Storage Page' sections (pallets?) inside a plugin.

When I only have one setting in my flexform configuration, it is almost overlooked when having these two large sections visible. In a lot of cases it would be great to remove such 'clutter' from the plugin.

like image 619
pixelsforbreakfast Avatar asked Sep 08 '16 08:09

pixelsforbreakfast


1 Answers

This is possible by changing the TCA. Add this to Configuration/TCA/Overrides/tt_content.php

$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['news_pi1'] 
  = 'recursive,select_key,pages'

of course you need to change news_pi1 to the plugin configuration name of yours.

I took the example from my extension news.

like image 50
Georg Ringer Avatar answered Nov 01 '22 00:11

Georg Ringer