[Typo3-dev] formatting fields in selectorbox

Peter Niederlag niederlag at ikd01.de
Mon Apr 5 11:09:55 CEST 2004


Hi Dominic,

Dominic Brander schrieb am  5.04.2004 um 10:55 Uhr CEST

> hi
> when I have a database relation in the BE where I select the records 
> from "global storage page" I would like to preprocess the data which
> is inserted. maybe an example helps to show you my problem:
> I would like to insert dates (from another table) into my record.
> since the date is formatted as an integer I do not see a real date but
> only a number.
> 
> any hints?

sure you can use a user_func in $TCA... '['config']['itemsProcFunc'] to
populate a select-box. Have a look at the "core_api" documentation
somewhere on this page for help on $TCA:
http://130.228.0.33/t3dl/src/

the page-template-selector might serve as a nice example to do that,
browse it's $TCA for example. There should be some help
available regarding this in modern-tut part III as well.

Cheers,
PeterN
-- 
Peter Niederlag
http://www.niekom.de * Typo3 und EDV-Dienstleistungen *
http://www.clown-goli.de * Clown-Comedy-Jonglage-Animation *






More information about the TYPO3-dev mailing list