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

人盡茶涼 提交于 2020-02-01 04:01:27

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/39386018/typo3-hide-plugin-mode-and-record-storage-page-in-a-plugin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!