-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_tables.php
98 lines (90 loc) · 3.59 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
91
92
93
94
95
96
97
98
<?php
if (!defined ('TYPO3_MODE')) die ('Access denied.');
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'HNM Blog Setup');
Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY,'Display','LLL:EXT:hnm_blog/Resources/Private/Language/locallang.xml:plugin.display.name');
t3lib_extMgm::allowTableOnStandardPages('tx_hnmblog_domain_model_blog');
$TCA['tx_hnmblog_domain_model_blog'] = array (
'ctrl' => array (
'title' => 'LLL:EXT:hnm_blog/Resources/Private/Language/locallang.xml:domain.model.blog',
'label' => 'title',
'label_alt' => 'uid',
'label_alt_force' => TRUE,
'dividers2tabs' => TRUE,
'tstamp' => 'tstamp',
'crdate' => 'crdate',
// record type für single table inheritance
// 'type' => 'record_type',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
'transOrigDiffSourceField' => 'l18n_diffsource',
'delete' => 'deleted',
'enablecolumns' => array(
'disabled' => 'hidden'
),
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Blog.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'ext_icon.gif'
)
);
t3lib_extMgm::allowTableOnStandardPages('tx_hnmblog_domain_model_post');
$TCA['tx_hnmblog_domain_model_post'] = array (
'ctrl' => array (
'title' => 'LLL:EXT:hnm_blog/Resources/Private/Language/locallang.xml:domain.model.post',
'label' => 'title',
'label_alt' => 'uid',
'label_alt_force' => TRUE,
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'dividers2tabs' => TRUE,
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
'transOrigDiffSourceField' => 'l18n_diffsource',
'delete' => 'deleted',
'enablecolumns' => array(
'disabled' => 'hidden'
),
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Post.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'ext_icon.gif'
)
);
t3lib_extMgm::allowTableOnStandardPages('tx_hnmblog_domain_model_comment');
$TCA['tx_hnmblog_domain_model_comment'] = array (
'ctrl' => array (
'title' => 'LLL:EXT:hnm_blog/Resources/Private/Language/locallang.xml:domain.model.comment',
'label' => 'bodytext',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'dividers2tabs' => TRUE,
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
'transOrigDiffSourceField' => 'l18n_diffsource',
'delete' => 'deleted',
'enablecolumns' => array(
'disabled' => 'hidden'
),
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Comment.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'ext_icon.gif'
)
);
t3lib_extMgm::allowTableOnStandardPages('tx_hnmblog_domain_model_tag');
$TCA['tx_hnmblog_domain_model_tag'] = array (
'ctrl' => array (
'title' => 'LLL:EXT:hnm_blog/Resources/Private/Language/locallang.xml:domain.model.tag',
'label' => 'name',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'dividers2tabs' => TRUE,
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
'transOrigDiffSourceField' => 'l18n_diffsource',
'delete' => 'deleted',
'enablecolumns' => array(
'disabled' => 'hidden'
),
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Tag.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'ext_icon.gif'
)
);
$pluginSignature = strtolower(t3lib_div::underscoredToUpperCamelCase($_EXTKEY)) . '_display';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
t3lib_extMgm::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/flexform_display.xml');
?>