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
// Adding soft reference keys in tt_content configuration
6
// htmlArea RTE soft reference keys are inserted in front so that their tokens are inserted first
7
$GLOBALS
[
'TCA'
][
'tt_content'
][
'columns'
][
'header'
][
'config'
][
'softref'
] =
'typolink_tag'
. (
$GLOBALS
[
'TCA'
][
'tt_content'
][
'columns'
][
'header'
][
'config'
][
'softref'
] ?
','
.
$GLOBALS
[
'TCA'
][
'tt_content'
][
'columns'
][
'header'
][
'config'
][
'softref'
] :
''
);
8
$tempTables
= array(
'pages'
,
'tt_content'
);
9
foreach
(
$tempTables
as $table) {
10
foreach
(
$GLOBALS
[
'TCA'
][$table][
'columns'
] as $column => $config) {
11
if
($config[
'config'
][
'softref'
]) {
12
if
(\
TYPO3
\CMS\Core\Utility\GeneralUtility::inList($config[
'config'
][
'softref'
],
'images'
)) {
13
// Remove obsolete soft reference key 'images'
14
// The references from RTE content to the original images are handled with the key 'rtehtmlarea_images'.
15
$softReferences =
'rtehtmlarea_images,'
.
\TYPO3\CMS\Core\Utility\GeneralUtility::rmFromList
(
'images'
, $config[
'config'
][
'softref'
]);
16
$GLOBALS
[
'TCA'
][$table][
'columns'
][$column][
'config'
][
'softref'
] = $softReferences;
17
}
18
}
else
{
19
if
($config[
'config'
][
'type'
] ==
'text'
) {
20
$GLOBALS
[
'TCA'
][$table][
'columns'
][$column][
'config'
][
'softref'
] =
'rtehtmlarea_images,typolink_tag'
;
21
}
22
}
23
}
24
}
25
unset(
$tempTables
);
TYPO3
$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\GeneralUtility\rmFromList
static rmFromList($element, $list)
Definition:
GeneralUtility.php:733
$tempTables
$tempTables
Definition:
ext_tables.php:8
typo3
sysext
rtehtmlarea
hooks
softref
ext_tables.php
Generated on Wed Aug 7 2019 09:52:17 for TYPO3 CMS by
1.8.13