tx_sfeventmgt_domain_model_event.php 2.53 KB
Newer Older
1
2
3
<?php

$GLOBALS['TCA']['tx_sfeventmgt_domain_model_event']['columns']['skills'] = [
4
    'label' => 'LLL:EXT:t3org_layout/Resources/Private/Language/locallang.xlf:tx_t3org_layout.events.skills',
5
    'config' => [
6
        'type' => 'flex',
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
        'ds' => [
            'default' => '
                        <T3DataStructure>
                            <sheets>
                                <sSection>
                                    <ROOT>
                                        <TCEforms>
                                            <sheetTitle>section</sheetTitle>
                                        </TCEforms>
                                        <type>array</type>
                                        <el>
                                            <skills>
                                                <title>Skills</title>
                                                <type>array</type>
                                                <section>1</section>
                                                <el>
                                                    <skill>
                                                        <type>array</type>
                                                        <title>Skill</title>
                                                        <el>
                                                            <title>
                                                                <TCEforms>
                                                                    <label>Title</label>
                                                                    <config>
                                                                        <type>input</type>
                                                                    </config>
                                                                </TCEforms>
                                                            </title>
                                                        </el>
                                                    </skill>
                                                </el>
                                            </skills>
                                        </el>
                                    </ROOT>
                                </sSection>
                            </sheets>
                        </T3DataStructure>
                    ',
        ],
    ],
];

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes(
    'tx_sfeventmgt_domain_model_event',
    'skills',
    '',
    'after:program'
);