4bb58479c4f65a59f01babbe100291aa858ed8c6
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / ext_localconf.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('
5 options.saveDocView = 1
6 options.saveDocNew = 1
7 options.saveDocNew.pages = 0
8 options.saveDocNew.sys_file = 0
9 options.disableDelete.sys_file = 1
10 TCAdefaults.tt_content.imagecols = 2
11 ');
12 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
13 mod.wizards.newContentElement {
14 renderMode = tabs
15 wizardItems {
16 common.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common
17 common.elements {
18 header {
19 icon = gfx/c_wiz/regular_header.gif
20 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_headerOnly_title
21 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_headerOnly_description
22 tt_content_defValues {
23 CType = header
24 }
25 }
26 text {
27 icon = gfx/c_wiz/regular_text.gif
28 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_regularText_title
29 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_regularText_description
30 tt_content_defValues {
31 CType = text
32 }
33 }
34 textpic {
35 icon = gfx/c_wiz/text_image_right.gif
36 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_textImage_title
37 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_textImage_description
38 tt_content_defValues {
39 CType = textpic
40 imageorient = 17
41 }
42 }
43 image {
44 icon = gfx/c_wiz/images_only.gif
45 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_imagesOnly_title
46 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_imagesOnly_description
47 tt_content_defValues {
48 CType = image
49 }
50 }
51 bullets {
52 icon = gfx/c_wiz/bullet_list.gif
53 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_bulletList_title
54 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_bulletList_description
55 tt_content_defValues {
56 CType = bullets
57 }
58 }
59 table {
60 icon = gfx/c_wiz/table.gif
61 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_table_title
62 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_table_description
63 tt_content_defValues {
64 CType = table
65 }
66 }
67
68 }
69 common.show = header,text,textpic,image,bullets,table
70
71 special.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special
72 special.elements {
73 uploads {
74 icon = gfx/c_wiz/filelinks.gif
75 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_filelinks_title
76 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_filelinks_description
77 tt_content_defValues {
78 CType = uploads
79 }
80 }
81 menu {
82 icon = gfx/c_wiz/sitemap2.gif
83 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_menus_title
84 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_menus_description
85 tt_content_defValues {
86 CType = menu
87 menu_type = 0
88 }
89 }
90 html {
91 icon = gfx/c_wiz/html.gif
92 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_plainHTML_title
93 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_plainHTML_description
94 tt_content_defValues {
95 CType = html
96 }
97 }
98 div {
99 icon = gfx/c_wiz/div.gif
100 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_divider_title
101 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_divider_description
102 tt_content_defValues {
103 CType = div
104 }
105 }
106 shortcut {
107 icon = gfx/c_wiz/shortcut.gif
108 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_shortcut_title
109 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_shortcut_description
110 tt_content_defValues {
111 CType = shortcut
112 }
113 }
114
115 }
116 special.show = uploads,menu,html,div,shortcut
117
118 # dummy placeholder for forms group
119 forms.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:forms
120
121 plugins.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:plugins
122 plugins.elements {
123 general {
124 icon = gfx/c_wiz/user_defined.gif
125 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:plugins_general_title
126 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:plugins_general_description
127 tt_content_defValues.CType = list
128 }
129 }
130 plugins.show = *
131 }
132 }
133
134 ');
135
136 // Registering hooks for the treelist cache
137 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \TYPO3\CMS\Frontend\Hooks\TreelistCacheUpdateHooks::class;
138 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = \TYPO3\CMS\Frontend\Hooks\TreelistCacheUpdateHooks::class;
139 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['moveRecordClass'][] = \TYPO3\CMS\Frontend\Hooks\TreelistCacheUpdateHooks::class;
140
141 // Register search keys
142 $GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch']['page'] = 'pages';
143 $GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch']['content'] = 'tt_content';
144 // Register hook to show preview info
145 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['hook_previewInfo']['cms'] = \TYPO3\CMS\Frontend\Hooks\FrontendHooks::class . '->hook_previewInfo';