[BUGFIX] Split off functional category collection tests
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / ext_localconf.php
old mode 100755 (executable)
new mode 100644 (file)
index 163de72..c683545
 <?php
-# TYPO3 SVN ID: $Id$
-if (!defined ('TYPO3_MODE'))   die ('Access denied.');
-
-t3lib_extMgm::addUserTSConfig('
+if (!defined('TYPO3_MODE')) {
+       die('Access denied.');
+}
+\TYPO3\CMS\Core\Extension\ExtensionManager::addUserTSConfig('
+       options.saveDocView = 1
+       options.saveDocNew = 1
        options.saveDocNew.pages = 0
-       options.saveDocNew.pages_language_overlay = 0
+       options.saveDocNew.pages_language_overlay = 1
 ');
-
-t3lib_extMgm::addPageTSConfig('
-mod.wizards.newContentElements.wizardItems {
-       common.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common
-       common.elements {
-               text {
-                       icon = gfx/c_wiz/regular_text.gif
-                       title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_regularText_title
-                       description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_regularText_description
-                       tt_content_defValues {
-                               CType = text
+\TYPO3\CMS\Core\Extension\ExtensionManager::addPageTSConfig('
+mod.wizards.newContentElement {
+       renderMode = tabs
+       wizardItems {
+               common.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common
+               common.elements {
+                       text {
+                               icon = gfx/c_wiz/regular_text.gif
+                               title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_regularText_title
+                               description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_regularText_description
+                               tt_content_defValues {
+                                       CType = text
+                               }
                        }
-               }
-               textpic {
-                       icon = gfx/c_wiz/text_image_right.gif
-                       title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_textImage_title
-                       description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_textImage_description
-                       tt_content_defValues {
-                               CType = textpic
-                               imageorient = 17
+                       textpic {
+                               icon = gfx/c_wiz/text_image_right.gif
+                               title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_textImage_title
+                               description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_textImage_description
+                               tt_content_defValues {
+                                       CType = textpic
+                                       imageorient = 17
+                               }
                        }
-               }
-               image {
-                       icon = gfx/c_wiz/images_only.gif
-                       title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_imagesOnly_title
-                       description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_imagesOnly_description
-                       tt_content_defValues {
-                               CType = image
-                               imagecols = 2
+                       image {
+                               icon = gfx/c_wiz/images_only.gif
+                               title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_imagesOnly_title
+                               description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_imagesOnly_description
+                               tt_content_defValues {
+                                       CType = image
+                                       imagecols = 2
+                               }
                        }
-               }
-               bullets {
-                       icon = gfx/c_wiz/bullet_list.gif
-                       title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_bulletList_title
-                       description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_bulletList_description
-                       tt_content_defValues {
-                               CType = bullets
+                       bullets {
+                               icon = gfx/c_wiz/bullet_list.gif
+                               title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_bulletList_title
+                               description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_bulletList_description
+                               tt_content_defValues {
+                                       CType = bullets
+                               }
                        }
-               }
-               table {
-                       icon = gfx/c_wiz/table.gif
-                       title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_table_title
-                       description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_table_description
-                       tt_content_defValues {
-                               CType = table
+                       table {
+                               icon = gfx/c_wiz/table.gif
+                               title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_table_title
+                               description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_table_description
+                               tt_content_defValues {
+                                       CType = table
+                               }
                        }
+
                }
-               
-       }
-       common.show = text,textpic,image,bullets,table
-       
-       special.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special
-       special.elements {
-               uploads {
-                       icon = gfx/c_wiz/filelinks.gif
-                       title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_filelinks_title
-                       description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_filelinks_description
-                       tt_content_defValues {
-                               CType = uploads
+               common.show = text,textpic,image,bullets,table
+
+               special.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special
+               special.elements {
+                       uploads {
+                               icon = gfx/c_wiz/filelinks.gif
+                               title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_filelinks_title
+                               description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_filelinks_description
+                               tt_content_defValues {
+                                       CType = uploads
+                               }
                        }
-               }
-               multimedia {
-                       icon = gfx/c_wiz/multimedia.gif
-                       title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_multimedia_title
-                       description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_multimedia_description
-                       tt_content_defValues {
-                               CType = multimedia
+                       multimedia {
+                               icon = gfx/c_wiz/multimedia.gif
+                               title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_multimedia_title
+                               description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_multimedia_description
+                               tt_content_defValues {
+                                       CType = multimedia
+                               }
                        }
-               }
-               menu {
-                       icon = gfx/c_wiz/sitemap2.gif
-                       title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_sitemap_title
-                       description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_sitemap_description
-                       tt_content_defValues {
-                               CType = menu
-                               menu_type = 2
+                       media {
+                               icon = gfx/c_wiz/multimedia.gif
+                               title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_media_title
+                               description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_media_description
+                               tt_content_defValues {
+                                       CType = media
+                               }
                        }
-               }
-               html {
-                       icon = gfx/c_wiz/html.gif
-                       title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_plainHTML_title
-                       description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_plainHTML_description
-                       tt_content_defValues {
-                               CType = html
+                       menu {
+                               icon = gfx/c_wiz/sitemap2.gif
+                               title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_menus_title
+                               description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_menus_description
+                               tt_content_defValues {
+                                       CType = menu
+                                       menu_type = 0
+                               }
+                       }
+                       html {
+                               icon = gfx/c_wiz/html.gif
+                               title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_plainHTML_title
+                               description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_plainHTML_description
+                               tt_content_defValues {
+                                       CType = html
+                               }
+                       }
+                       div {
+                               icon = gfx/c_wiz/div.gif
+                               title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_divider_title
+                               description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_divider_description
+                               tt_content_defValues {
+                                       CType = div
+                               }
                        }
+                       shortcut {
+                               icon = gfx/c_wiz/shortcut.gif
+                               title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_shortcut_title
+                               description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_shortcut_description
+                               tt_content_defValues {
+                                       CType = shortcut
+                               }
+                       }
+
                }
-               
-       }
-       special.show = uploads,multimedia,menu,html
-       
-       forms.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms
-       forms.elements {
-               mailform {
-                       icon = gfx/c_wiz/mailform.gif
-                       title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms_mail_title
-                       description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms_mail_description
-                       tt_content_defValues {
-                               CType = mailform
-                               bodytext (
-# Example content:
-Name: | *name = input,40 | Enter your name here
-Email: | *email=input,40 |
-Address: | address=textarea,40,5 |
-Contact me: | tv=check | 1
+               special.show = uploads,media,menu,html,div,shortcut
+
+               forms.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms
+               forms.elements {
+                       mailform {
+                               icon = gfx/c_wiz/mailform.gif
+                               title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms_mail_title
+                               description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms_mail_description
+                               tt_content_defValues {
+                                       CType = mailform
+                                       bodytext (
+       # Example content:
+       Name: | *name = input,40 | Enter your name here
+       Email: | *email=input,40 |
+       Address: | address=textarea,40,5 |
+       Contact me: | tv=check | 1
 
-|formtype_mail = submit | Send form!
-|html_enabled=hidden | 1
-|subject=hidden| This is the subject
-                               )
+       |formtype_mail = submit | Send form!
+       |html_enabled=hidden | 1
+       |subject=hidden| This is the subject
+                                       )
+                               }
                        }
-               }
-               search {
-                       icon = gfx/c_wiz/searchform.gif
-                       title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms_search_title
-                       description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms_search_description
-                       tt_content_defValues {
-                               CType = search
+                       search {
+                               icon = gfx/c_wiz/searchform.gif
+                               title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms_search_title
+                               description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms_search_description
+                               tt_content_defValues {
+                                       CType = search
+                               }
                        }
                }
-               login {
-                       icon = gfx/c_wiz/login_form.gif
-                       title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms_login_title
-                       description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms_login_description
-                       tt_content_defValues {
-                               CType = login
+               forms.show = mailform,search
+
+               plugins.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:plugins
+               plugins.elements {
+                       general {
+                               icon = gfx/c_wiz/user_defined.gif
+                               title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:plugins_general_title
+                               description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:plugins_general_description
+                               tt_content_defValues.CType = list
                        }
                }
-               
-       }
-       forms.show = mailform,search,login
-       
-       plugins.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:plugins
-       plugins.elements {
-               general {
-                       icon = gfx/c_wiz/user_defined.gif
-                       title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:plugins_general_title
-                       description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:plugins_general_description
-                       tt_content_defValues.CType = list
-               }
+               plugins.show = *
        }
-       plugins.show = *
 }
 
 ');
-
 $TYPO3_CONF_VARS['SYS']['contentTable'] = 'tt_content';
 $TYPO3_CONF_VARS['FE']['eID_include']['tx_cms_showpic'] = 'EXT:cms/tslib/showpic.php';
-
 $TYPO3_CONF_VARS['SC_OPTIONS']['ext/install']['compat_version']['cms'] = array(
        'title' => 'CMS Frontend',
        'version' => 4000000,
-       'description' => '<ul>' .
-                                       '<li><p>Word separator character for simulateStaticDocument is changed from ' .
-                                       'underscore (_) to hyphen (-) to make URLs more friendly for search engines' .
-                                       'URLs that are already existing (e.g. external links to your site) will still work like before.</p>' .
-                                       '<p>You can set the separator character back to an underscore by putting the following line into the '.
-                                       '<b>Setup</b> section of your Page TypoScript template:</p>' .
-                                       '<p style="margin-top: 5px; white-space: nowrap;"><code>config.simulateStaticDocuments_replacementChar = _</code></p></li>'.
-                                       '<li><p>CSS Stylesheets and JavaScript are put into an external file by default.</p>'.
-                                       '<p>Technically, that means that the default value of "config.inlineStyle2TempFile" is now set to "1" and that of "config.removeDefaultJS" to "external"</p></li>'.
-                                       '</ul>',
+       'description' => ((('<ul>' . '<li><p>The extention simluatestatic has been removed in TYPO3 6.0</p></li>') . '<li><p>CSS Stylesheets and JavaScript are put into an external file by default.</p>') . '<p>Technically, that means that the default value of "config.inlineStyle2TempFile" is now set to "1" and that of "config.removeDefaultJS" to "external"</p></li>') . '</ul>'
 );
-
-
-       // registering hooks for the treelist cache
-$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'EXT:cms/tslib/hooks/class.tx_cms_treelistcacheupdate.php:&tx_cms_treelistCacheUpdate';
-$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][]  = 'EXT:cms/tslib/hooks/class.tx_cms_treelistcacheupdate.php:&tx_cms_treelistCacheUpdate';
-$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['moveRecordClass'][]     = 'EXT:cms/tslib/hooks/class.tx_cms_treelistcacheupdate.php:&tx_cms_treelistCacheUpdate';
-
-
-?>
+// Registering hooks for the treelist cache
+$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'EXT:cms/tslib/hooks/class.tx_cms_treelistcacheupdate.php:&TYPO3\\CMS\\Frontend\\Hooks\\TreelistCacheUpdateHooks';
+$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = 'EXT:cms/tslib/hooks/class.tx_cms_treelistcacheupdate.php:&TYPO3\\CMS\\Frontend\\Hooks\\TreelistCacheUpdateHooks';
+$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['moveRecordClass'][] = 'EXT:cms/tslib/hooks/class.tx_cms_treelistcacheupdate.php:&TYPO3\\CMS\\Frontend\\Hooks\\TreelistCacheUpdateHooks';
+if (TYPO3_MODE === 'FE') {
+       // Register the core media wizard provider
+       \TYPO3\CMS\Frontend\MediaWizard\MediaWizardProviderManager::registerMediaWizardProvider('TYPO3\\CMS\\Frontend\\MediaWizard\\MediaWizardProvider');
+       // Register eID provider for ExtDirect for the frontend
+       $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['ExtDirect'] = PATH_tslib . 'extdirecteid.php';
+}
+// Register search keys
+$GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch']['page'] = 'pages';
+$GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch']['content'] = 'tt_content';
+// Register hook to show preview info
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['hook_previewInfo']['cms'] = 'EXT:cms/tslib/hooks/class.tx_cms_fehooks.php:TYPO3\\CMS\\Frontend\\Hooks\\FrontendHooks->hook_previewInfo';
+?>
\ No newline at end of file