[TYPO3] Conditions for content elements || Troubles with extending TS from cookbook
JoH asenau
info at cybercraft.de
Tue Jun 5 10:32:45 CEST 2007
>> Looks like a job for CASE
>>
>> tt_content.image.20 = CASE
>> tt_content.image.20 {
>> key.field = tx_rgsg_smoothgallery
>> default < temp.origimg
>> 1 < tt_content.newimage.20
>> }
>
> Sorry it does not work out :/ Probably because something is wrong with
> my code.
> YOu can find the whole stuff @ http://phpfi.com/239481 and I guess
> moest of the thing you recognize ;) So if there are any flaws or
> bugs, please tell me too.
"It does not work out" is a bit imprecise.
What does not work, and which behaviour would you expect instead?
I guess tx_rgsg_smoothgallery reperesents a checkbox, does it?
What happens if you uncheck the box - do you see something?
It seems you didn't setup tt_content.newimage the same way as
tt_content.image, so the 20 might be too much.
default < temp.origimg
1 < tt_content.newimage
What happens if you change the order to this:
default < tt_content.newimage
1 < temp.origimg
??
One of these should be working assuming the setup without a switch worked
before.
Joey
--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
openBC/Xing: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com
More information about the TYPO3-english
mailing list