ext_tables.php 2.85 KB
Newer Older
Thomas Löffler's avatar
Thomas Löffler committed
1
2
<?php
if (!defined('TYPO3_MODE')) {
Thomas Löffler's avatar
Thomas Löffler committed
3
    die ('Access denied.');
Thomas Löffler's avatar
Thomas Löffler committed
4
5
6
}

Tx_Extbase_Utility_Extension::registerPlugin(
Thomas Löffler's avatar
Thomas Löffler committed
7
8
9
    $_EXTKEY,
    'List',
    'Association member list'
Thomas Löffler's avatar
Thomas Löffler committed
10
11
12
13
);

t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'TYPO3 Membership');

Thomas Löffler's avatar
Thomas Löffler committed
14
15
t3lib_extMgm::addLLrefForTCAdescr('tx_t3omembership_domain_model_member',
    'EXT:t3o_membership/Resources/Private/Language/locallang_csh_tx_t3omembership_domain_model_member.xml');
Thomas Löffler's avatar
Thomas Löffler committed
16
17
t3lib_extMgm::allowTableOnStandardPages('tx_t3omembership_domain_model_member');
$TCA['tx_t3omembership_domain_model_member'] = array(
Thomas Löffler's avatar
Thomas Löffler committed
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
    'ctrl' => array(
        'title' => 'LLL:EXT:t3o_membership/Resources/Private/Language/locallang_db.xml:tx_t3omembership_domain_model_member',
        'label' => 'name',
        'tstamp' => 'tstamp',
        'crdate' => 'crdate',
        'cruser_id' => 'cruser_id',
        'dividers2tabs' => true,
        'origUid' => 't3_origuid',
        'languageField' => 'sys_language_uid',
        'transOrigPointerField' => 'l10n_parent',
        'transOrigDiffSourceField' => 'l10n_diffsource',
        'delete' => 'deleted',
        'enablecolumns' => array(
            'disabled' => 'hidden',
            'starttime' => 'starttime',
            'endtime' => 'endtime',
        ),
        'searchFields' => 'name,external_id,end_date,address,zip,city,country,email,url,membership,',
        'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Member.php',
        'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_t3omembership_domain_model_member.gif'
    ),
Thomas Löffler's avatar
Thomas Löffler committed
39
40
);

Thomas Löffler's avatar
Thomas Löffler committed
41
42
t3lib_extMgm::addLLrefForTCAdescr('tx_t3omembership_domain_model_membership',
    'EXT:t3o_membership/Resources/Private/Language/locallang_csh_tx_t3omembership_domain_model_membership.xml');
Thomas Löffler's avatar
Thomas Löffler committed
43
44
t3lib_extMgm::allowTableOnStandardPages('tx_t3omembership_domain_model_membership');
$TCA['tx_t3omembership_domain_model_membership'] = array(
Thomas Löffler's avatar
Thomas Löffler committed
45
46
47
48
49
50
51
    'ctrl' => array(
        'title' => 'LLL:EXT:t3o_membership/Resources/Private/Language/locallang_db.xml:tx_t3omembership_domain_model_membership',
        'label' => 'name',
        'tstamp' => 'tstamp',
        'crdate' => 'crdate',
        'cruser_id' => 'cruser_id',
        'dividers2tabs' => true,
52
        'sortby' => 'sorting',
Thomas Löffler's avatar
Thomas Löffler committed
53
54
55
56
57
58
59
60
61
62
63
64
65
66
        'origUid' => 't3_origuid',
        'languageField' => 'sys_language_uid',
        'transOrigPointerField' => 'l10n_parent',
        'transOrigDiffSourceField' => 'l10n_diffsource',
        'delete' => 'deleted',
        'enablecolumns' => array(
            'disabled' => 'hidden',
            'starttime' => 'starttime',
            'endtime' => 'endtime',
        ),
        'searchFields' => 'name,logo,',
        'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Membership.php',
        'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_t3omembership_domain_model_membership.gif'
    ),
Thomas Löffler's avatar
Thomas Löffler committed
67
);