Merged new PageTree (version for TYPO3 4.5 Beta 3)
[Packages/TYPO3.CMS.git] / typo3 / sysext / pagetree / ext_localconf.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die ('Access denied.');
4 }
5
6 // special context menu actions for the import/export module
7 if (t3lib_extMgm::isLoaded('impexp')) {
8 $importExportActions = '
9 9000 = DIVIDER
10
11 9100 = ITEM
12 9100 {
13 name = exportT3d
14 label = LLL:EXT:pagetree/locallang_contextmenu.xml:cm.exportT3d
15 spriteIcon = actions-document-export-t3d
16 callbackAction = exportT3d
17 }
18
19 9200 = ITEM
20 9200 {
21 name = importT3d
22 label = LLL:EXT:pagetree/locallang_contextmenu.xml:cm.importT3d
23 spriteIcon = actions-document-import-t3d
24 callbackAction = importT3d
25 }
26 ';
27 }
28
29 // context menu user default configuration
30 $GLOBALS['TYPO3_CONF_VARS']['BE']['defaultUserTSconfig'] .= '
31 options.pageTree {
32 doktypesToShowInNewPageDragArea = 1,3,4,6,7,199,254
33 }
34
35 options.contextMenu {
36 table {
37 pages_root {
38 disableItems =
39
40 items {
41 100 = ITEM
42 100 {
43 name = view
44 label = LLL:EXT:pagetree/locallang_contextmenu.xml:cm.viewPage
45 spriteIcon = actions-document-view
46 displayCondition = canBeViewed != 0
47 callbackAction = viewPage
48 }
49
50 200 = ITEM
51 200 {
52 name = new
53 label = LLL:EXT:pagetree/locallang_contextmenu.xml:cm.newPage
54 spriteIcon = actions-document-new
55 displayCondition = canCreateNewPages != 0
56 callbackAction = newPageWizard
57 }
58
59 300 = DIVIDER
60
61 400 = ITEM
62 400 {
63 name = history
64 label = LLL:EXT:pagetree/locallang_contextmenu.xml:cm.history
65 spriteIcon = actions-document-history-open
66 displayCondition = canShowHistory != 0
67 callbackAction = openHistoryPopUp
68 }
69
70 ' . $importExportActions . '
71 }
72 }
73
74 pages {
75 disableItems =
76
77 items {
78 100 = ITEM
79 100 {
80 name = view
81 label = LLL:EXT:pagetree/locallang_contextmenu.xml:cm.viewPage
82 spriteIcon = actions-document-view
83 displayCondition = canBeViewed != 0
84 callbackAction = viewPage
85 }
86
87 200 = DIVIDER
88
89 300 = ITEM
90 300 {
91 name = disable
92 label = LLL:EXT:pagetree/locallang_contextmenu.xml:cm.disablePage
93 spriteIcon = actions-edit-hide
94 displayCondition = getRecord|hidden = 0 && canBeDisabledAndEnabled != 0
95 callbackAction = disablePage
96 }
97
98 400 = ITEM
99 400 {
100 name = enable
101 label = LLL:EXT:pagetree/locallang_contextmenu.xml:cm.enablePage
102 spriteIcon = actions-edit-unhide
103 displayCondition = getRecord|hidden = 1 && canBeDisabledAndEnabled != 0
104 callbackAction = enablePage
105 }
106
107 500 = ITEM
108 500 {
109 name = edit
110 label = LLL:EXT:pagetree/locallang_contextmenu.xml:cm.editPageProperties
111 spriteIcon = actions-document-open
112 displayCondition = canBeEdited != 0
113 callbackAction = editPageProperties
114 }
115
116 600 = ITEM
117 600 {
118 name = info
119 label = LLL:EXT:pagetree/locallang_contextmenu.xml:cm.info
120 spriteIcon = actions-document-info
121 displayCondition = canShowInfo != 0
122 callbackAction = openInfoPopUp
123 }
124
125 700 = ITEM
126 700 {
127 name = history
128 label = LLL:EXT:pagetree/locallang_contextmenu.xml:cm.history
129 spriteIcon = actions-document-history-open
130 displayCondition = canShowHistory != 0
131 callbackAction = openHistoryPopUp
132 }
133
134 800 = DIVIDER
135
136 900 = SUBMENU
137 900 {
138 label = LLL:EXT:pagetree/locallang_contextmenu.xml:cm.copyPasteActions
139
140 100 = ITEM
141 100 {
142 name = new
143 label = LLL:EXT:pagetree/locallang_contextmenu.xml:cm.newPage
144 spriteIcon = actions-document-new
145 displayCondition = canCreateNewPages != 0
146 callbackAction = newPageWizard
147 }
148
149 200 = DIVIDER
150
151 300 = ITEM
152 300 {
153 name = cut
154 label = LLL:EXT:pagetree/locallang_contextmenu.xml:cm.cutPage
155 spriteIcon = actions-edit-cut
156 displayCondition = isInCutMode = 0 && canBeCut != 0
157 callbackAction = enableCutMode
158 }
159
160 400 = ITEM
161 400 {
162 name = cut
163 label = LLL:EXT:pagetree/locallang_contextmenu.xml:cm.cutPage
164 spriteIcon = actions-edit-cut-release
165 displayCondition = isInCutMode = 1 && canBeCut != 0
166 callbackAction = disableCutMode
167 }
168
169 500 = ITEM
170 500 {
171 name = copy
172 label = LLL:EXT:pagetree/locallang_contextmenu.xml:cm.copyPage
173 spriteIcon = actions-edit-copy
174 displayCondition = isInCopyMode = 0 && canBeCopied != 0
175 callbackAction = enableCopyMode
176 }
177
178 600 = ITEM
179 600 {
180 name = copy
181 label = LLL:EXT:pagetree/locallang_contextmenu.xml:cm.copyPage
182 spriteIcon = actions-edit-copy-release
183 displayCondition = isInCopyMode = 1 && canBeCopied != 0
184 callbackAction = disableCopyMode
185 }
186
187 700 = ITEM
188 700 {
189 name = pasteInto
190 label = LLL:EXT:pagetree/locallang_contextmenu.xml:cm.pasteIntoPage
191 spriteIcon = actions-document-paste-after
192 displayCondition = getContextInfo|inCopyMode = 1 || getContextInfo|inCutMode = 1 && canBePastedInto != 0
193 callbackAction = pasteIntoNode
194 }
195
196 800 = ITEM
197 800 {
198 name = pasteAfter
199 label = LLL:EXT:pagetree/locallang_contextmenu.xml:cm.pasteAfterPage
200 spriteIcon = actions-document-paste-into
201 displayCondition = getContextInfo|inCopyMode = 1 || getContextInfo|inCutMode = 1 && canBePastedAfter != 0
202 callbackAction = pasteAfterNode
203 }
204
205 900 = DIVIDER
206
207 1000 = ITEM
208 1000 {
209 name = delete
210 label = LLL:EXT:pagetree/locallang_contextmenu.xml:cm.deletePage
211 spriteIcon = actions-edit-delete
212 displayCondition = canBeRemoved != 0
213 callbackAction = removeNode
214 }
215 }
216
217 1000 = SUBMENU
218 1000 {
219 label = LLL:EXT:pagetree/locallang_contextmenu.xml:cm.branchActions
220
221 100 = ITEM
222 100 {
223 name = mountAsTreeroot
224 label = LLL:EXT:pagetree/locallang_contextmenu.xml:cm.tempMountPoint
225 spriteIcon = actions-system-extension-documentation
226 displayCondition = canBeTemporaryMountPoint != 0
227 callbackAction = mountAsTreeRoot
228 }
229
230 200 = DIVIDER
231
232 300 = ITEM
233 300 {
234 name = expandBranch
235 label = LLL:EXT:pagetree/locallang_contextmenu.xml:cm.expandBranch
236 displayCondition =
237 callbackAction = expandBranch
238 }
239
240 400 = ITEM
241 400 {
242 name = collapseBranch
243 label = LLL:EXT:pagetree/locallang_contextmenu.xml:cm.collapseBranch
244 displayCondition =
245 callbackAction = collapseBranch
246 }
247
248 ' . $importExportActions . '
249 }
250 }
251 }
252 }
253 }
254 ';
255
256 ?>