[TYPO3-english] Case for content types

Tapio Markula tapio.markula at xetpoint.fi
Mon Oct 20 18:22:35 CEST 2008


Tapio Markula kirjoitti:
> StephenBungert
>> temp.customRender = CASE
>> temp.customRender {
>>   key.field = colPos
>>     default < tt_content
>>   0 < tt_content
>>   1 < tt_content
>>   2 < tt_content
>>   3 < tt_content
>>     # Copy the default header
>>   2.text.10 < lib.stdheader
>>     # Now wrap it. Only shown if there is a header
>>   2.text.10.wrap = {$headerBefore} | {$headerAfter}
>>   2.text.10.stdWrap.case = upper
>>     # Wrap the bodytext
>>   2.text.20.wrap = {$bodyBefore} | {$bodyAfter}
>>     # Since the header wrap won't be there if the header field is 
>> empty, only
>> show the bodytext wrap if there is a header field
>>   2.text.20.fieldRequired = header
>> }
>> tt_content < temp.customRender
>>
>> Maybe it will help you with what you are trying to do.
> 
> thank's
> 
> temp.customRender = CASE
> temp.customRender {
>   key.field = colPos
>   default < tt_content
>   0 < tt_content
>   3 < tt_content
>   23 < tt_content
>   0.image.20 < tt_content.image.20
>   0.image.20.maxW = {$styles.content.imgtext.maxW}
>   0.image.20.maxWInText = {$styles.content.imgtext.maxWInText}
>   3.image.20 < tt_content.image.20
>   3.image.20.maxW = {$styles.content.imgtext.maxWBorder}
>   3.image.20.maxWInText = {$styles.content.imgtext.maxWInTextBorder}
>   23.image.20 < 3.image.20
> }
> tt_content < temp.customRender
> 
> should be ok? Not tested anyway

didn' work - content disappered


More information about the TYPO3-english mailing list