forked from sorenmalling/vimeo_connector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_tables.php
90 lines (82 loc) · 4.08 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'AllCategories', 'Vimeo - All Categories');
Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Category', 'Vimeo - Category');
Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Archive', 'Vimeo - Archive');
Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Play', 'Vimeo - Player');
Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'TeaserBox', 'Vimeo - TeaserBox');
t3lib_extMgm::allowTableOnStandardPages('tx_vimeoconnector_domain_model_video');
$TCA['tx_vimeoconnector_domain_model_video'] = array(
'ctrl' => array(
'title' => 'LLL:EXT:vimeo_connector/Resources/Private/Language/locallang.xml:domain.model.video',
'label' => 'title',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'dividers2tabs' => TRUE,
'delete' => 'deleted',
'default_sortby' => 'ORDER BY title',
'enablecolumns' => array(
'disabled' => 'hidden',
'starttime' => 'starttime',
'endtime' => 'endtime',
),
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Video.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_vimeoconnector_domain_model_video.png',
'searchFields' => 'title, description'
),
);
t3lib_extMgm::allowTableOnStandardPages('tx_vimeoconnector_domain_model_category');
$TCA['tx_vimeoconnector_domain_model_category'] = array(
'ctrl' => array(
'title' => 'LLL:EXT:vimeo_connector/Resources/Private/Language/locallang.xml:domain.model.category',
'label' => 'title',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'dividers2tabs' => TRUE,
'delete' => 'deleted',
'default_sortby' => 'ORDER BY title',
'enablecolumns' => array(
'disabled' => 'hidden',
'starttime' => 'starttime',
'endtime' => 'endtime',
),
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Category.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_vimeoconnector_domain_model_video.png'
),
);
t3lib_extMgm::allowTableOnStandardPages('tx_vimeoconnector_domain_model_type');
$TCA['tx_vimeoconnector_domain_model_type'] = array(
'ctrl' => array(
'title' => 'LLL:EXT:vimeo_connector/Resources/Private/Language/locallang.xml:domain.model.type',
'label' => 'title',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'dividers2tabs' => TRUE,
'delete' => 'deleted',
'default_sortby' => 'ORDER BY title',
'enablecolumns' => array(
'disabled' => 'hidden',
'starttime' => 'starttime',
'endtime' => 'endtime',
),
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Type.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_vimeoconnector_domain_model_video.png'
),
);
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Vimeo Connector');
$extensionName = t3lib_div::underscoredToUpperCamelCase($_EXTKEY);
$pluginSignature = strtolower($extensionName) . '_allcategories';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][$pluginSignature] = 'layout,select_key,recursive';
$pluginSignature = strtolower($extensionName) . '_category';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][$pluginSignature] = 'layout,select_key,recursive';
$pluginSignature = strtolower($extensionName) . '_archive';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][$pluginSignature] = 'layout,select_key,recursive';
$pluginSignature = strtolower($extensionName) . '_play';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][$pluginSignature] = 'layout,select_key,recursive';
$pluginSignature = strtolower($extensionName) . '_teaserbox';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][$pluginSignature] = 'layout,select_key,recursive';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
t3lib_extMgm::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/Flexform_TeaserBox.xml');
?>