-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_tables.php
executable file
·39 lines (36 loc) · 1.24 KB
/
ext_tables.php
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
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
$tempColumns = array(
'tx_bnstatictemplates_path' => array(
'exclude' => 0,
'label' => 'LLL:EXT:bn_statictemplates/locallang_db.xml:sys_template.tx_bnstatictemplates_path',
'displayCond' => 'FIELD:root:REQ:true',
'config' => array(
'type' => 'input',
'size' => '30',
'max' => '255',
'eval' => 'trim',
'wizards' => array(
'_PADDING' => 2,
'link' => array(
'type' => 'popup',
'title' => 'Link',
'icon' => 'link_popup.gif',
'script' => 'browse_links.php?mode=wizard',
'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1',
'params' => array(
'blindLinkOptions' => 'mail,page,spec,url,file'
)
)
)
)
),
);
t3lib_div::loadTCA('sys_template');
t3lib_extMgm::addTCAcolumns('sys_template',$tempColumns,1);
t3lib_extMgm::addToAllTCAtypes('sys_template','tx_bnstatictemplates_path;;;;1-1-1', '', 'before:include_static_file');
require_once(t3lib_extMgm::extPath('bn_statictemplates') . 'class.tx_bnstatictemplates_lib.php');
$TCA['sys_template']['columns']['include_static_file']['config']['itemsProcFunc'] = 'tx_bnstatictemplates_lib->addStaticTemplates';
?>