[TYPO3] if colpos = 3
JoH asenau
info at cybercraft.de
Wed May 16 20:54:15 CEST 2007
>>> I found the following TS and changed it to my own.
>>> Now i want to activate this script only in the left column.
>>> Can somebody help me?
>>>
>>> TS:
>>> tt_content.image.20.1.file >
>>> tt_content.image.20.1.file {
>>> import.current = 1
>>> #cropt and resized the picture
>>> width = 190c
>>> height = 80c
>> [snip]
>>> }
>>
>> Seems to be a job for CASE.
>>
>> temp.imagesetup < tt_content.image
>> tt_content.image >
>> tt_content.image = CASE
>> tt_content.image {
>> key.field = colPos
>> default < temp.imagesetup
>> 3 < temp.imagesetup
>> 3.1.file >
>> 3.1.file {
>> blah
>> }
>> }
>>
>> something like this should do ...
>
> Thanks for your answer Joey!
> This is not where i'm looking for.
> I want to activate this TS for the whole left column.
> Pictures are added from the backend, and not trough TS.
And what do you think the code I posted does?
It modifies the tt_content rendering behaviour.
So when you are using styles.content.getBorder it will use another image
setup than for the rest of the columns.
HTH
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