{namespace dce=ArminVieweg\Dce\ViewHelpers} ///////////////////////////////////////////////////// {f:if(condition:"{dce.uid}", then:"uid: {dce.uid}", else:"identifier: {dce.identifier}")} /// \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin( 'ArminVieweg.dce', '{f:if(condition:"{dce.uid}", then:"dceuid{dce.uid}", else:"dce_{dce.identifier}")}', array( 'Dce' => 'show', ), array( 'Dce' => 'show' ), \TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT ); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript('dce', 'setup', ' # Hide lib.stdheader for DCE with uid {dce.uid} ' . 'tt_content.dce_{f:if(condition:"{dce.uid}", then:"dceuid{dce.uid}", else:"{dce.identifier}")}.10 >', 43); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript('dce', 'setup', ' # Hide default wrapping for content elements for DCE with uid {dce.uid} ' . 'tt_content.stdWrap.innerWrap.cObject.default.stdWrap.if.value := addToList(dce_{f:if(condition:"{dce.uid}", then:"dceuid{dce.uid}", else:"{dce.identifier}")})', 43); if (\TYPO3\CMS\Core\Utility\GeneralUtility::compat_version('7.6')) { $iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\CMS\Core\Imaging\IconRegistry'); $iconRegistry->registerIcon( 'ext-dce-{f:if(condition:"{dce.uid}", then:"dceuid{dce.uid}", else:"dce_{dce.identifier}")}-customwizardicon', 'TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider', array('source' => '{dce.wizard_custom_icon}') ); } \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(' mod.wizards.newContentElement.wizardItems.{dce.wizard_category}.elements.dce_{f:if(condition:"{dce.uid}", then:"dceuid{dce.uid}", else:"dce_{dce.identifier}")} { icon = ../{dce.wizard_custom_icon}{dce:be.contentElementWizardIconPath(name:'{dce.wizard_icon}')} iconIdentifier = ext-dce-dceuid{dce.uid}-customwizardicon{dce:be.contentElementWizardIconPath()}{dce.wizard_icon} title = {dce.title -> dce:format.addcslashes()} description = {dce.wizard_description -> f:format.raw() -> dce:format.addcslashes()} tt_content_defValues { CType = dce_{f:if(condition:"{dce.uid}", then:"dceuid{dce.uid}", else:"dce_{dce.identifier}")} } } mod.wizards.newContentElement.wizardItems.{dce.wizard_category}.show := addToList(dce_{f:if(condition:"{dce.uid}", then:"dceuid{dce.uid}", else:"dce_{dce.identifier}")}) ');