[TYPO3-english] Case for content types
Ernesto Baschny [cron IT]
ernst at cron-it.de
Tue Oct 21 11:57:34 CEST 2008
Tapio Markula wrote: on 10.10.2008 08:22:
> StephenBungert kirjoitti:
>> Do you want to do something to all content elements of type IMAGE in a
>> particular column?
>
> yes - I would like to set for every column these values differently
>
> maxW = {$styles.content.imgtext.maxW}
> maxWInText = {$styles.content.imgtext.maxWInText}
You don't need any special "renderer" to do this. css_styled_content's
(and also content (default)'s) IMAGE rendering allows to fiddle with the
maxW and maxWInText through REGISTERs. So in your TypoScript:
temp.Content = styles.content.get
temp.ContentRight = COA
temp.ContentRight {
10 = LOAD_REGISTER
10.maxImageWidth = 200
10.maxImageWidthInText = 200
20 < styles.content.getRight
30 = RESTORE_REGISTER
}
The registers, if set, will have priority over the TypoScript settings,
thus you acchieve the desired effect without having the close the
tt_content rendering.
Cheers,
Ernesto
More information about the TYPO3-english
mailing list