[TYPO3-dev] TCA ctrl label with dates

Ernesto Baschny [cron IT] ernst at cron-it.de
Mon May 14 16:12:05 CEST 2007


Christoph Koehler wrote: on 13.05.2007 01:07:

> 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?

There are some bugs here which were fixed already in trunk, so that
should be solved in the next 4.1.x release.

Cheers,
Ernesto




More information about the TYPO3-dev mailing list