Skip to content

Commit

Permalink
[TASK] Disable ctypes form and textmedia
Browse files Browse the repository at this point in the history
  • Loading branch information
misterboe committed Sep 1, 2017
1 parent 57e63ce commit 15886c9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 5 additions & 1 deletion ext_conf_template.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ hideAtCopy = 0
# cat=General/130_constants/60; type=boolean; label=Disable Copy flag
disableCopyFlag = 0
# cat=General/130_constants/70; type=boolean; label=CKEditor Bootstrap Config
enable_bootstrap_ckeditor=1
enable_bootstrap_ckeditor = 1

# customsubcategory=140_ce=Disable default Content Elements
# cat=Contentelements/140_ce/10; type=boolean; label=Header
Expand All @@ -17,6 +17,8 @@ disable_header = 1
disable_text = 1
# cat=Contentelements/140_ce/30; type=boolean; label=Textpic
disable_textpic = 1
# cat=Contentelements/140_ce/30; type=boolean; label=Textmedia
disable_textmedia = 1
# cat=Contentelements/140_ce/40; type=boolean; label=Bullets
disable_bullets = 1
# cat=Contentelements/140_ce/50; type=boolean; label=Table
Expand All @@ -33,6 +35,8 @@ disable_div = 1
disable_shortcut = 1
# cat=Contentelements/140_ce/110; type=boolean; label=Mailform
disable_mailform = 1
# cat=Contentelements/140_ce/110; type=boolean; label=Forms
disable_form = 1
# cat=Contentelements/140_ce/120; type=boolean; label=Login
disable_login = 1
# cat=Contentelements/140_ce/130; type=boolean; label=Image Only
Expand Down
8 changes: 7 additions & 1 deletion ext_localconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('TCEFORM.tt_content.CType.removeItems := addToList(text)');
}
if ($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY]['disable_textpic']) {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('TCEFORM.tt_content.CType.removeItems := addToList(textpic,textmedia)');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('TCEFORM.tt_content.CType.removeItems := addToList(textpic)');
}
if ($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY]['disable_textmedia']) {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('TCEFORM.tt_content.CType.removeItems := addToList(textmedia)');
}
if ($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY]['disable_bullets']) {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('TCEFORM.tt_content.CType.removeItems := addToList(bullets)');
Expand All @@ -70,6 +73,9 @@
if ($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY]['disable_mailform']) {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('TCEFORM.tt_content.CType.removeItems := addToList(mailform)');
}
if ($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY]['disable_form']) {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('TCEFORM.tt_content.CType.removeItems := addToList(form_formframework)');
}
if ($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY]['disable_login']) {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('TCEFORM.tt_content.CType.removeItems := addToList(login)');
}
Expand Down

0 comments on commit 15886c9

Please sign in to comment.