[TYPO3-english] Custom labels for certain column in typo3 list view
Christian Weiske
christian.weiske at netresearch.de
Fri May 20 14:14:44 CEST 2011
Hi Christian,
> I'm trying to render some columns of some tables in a special way in
> the typo3 web list view. For example, column "foo" in table tx_bar
> is an integer in mysql but needs to be displayed as hexadecimal value
> in the list view.
>
> Now those labels are rendered in t3lib_befunc::getProcessedValue()
> which offers a preProcessValue and a postProcessValue hook, but
> neither of them pass the name and the table of the column as
> parameter - which makes it impossible for me to find out which column
> I am at, and if I need to format the labels.
I solved the problem by just adding a new tx_... config value in TCA
and checking in my post process hook if that config is set.
--
Viele Grüße
Dipl.-Inf. Christian Weiske
Senior Developer
Netresearch GmbH & Co. KG
-----------------------------------------------
Nonnenstraße 11d - 04229 Leipzig
T: +49 341 47842 16
F: +49 341 47842 29
-----------------------------------------------
http://www.netresearch.de - info at netresearch.de
++++++++++++++
Netresearch - Passion for eCommerce
++++++++++++++
http://www.netresearch.de/blog
http://www.facebook.com/netresearch
http://twitter.com/netresearch
-----------------------------------------------
Registergericht: AG Leipzig HRA 15614
Komplementär: Netresearch Beteiligungs GmbH, AG Leipzig HRB 17018
Geschäftsführer: Michael Ablass, Thomas Fleck
More information about the TYPO3-english
mailing list