[TASK] Separate ext:statictemplates code from core
[Packages/TYPO3.CMS.git] / typo3 / sysext / statictemplates / ext_localconf.php
index 50c247f..296c031 100644 (file)
@@ -2,5 +2,24 @@
 if (!defined('TYPO3_MODE')) {
        die('Access denied.');
 }
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['includeStaticTypoScriptSources'][] = 'EXT:statictemplates/Classes/StaticTemplatesHook.php:TYPO3\\CMS\\Statictemplates\\StaticTemplatesHook->includeStaticTypoScriptSources';
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['includeStaticTypoScriptSources'][] =
+       'TYPO3\\CMS\\Statictemplates\\StaticTemplatesHook->includeStaticTypoScriptSources';
+
+// Register GMENU_LAYERS, GMENU_FOLDOUT and TMENU_LAYERS menu objects
+/** @var $menuContentObjectFactory \TYPO3\CMS\Frontend\ContentObject\Menu\MenuContentObjectFactory */
+$menuContentObjectFactory = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
+       'TYPO3\\CMS\\Frontend\\ContentObject\\Menu\\MenuContentObjectFactory'
+);
+$menuContentObjectFactory->registerMenuType(
+       'GMENU_LAYERS',
+       'TYPO3\\CMS\\Statictemplates\\ContentObject\\Menu\\GraphicalMenuLayersContentObject'
+);
+$menuContentObjectFactory->registerMenuType(
+       'GMENU_FOLDOUT',
+       'TYPO3\\CMS\\Statictemplates\\ContentObject\\Menu\\GraphicalMenuFoldoutContentObject'
+);
+$menuContentObjectFactory->registerMenuType(
+       'TMENU_LAYERS',
+       'TYPO3\\CMS\\Statictemplates\\ContentObject\\Menu\\TextMenuLayersContentObject'
+);
 ?>
\ No newline at end of file