[TYPO3-ttnews] maxW in displayLatest not working

Jesper Goos jesper at goos.dk
Mon Jul 28 21:58:54 CEST 2008


Andreas Burg wrote:
> Jesper Goos schrieb:
>> Hi
>>
>> I have added a Latest news plugin to my page with TS.
>> Everything works fine, except the size of the image. There is one 
>> image attached to the news record, and it shows but in the wrong size. 
>> As you can see below I want the image to have a width of 220 px. But 
>> it has always only around 60 px width. What am I doing wrong? Hope 
>> someone can help me??
>>
>> ######################################################
>>
>> lib.newsLatestProdukt < plugin.tt_news
>> lib.newsLatestProdukt.latestLimit = 1
>> lib.newsLatestProdukt.categorySelection = 6
>> lib.newsLatestProdukt.categoryMode = 1
>> lib.newsLatestProdukt.latestMaxW = 220
>> lib.newsLatestProdukt.displayLatest.image.file.maxW = 220
>> lib.newsLatestProdukt {
>>  code >
>>  code = LATEST
>>  pid_list >
>>  pid_list = 64 # the pids of the pages where your news are stored
>>  catImageMode = 0
>>  catTextMode = 0
>>  #displayLatest.image.file.maxW = 220
>>  templateFile = fileadmin/template/tt_news/template.html
>> }
>>
>> [globalVar = TSFE:id = 2]
>> page.10.subparts.topright < lib.newsLatestProdukt
>>
>> ########################################################
>>
>> Thanx!
>> Jesper Goos
> 
> Hello Jesper,
> 
> try to set it with the Constant-Editor, or put it in the Constants-Field 
> of your template.
> 
> plugin.tt_news {
>   latestMaxH = 60
>   latestMaxW = 60
> }
> 
> good luck
> 
> Andreas

Perfect! Works super!
Thanx a lot ;-)

Jesper


More information about the TYPO3-project-tt-news mailing list