[TYPO3] Formatting dates in label of tca.php
Xavier Perseguers [typo3]
pub at perseguers.ch
Thu Nov 22 23:02:34 CET 2007
Hello,
I found the answer there: http://blog.beimax.de/2007/08/17/typo3-eigene-labels-mit-label_userfunc/
Xavier
----- Original Message -----
From: "Xavier Perseguers [typo3]" <pub at perseguers.ch>
To: typo3-english at lists.netfielders.de
Sent: Wednesday, November 21, 2007 11:21:10 PM (GMT+0100) Europe/Berlin
Subject: [TYPO3] Formatting dates in label of tca.php
Hello,
I have another problem to define something useful as the label of my db table rows in the backend.
I defined a table for an own extension where one field is of type "datetime". I would like to show it, along with the column title, in the backend, in "list" mode.
What I put in tca.php:
$TCA['tx_myextension']['ctrl']['label'] = 'date';
$TCA['tx_myextension']['ctrl']['label_alt'] = 'city,title';
$TCA['tx_myextension']['ctrl']['label_alt_force'] = '1';
which shows me the date as a timestamp instead of a standard "d.m.Y H:i" format.
I found there is a label_user_func option to use a user function to define the label but I'm not sure it's already implemented.
Any idea on how I may get it formatted correctly?
If I chose manually to show (in BE), e.g., the crdate field, then it formats itself correctly, what should I do?
Thanks
Xavier
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
More information about the TYPO3-english
mailing list