######## TCA onchnage ############

TCA.php

‘tipo’ => array (

‘exclude’ => 0,

‘label’ => ‘LLL:EXT:project/locallang_db.xml:tx_project_data.tipo’,

‘config’ => array (

‘type’ => ‘select’,

‘items’ => array (

array(‘LLL:EXT:project/locallang_db.xml:tx_project_data.tipo.I.0’, ‘0’),

array(‘LLL:EXT:project/locallang_db.xml:tx_project_data.tipo.I.1’, ‘1’),

),

‘size’ => 1,

‘maxitems’ => 1,

),

‘displayCond’ => ‘FIELD:subcategory:=:5’,

),

####### ext_table.php #######

$TCA[‘tx_project_data’] = array (

‘ctrl’ => array (

‘title’     => ‘LLL:EXT:project/locallang_db.xml:tx_project_data’,

‘label’     => ‘maintitle’,

‘tstamp’    => ‘tstamp’,

‘crdate’    => ‘crdate’,

‘cruser_id’ => ‘cruser_id’,

‘languageField’            => ‘sys_language_uid’,

‘transOrigPointerField’    => ‘l10n_parent’,

‘transOrigDiffSourceField’ => ‘l10n_diffsource’,

‘sortby’ => ‘sorting’,

‘delete’ => ‘deleted’,

‘enablecolumns’ => array (

‘disabled’ => ‘hidden’,

),

‘requestUpdate’ => ‘subcategory’,

‘dynamicConfigFile’ => t3lib_extMgm::extPath($_EXTKEY).’tca.php’,

‘iconfile’          => t3lib_extMgm::extRelPath($_EXTKEY).’icon_tx_project_data.gif’,

),

);

Advertisements