TYPO3 CMS
TYPO3_6-2
Main Page
Related Pages
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
+
Files
File List
+
File Members
+
All
$
(
_
a
c
d
e
f
h
i
l
o
p
r
s
t
u
x
+
Functions
_
a
c
d
e
f
i
l
o
p
r
s
u
x
+
Variables
$
(
_
a
d
e
h
i
p
r
s
t
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
ext_tables.php
Go to the documentation of this file.
1
<?php
2
if
(!defined(
'TYPO3_MODE'
)) {
3
die
(
'Access denied.'
);
4
}
5
if
(
TYPO3_MODE
===
'BE'
) {
6
$GLOBALS
[
'TBE_MODULES_EXT'
][
'xMOD_alt_clickmenu'
][
'extendCMclasses'
][] = array(
7
'name'
=>
'TYPO3\\CMS\\Impexp\\Clickmenu'
,
8
);
9
$GLOBALS
[
'TYPO3_CONF_VARS'
][
'SC_OPTIONS'
][
'taskcenter'
][
'impexp'
][
'tx_impexp_task'
] = array(
10
'title'
=>
'LLL:EXT:impexp/locallang_csh.xlf:.alttitle'
,
11
'description'
=>
'LLL:EXT:impexp/locallang_csh.xlf:.description'
,
12
'icon'
=>
'EXT:impexp/export.gif'
13
);
14
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr
(
'xMOD_tx_impexp'
,
'EXT:impexp/locallang_csh.xlf'
);
15
// CSH labels for TYPO3 4.5 and greater. These labels override the ones set above, while still falling back to the original labels if no translation is available.
16
$GLOBALS
[
'TYPO3_CONF_VARS'
][
'SYS'
][
'locallangXMLOverride'
][
'EXT:impexp/locallang_csh.xml'
][] =
'EXT:impexp/locallang_csh_45.xlf'
;
17
// Special context menu actions for the import/export module
18
$importExportActions =
'
19
9000 = DIVIDER
20
21
9100 = ITEM
22
9100 {
23
name = exportT3d
24
label = LLL:EXT:impexp/app/locallang.xlf:export
25
spriteIcon = actions-document-export-t3d
26
callbackAction = exportT3d
27
}
28
29
9200 = ITEM
30
9200 {
31
name = importT3d
32
label = LLL:EXT:impexp/app/locallang.xlf:import
33
spriteIcon = actions-document-import-t3d
34
callbackAction = importT3d
35
}
36
'
;
37
// Context menu user default configuration
38
$GLOBALS
[
'TYPO3_CONF_VARS'
][
'BE'
][
'defaultUserTSconfig'
] .=
'
39
options.contextMenu.table {
40
virtual_root.items {
41
'
. $importExportActions .
'
42
}
43
44
pages_root.items {
45
'
. $importExportActions .
'
46
}
47
48
pages.items.1000 {
49
'
. $importExportActions .
'
50
}
51
}
52
'
;
53
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath
(
'xMOD_tximpexp'
, \
TYPO3
\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) .
'app/'
);
54
55
// Hook into page tree context menu to remove "import" items again if user is not admin or module
56
// is not enabled for this user / group
57
$GLOBALS
[
'TYPO3_CONF_VARS'
][
'SC_OPTIONS'
][
'backend'
][
'contextMenu'
][
'disableItems'
][]
58
=
'TYPO3\\CMS\\Impexp\\Hook\\ContextMenuDisableItemsHook->disableImportForNonAdmin'
;
59
}
TYPO3
TYPO3_MODE
const TYPO3_MODE
Definition:
init.php:40
$GLOBALS
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:context_help/locallang_csh_pages.xlf'][]
Definition:
ext_tables.php:15
die
die
Definition:
index.php:6
TYPO3\CMS\Core\Utility\ExtensionManagementUtility\addModulePath
static addModulePath($name, $path)
Definition:
ExtensionManagementUtility.php:955
TYPO3\CMS\Core\Utility\ExtensionManagementUtility\addLLrefForTCAdescr
static addLLrefForTCAdescr($tca_descr_key, $file_ref)
Definition:
ExtensionManagementUtility.php:1049
typo3
sysext
impexp
ext_tables.php
Generated on Wed Aug 7 2019 09:52:17 for TYPO3 CMS by
1.8.13