Repository navigation
Expand file tree
/
Copy pathext_tables.php
More file actions
55 lines (50 loc) · 1.5 KB
/
Copy pathext_tables.php
File metadata and controls
55 lines (50 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
if (!defined ('TYPO3_MODE')) die ('Access denied.');
$conf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['wec_errorpage']);
if($conf['useTypolink']) {
$blindLinkOptions = "folder,mail";
} else {
$blindLinkOptions = "folder,mail,page,url";
}
$wizards = array(
"_PADDING" => 2,
"link" => array(
"type" => "popup",
"title" => "Link",
"icon" => "link_popup.gif",
"script" => "browse_links.php?mode=wizard",
"params" => array(
"blindLinkOptions" => $blindLinkOptions
),
"JSopenParams" => "height=300,width=500,status=0,menubar=0,scrollbars=1"
)
);
$tempColumns = array();
$tempColumns['tx_wecerrorpage_404page'] = array(
"exclude" => 1,
"label" => "LLL:EXT:wec_errorpage/locallang_db.xml:sys_domain.tx_wecerrorpage_404page",
"config" => Array (
"type" => "input",
"size" => "15",
"max" => "255",
"eval" => "trim",
"wizards" => $wizards
)
);
if (t3lib_div::int_from_ver(TYPO3_version) >= 4002000) {
$tempColumns["tx_wecerrorpage_503page"] = array(
"exclude" => 1,
"label" => "LLL:EXT:wec_errorpage/locallang_db.xml:sys_domain.tx_wecerrorpage_503page",
"config" => Array (
"type" => "input",
"size" => "15",
"max" => "255",
"eval" => "trim",
"wizards" => $wizards
)
);
}
t3lib_div::loadTCA("sys_domain");
t3lib_extMgm::addTCAcolumns("sys_domain",$tempColumns,1);
t3lib_extMgm::addToAllTCAtypes("sys_domain","tx_wecerrorpage_404page;;;;1-1-1, tx_wecerrorpage_503page");
?>