[TYPO3-english] Case for content types

Tyler Kraft tyler.kraft at netefficiency.co.uk
Tue Oct 21 22:50:25 CEST 2008


As I said it's because you didn't define it correctly!



Tapio Markula wrote:
> Tapio Markula kirjoitti:
>> Tapio Markula kirjoitti:
>>> Tyler Kraft kirjoitti:
>>>> 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!?!)
>>> yes - I have! I have added for it TS config and in a plugin language 
>>> label
>>>
>>>> Whats wrong with it?
>>>
>>> when I defined it content didn't showed at all, if the content type 
>>> is text with images (apprently the same would concerns also type 
>>> image) - not even commenting resetting of images. Showed the content 
>>> type 'text' ok.
>>
>>
>> I put for exact object
>>
>>
>> temp.customRender = CASE
>> temp.customRender {
>>   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.customRender
>>
>> I changed values of 'styles.content.imgtext.maxWInTextNormal' and the 
>> changes worked. Seemst that these should be set exactly where needed.
> 
> That had however a side effect - the field bodytext was not rendered,
> if the content type is text with images.
> 
> So must use CType Image and Text but not text with images.
> No idea why that kind of behavior.


More information about the TYPO3-english mailing list