[TYPO3-dev] CASE & value of extension

Steffen Kamper steffen at dislabs.de
Fri Mar 30 10:21:36 CEST 2007


"Georg Ringer" <mail-spam at ringerge.org> schrieb im Newsbeitrag 
news:mailman.1.1175234504.28150.typo3-dev at lists.netfielders.de...
> Hello and good morning.
>
> I've made all fields of a query working with cObj->stdWrap and I want to 
> modify the output with CASE but how?
>
> e.g. Output can be a integer from 1-10 and I want to display images 
> instead of the text.
>
> Of course it doesn't work like this:
> tx_rgboulder_quality = CASE
> tx_rgboulder_quality {
> 1.value = test
>
> }
>
>
> Can you please help?
> Thanks
> Georg

Hi Georg,

CASE is like a php swicht case, you can use it like that:

tx_rgboulder_quality = CASE
tx_rgboulder_quality {
   1 = IMAGE
   1 {...}
   2 = IMAGE
   2 {...}
   3 = IMAGE
   3 {...}
   default = TEXT
   default.value = any
}

vg  Steffen 






More information about the TYPO3-dev mailing list