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