This repository has been archived by the owner on Nov 19, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_tables.php
executable file
·61 lines (44 loc) · 1.89 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
if (!defined ('TYPO3_MODE')) die ('Access denied.');
///////////////////////////////////////////////////////////
//
// INDEX
// Plugin general configuration
// Plugin 1 configuration
// Add pagetree icons
///////////////////////////////////////////////////////////
//
// Plugin general configuration
t3lib_div::loadTCA('tt_content');
// Plugin general configuration
///////////////////////////////////////////////////////////
//
// Plugin 1 configuration
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY.'_pi1'] =
'layout,select_key,pages,recursive';
// Remove the default tt_content fields layout, select_key, pages and recursive.
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY.'_pi1'] =
'pi_flexform';
// Display the field pi_flexform
t3lib_extMgm::addPiFlexFormValue($_EXTKEY.'_pi1', 'FILE:EXT:'.$_EXTKEY.'/pi1/flexform.xml');
// Register our file with the flexform structure
t3lib_extMgm::addPlugin(
array(
'LLL:EXT:org_installer/pi1/locallang.xml:tt_content.list_type_pi1',
$_EXTKEY .'_pi1',
'EXT:org_installer/ext_icons/ext_icon_blink.gif'
),
'list_type'
);
// Add the Flexform to the Plugin List
// Plugin 1 configuration
////////////////////////////////////////////////////////////////////////////
//
// Add pagetree icons
$TCA['pages']['columns']['module']['config']['items'][] =
array('Org: Installer', 'org_inst', t3lib_extMgm::extRelPath($_EXTKEY).'ext_icons/ext_icon_blink.gif');
//$ICON_TYPES['org_inst'] =
// array('icon' => t3lib_extMgm::extRelPath($_EXTKEY).'ext_icons/ext_icon_blink.gif');
t3lib_SpriteManager::addTcaTypeIcon('pages', 'contains-org_inst', '../typo3conf/ext/org_installer/ext_icons/ext_icon_blink.gif');
// Add pagetree icons
?>