[TYPO3-dev] TCA ctrl label with dates

Steffen Kamper steffen at dislabs.de
Mon May 14 11:42:25 CEST 2007


"Christoph Koehler" <christoph.koehler at gmail.com> schrieb im Newsbeitrag 
news:mailman.1.1179011277.2298.typo3-dev at lists.netfielders.de...
Hello all,

In my extension's ext_tables.php I have the following code to configure
event records:

$TCA["tx_paradigm_events"] = array (
"ctrl" => array (
'title'     => 'LLL:EXT:paradigm/locallang_db.xml:tx_paradigm_events',
'label'     => 'date',
'tstamp'    => 'tstamp',
'crdate'    => 'crdate',
'cruser_id' => 'cruser_id',
'default_sortby' => "ORDER BY date",
'delete' => 'deleted',
'enablecolumns' => array (
'disabled' => 'hidden',
),
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
'iconfile'          =>
t3lib_extMgm::extRelPath($_EXTKEY).'icon_tx_paradigm_events.gif',
),
"feInterface" => array (
"fe_admin_fieldList" => "hidden, date, location, speaker",
)
);

Note the ctrl -> label -> date part. It shows the date alright, just as a
timestamp. It used to convert that to a real date, but now it doesn't
anymore. Any idea how I can make it do that again?

Thanks!

Christoph

Hi,

is date original field in the table or is it foreign table ? With foreign it 
doesn't work, there you have to use label_userFunc instead.

btw - the field naming of date is not good - it's a keyword in SQL.
vg  Steffen 






More information about the TYPO3-dev mailing list