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
// Add static template for Click-enlarge rendering
6
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile
($_EXTKEY,
'static/clickenlarge/'
,
'Clickenlarge Rendering'
);
7
// Add configuration of soft references on image tags in RTE content
8
require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) .
'hooks/softref/ext_tables.php'
;
9
10
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages
(
'tx_rtehtmlarea_acronym'
);
11
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr
(
'tx_rtehtmlarea_acronym'
,
'EXT:'
. $_EXTKEY .
'/locallang_csh_abbreviation.xlf'
);
12
// Add contextual help files
13
$htmlAreaRteContextHelpFiles
= array(
14
'General'
=>
'EXT:'
. $_EXTKEY .
'/locallang_csh.xlf'
,
15
'Acronym'
=>
'EXT:'
. $_EXTKEY .
'/extensions/Acronym/locallang_csh.xlf'
,
16
'EditElement'
=>
'EXT:'
. $_EXTKEY .
'/extensions/EditElement/locallang_csh.xlf'
,
17
'Language'
=>
'EXT:'
. $_EXTKEY .
'/extensions/Language/locallang_csh.xlf'
,
18
'MicrodataSchema'
=>
'EXT:'
. $_EXTKEY .
'/extensions/MicrodataSchema/locallang_csh.xlf'
,
19
'PlainText'
=>
'EXT:'
. $_EXTKEY .
'/extensions/PlainText/locallang_csh.xlf'
,
20
'RemoveFormat'
=>
'EXT:'
. $_EXTKEY .
'/extensions/RemoveFormat/locallang_csh.xlf'
,
21
'TableOperations'
=>
'EXT:'
. $_EXTKEY .
'/extensions/TableOperations/locallang_csh.xlf'
22
);
23
foreach
(
$htmlAreaRteContextHelpFiles
as $key => $file) {
24
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr
(
'xEXT_'
. $_EXTKEY .
'_'
. $key, $file);
25
}
26
unset(
$htmlAreaRteContextHelpFiles
);
27
// Extend TYPO3 User Settings Configuration
28
if
(
TYPO3_MODE
===
'BE'
&& \
TYPO3
\CMS\Core\Utility\ExtensionManagementUtility::isLoaded(
'setup'
) && is_array(
$GLOBALS
[
'TYPO3_USER_SETTINGS'
])) {
29
$GLOBALS
[
'TYPO3_USER_SETTINGS'
][
'columns'
] = array_merge(
$GLOBALS
[
'TYPO3_USER_SETTINGS'
][
'columns'
], array(
30
'rteWidth'
=> array(
31
'type'
=>
'text'
,
32
'label'
=>
'LLL:EXT:rtehtmlarea/locallang.xlf:rteWidth'
,
33
'csh'
=>
'xEXT_rtehtmlarea_General:rteWidth'
34
),
35
'rteHeight'
=> array(
36
'type'
=>
'text'
,
37
'label'
=>
'LLL:EXT:rtehtmlarea/locallang.xlf:rteHeight'
,
38
'csh'
=>
'xEXT_rtehtmlarea_General:rteHeight'
39
),
40
'rteResize'
=> array(
41
'type'
=>
'check'
,
42
'label'
=>
'LLL:EXT:rtehtmlarea/locallang.xlf:rteResize'
,
43
'csh'
=>
'xEXT_rtehtmlarea_General:rteResize'
44
),
45
'rteMaxHeight'
=> array(
46
'type'
=>
'text'
,
47
'label'
=>
'LLL:EXT:rtehtmlarea/locallang.xlf:rteMaxHeight'
,
48
'csh'
=>
'xEXT_rtehtmlarea_General:rteMaxHeight'
49
),
50
'rteCleanPasteBehaviour'
=> array(
51
'type'
=>
'select'
,
52
'label'
=>
'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xlf:rteCleanPasteBehaviour'
,
53
'items'
=> array(
54
'plainText'
=>
'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xlf:plainText'
,
55
'pasteStructure'
=>
'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xlf:pasteStructure'
,
56
'pasteFormat'
=>
'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xlf:pasteFormat'
57
),
58
'csh'
=>
'xEXT_rtehtmlarea_PlainText:behaviour'
59
)
60
));
61
$GLOBALS
[
'TYPO3_USER_SETTINGS'
][
'showitem'
] .=
',--div--;LLL:EXT:rtehtmlarea/locallang.xlf:rteSettings,rteWidth,rteHeight,rteResize,rteMaxHeight,rteCleanPasteBehaviour'
;
62
}
63
if
(
TYPO3_MODE
===
'BE'
) {
64
// Register RTE element browser wizard
65
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath
(
66
'rtehtmlarea_wizard_element_browser'
,
67
\
TYPO3
\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) .
'mod3/'
68
);
69
70
// Register RTE wizard_select_image
71
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath
(
72
'rtehtmlarea_wizard_select_image'
,
73
\
TYPO3
\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) .
'mod4/'
74
);
75
76
// Register RTE wizard_user
77
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath
(
78
'rtehtmlarea_wizard_user'
,
79
\
TYPO3
\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) .
'mod5/'
80
);
81
82
// Register RTE wizard_user
83
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath
(
84
'rtehtmlarea_wizard_parse_html'
,
85
\
TYPO3
\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) .
'mod6/'
86
);
87
}
TYPO3
TYPO3\CMS\Core\Utility\ExtensionManagementUtility\addStaticFile
static addStaticFile($extKey, $path, $title)
Definition:
ExtensionManagementUtility.php:1415
TYPO3_MODE
const TYPO3_MODE
Definition:
init.php:40
TYPO3\CMS\Core\Utility\ExtensionManagementUtility\allowTableOnStandardPages
static allowTableOnStandardPages($table)
Definition:
ExtensionManagementUtility.php:770
$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
$htmlAreaRteContextHelpFiles
$htmlAreaRteContextHelpFiles
Definition:
ext_tables.php:13
TYPO3\CMS\Core\Utility\ExtensionManagementUtility\addLLrefForTCAdescr
static addLLrefForTCAdescr($tca_descr_key, $file_ref)
Definition:
ExtensionManagementUtility.php:1049
typo3
sysext
rtehtmlarea
ext_tables.php
Generated on Wed Aug 7 2019 09:52:17 for TYPO3 CMS by
1.8.13