[TYPO3-english] Problem with colPos related definitions
Tapio Markula
tapio.markula at xetpoint.fi
Fri Nov 28 16:23:33 CET 2008
JoH asenau kirjoitti:
>> I have this TS config:
>>
>> temp.customRenderImage = CASE
>> temp.customRenderImage {
>> key.field = colPos
>> default < tt_content.image.20
>> 0 < tt_content.image.20
>> 0.maxW = {$styles.content.imgtext.maxWNormal}
>> 0.maxWInText = {$styles.content.imgtext.maxWInTextNormal}
>> 3 < tt_content.image.20
>> 3.maxW = {$styles.content.imgtext.maxWBorder}
>> 3.maxWInText = {$styles.content.imgtext.maxWInTextBorder}
>> 23 < 3
>> }
>> tt_content.image.20 < temp.customRenderImage
>
> Why are you doing it like this, when there is stdWrap available for both,
> maxW and maxWInText?
> And what do you expect by the line "23 < 3" (which should be 23 < .3) ?
no - I have extended colPos values with my plugin. 23 = Border 2
> tt_content.image.20 {
> maxW >
> maxWInText >
> maxW.cObject = CASE
> maxW.cObject {
> key.field = colPos
> 0 = TEXT
> 0.value = {$styles.content.imgtext.maxWNormal}
> 3 = TEXT
> 3.value = {$styles.content.imgtext.maxWBorder}
> 23 < .3
> }
> maxWInText < .maxW
> maxWInText {
> 0.value = {$styles.content.imgtext.maxWInTextNormal}
> 3.value = {$styles.content.imgtext.maxWInTextBorder}
> 23.value = {$styles.content.imgtext.maxWInTextBorder}
> }
> }
>
> HTH
>
> Joey
This looks reasonalbe. Thank's
More information about the TYPO3-english
mailing list