-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_tables.php
executable file
·70 lines (62 loc) · 2.65 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
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
$_EXTKEY,
'Pmfaq',
'FAQ'
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'FAQ');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_pmfaq_domain_model_eintrag', 'EXT:pmfaq/Resources/Private/Language/locallang_csh_tx_pmfaq_domain_model_eintrag.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_pmfaq_domain_model_eintrag');
$GLOBALS['TCA']['tx_pmfaq_domain_model_eintrag'] = array(
'ctrl' => array(
'title' => 'LLL:EXT:pmfaq/Resources/Private/Language/locallang_db.xlf:tx_pmfaq_domain_model_eintrag',
'label' => 'frage',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'dividers2tabs' => TRUE,
'versioningWS' => 2,
'versioning_followPages' => TRUE,
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l10n_parent',
'transOrigDiffSourceField' => 'l10n_diffsource',
'delete' => 'deleted',
'enablecolumns' => array(
'disabled' => 'hidden',
'starttime' => 'starttime',
'endtime' => 'endtime',
),
'searchFields' => 'frage,antwort,kategorien,',
'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TCA/Eintrag.php',
'iconfile' => 'EXT:pmfaq/Resources/Public/Icons/tx_pmfaq_domain_model_eintrag.gif'
),
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_pmfaq_domain_model_kategorie', 'EXT:pmfaq/Resources/Private/Language/locallang_csh_tx_pmfaq_domain_model_kategorie.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_pmfaq_domain_model_kategorie');
$GLOBALS['TCA']['tx_pmfaq_domain_model_kategorie'] = array(
'ctrl' => array(
'title' => 'LLL:EXT:pmfaq/Resources/Private/Language/locallang_db.xlf:tx_pmfaq_domain_model_kategorie',
'label' => 'name',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'dividers2tabs' => TRUE,
'versioningWS' => 2,
'versioning_followPages' => TRUE,
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l10n_parent',
'transOrigDiffSourceField' => 'l10n_diffsource',
'delete' => 'deleted',
'enablecolumns' => array(
'disabled' => 'hidden',
'starttime' => 'starttime',
'endtime' => 'endtime',
),
'searchFields' => 'name,',
'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TCA/Kategorie.php',
'iconfile' => 'EXT:pmfaq/Resources/Public/Icons/tx_pmfaq_domain_model_kategorie.gif'
),
);