TYPO3 API  SVNRelease
ext_localconf.php
Go to the documentation of this file.
00001 <?php
00002 # TYPO3 SVN ID: $Id: ext_localconf.php 9478 2010-11-17 23:05:15Z steffenk $
00003 if (!defined ('TYPO3_MODE'))    die ('Access denied.');
00004 
00005 t3lib_extMgm::addUserTSConfig('
00006     options.saveDocView = 1
00007     options.saveDocNew = 1
00008     options.saveDocNew.pages = 0
00009     options.saveDocNew.pages_language_overlay = 0
00010 ');
00011 
00012 t3lib_extMgm::addPageTSConfig('
00013 mod.wizards.newContentElement.wizardItems {
00014     common.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common
00015     common.elements {
00016         text {
00017             icon = gfx/c_wiz/regular_text.gif
00018             title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_regularText_title
00019             description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_regularText_description
00020             tt_content_defValues {
00021                 CType = text
00022             }
00023         }
00024         textpic {
00025             icon = gfx/c_wiz/text_image_right.gif
00026             title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_textImage_title
00027             description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_textImage_description
00028             tt_content_defValues {
00029                 CType = textpic
00030                 imageorient = 17
00031             }
00032         }
00033         image {
00034             icon = gfx/c_wiz/images_only.gif
00035             title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_imagesOnly_title
00036             description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_imagesOnly_description
00037             tt_content_defValues {
00038                 CType = image
00039                 imagecols = 2
00040             }
00041         }
00042         bullets {
00043             icon = gfx/c_wiz/bullet_list.gif
00044             title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_bulletList_title
00045             description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_bulletList_description
00046             tt_content_defValues {
00047                 CType = bullets
00048             }
00049         }
00050         table {
00051             icon = gfx/c_wiz/table.gif
00052             title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_table_title
00053             description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:common_table_description
00054             tt_content_defValues {
00055                 CType = table
00056             }
00057         }
00058 
00059     }
00060     common.show = text,textpic,image,bullets,table
00061 
00062     special.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special
00063     special.elements {
00064         uploads {
00065             icon = gfx/c_wiz/filelinks.gif
00066             title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_filelinks_title
00067             description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_filelinks_description
00068             tt_content_defValues {
00069                 CType = uploads
00070             }
00071         }
00072         multimedia {
00073             icon = gfx/c_wiz/multimedia.gif
00074             title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_multimedia_title
00075             description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_multimedia_description
00076             tt_content_defValues {
00077                 CType = multimedia
00078             }
00079         }
00080         media {
00081             icon = gfx/c_wiz/multimedia.gif
00082             title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_media_title
00083             description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_media_description
00084             tt_content_defValues {
00085                 CType = media
00086             }
00087         }
00088         menu {
00089             icon = gfx/c_wiz/sitemap2.gif
00090             title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_sitemap_title
00091             description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_sitemap_description
00092             tt_content_defValues {
00093                 CType = menu
00094                 menu_type = 2
00095             }
00096         }
00097         html {
00098             icon = gfx/c_wiz/html.gif
00099             title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_plainHTML_title
00100             description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_plainHTML_description
00101             tt_content_defValues {
00102                 CType = html
00103             }
00104         }
00105         div {
00106             icon = gfx/c_wiz/div.gif
00107             title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_divider_title
00108             description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:special_divider_description
00109             tt_content_defValues {
00110                 CType = div
00111             }
00112         }
00113 
00114     }
00115     special.show = uploads,media,menu,html,div
00116 
00117     forms.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms
00118     forms.elements {
00119         mailform {
00120             icon = gfx/c_wiz/mailform.gif
00121             title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms_mail_title
00122             description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms_mail_description
00123             tt_content_defValues {
00124                 CType = mailform
00125                 bodytext (
00126 # Example content:
00127 Name: | *name = input,40 | Enter your name here
00128 Email: | *email=input,40 |
00129 Address: | address=textarea,40,5 |
00130 Contact me: | tv=check | 1
00131 
00132 |formtype_mail = submit | Send form!
00133 |html_enabled=hidden | 1
00134 |subject=hidden| This is the subject
00135                 )
00136             }
00137         }
00138         search {
00139             icon = gfx/c_wiz/searchform.gif
00140             title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms_search_title
00141             description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms_search_description
00142             tt_content_defValues {
00143                 CType = search
00144             }
00145         }
00146         login {
00147             icon = gfx/c_wiz/login_form.gif
00148             title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms_login_title
00149             description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms_login_description
00150             tt_content_defValues {
00151                 CType = login
00152             }
00153         }
00154 
00155     }
00156     forms.show = mailform,search,login
00157 
00158     plugins.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:plugins
00159     plugins.elements {
00160         general {
00161             icon = gfx/c_wiz/user_defined.gif
00162             title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:plugins_general_title
00163             description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:plugins_general_description
00164             tt_content_defValues.CType = list
00165         }
00166     }
00167     plugins.show = *
00168 }
00169 
00170 ');
00171 
00172 $TYPO3_CONF_VARS['SYS']['contentTable'] = 'tt_content';
00173 $TYPO3_CONF_VARS['FE']['eID_include']['tx_cms_showpic'] = 'EXT:cms/tslib/showpic.php';
00174 
00175 $TYPO3_CONF_VARS['SC_OPTIONS']['ext/install']['compat_version']['cms'] = array(
00176     'title' => 'CMS Frontend',
00177     'version' => 4000000,
00178     'description' => '<ul>' .
00179                     '<li><p>Word separator character for simulateStaticDocument is changed from ' .
00180                     'underscore (_) to hyphen (-) to make URLs more friendly for search engines' .
00181                     'URLs that are already existing (e.g. external links to your site) will still work like before.</p>' .
00182                     '<p>You can set the separator character back to an underscore by putting the following line into the '.
00183                     '<strong>Setup</strong> section of your Page TypoScript template:</p>' .
00184                     '<p style="margin-top: 5px; white-space: nowrap;"><code>config.simulateStaticDocuments_replacementChar = _</code></p></li>'.
00185                     '<li><p>CSS Stylesheets and JavaScript are put into an external file by default.</p>'.
00186                     '<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>'.
00187                     '</ul>',
00188 );
00189 
00190 
00191     // registering hooks for the treelist cache
00192 $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'EXT:cms/tslib/hooks/class.tx_cms_treelistcacheupdate.php:&tx_cms_treelistCacheUpdate';
00193 $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][]  = 'EXT:cms/tslib/hooks/class.tx_cms_treelistcacheupdate.php:&tx_cms_treelistCacheUpdate';
00194 $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['moveRecordClass'][]     = 'EXT:cms/tslib/hooks/class.tx_cms_treelistcacheupdate.php:&tx_cms_treelistCacheUpdate';
00195 
00196 if (TYPO3_MODE === 'FE') {
00197         // Register the core media wizard provider
00198     tslib_mediaWizardManager::registerMediaWizardProvider('tslib_mediaWizardCoreProvider');
00199         // register eID provider for ExtDirect for the frontend
00200     $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['ExtDirect'] = PATH_tslib . 'extdirecteid.php';
00201 }
00202 
00203     // register search keys
00204 $GLOBALS ['TYPO3_CONF_VARS']['SYS']['livesearch']['page'] = 'pages';
00205 $GLOBALS ['TYPO3_CONF_VARS']['SYS']['livesearch']['content'] = 'tt_content';
00206 
00207 ?>