[FOLLOWUP][TASK] Move Media cObject and CTypes
[Packages/TYPO3.CMS.git] / typo3 / sysext / mediace / ext_localconf.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 // Register additional content objects
5 $GLOBALS['TYPO3_CONF_VARS']['FE']['ContentObjects']['MULTIMEDIA'] = \TYPO3\CMS\Mediace\ContentObject\MultimediaContentObject::class;
6 $GLOBALS['TYPO3_CONF_VARS']['FE']['ContentObjects']['MEDIA'] = \TYPO3\CMS\Mediace\ContentObject\MediaContentObject::class;
7 $GLOBALS['TYPO3_CONF_VARS']['FE']['ContentObjects']['SWFOBJECT'] = \TYPO3\CMS\Mediace\ContentObject\ShockwaveFlashObjectContentObject::class;
8 $GLOBALS['TYPO3_CONF_VARS']['FE']['ContentObjects']['FLOWPLAYER'] = \TYPO3\CMS\Mediace\ContentObject\FlowPlayerContentObject::class;
9 $GLOBALS['TYPO3_CONF_VARS']['FE']['ContentObjects']['QTOBJECT'] = \TYPO3\CMS\Mediace\ContentObject\QuicktimeObjectContentObject::class;
10
11 // Register the "media" CType to the "New Content Element" wizard
12 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
13 mod.wizards.newContentElement.wizardItems {
14 special.elements.media {
15 icon = gfx/c_wiz/multimedia.gif
16 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_media_title
17 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_media_description
18 tt_content_defValues.CType = media
19 }
20 special.show := addToList(media)
21 }
22 ');
23
24 // Add Default TypoScript for CType "media" and "multimedia" after default content rendering
25 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript('mediace', 'constants', '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:mediace/Configuration/TypoScript/constants.txt">', 'defaultContentRendering');
26 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript('mediace', 'setup', '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:mediace/Configuration/TypoScript/setup.txt">', 'defaultContentRendering');