[TYPO3] if colpos = 3

JoH asenau info at cybercraft.de
Wed May 16 00:13:38 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 ...

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