[TYPO3-english] Case for content types

Tyler Kraft tyler.kraft at netefficiency.co.uk
Mon Oct 20 23:52:27 CEST 2008


What do you want, it's not 100% right but it's pretty close to being 
right. (other than you don't have a column with the position of 23!?!)

Whats wrong with it?



Tapio Markula wrote:
> 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