forked from bobosch/ods_redirects
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_tables.php
More file actions
32 lines (29 loc) · 1.09 KB
/
ext_tables.php
File metadata and controls
32 lines (29 loc) · 1.09 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
<?php
if (!defined ('TYPO3_MODE')) die ('Access denied.');
// Global redirects
t3lib_extMgm::addToInsertRecords('tx_odsredirects_redirects');
$TCA['tx_odsredirects_redirects'] = array(
'ctrl' => array (
'title' => 'LLL:EXT:ods_redirects/locallang_db.xml:tx_odsredirects_redirects',
'label' => 'url',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'default_sortby' => 'ORDER BY url',
'rootLevel' => -1,
'enablecolumns' => array(
'disabled' => 'hidden',
),
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'icon_tx_odsredirects_redirects.png',
),
);
// Plugin redirects
t3lib_div::loadTCA('tt_content');
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY.'_pi1']='header,header_position,header_link,header_layout,date,spaceBefore,spaceAfter,section_frame,layout,select_key,recursive';
t3lib_extMgm::addPlugin(array(
'LLL:EXT:ods_redirects/locallang_db.xml:tt_content.list_type_pi1',
$_EXTKEY . '_pi1',
t3lib_extMgm::extRelPath($_EXTKEY) . 'ext_icon.gif'
),'list_type');
?>