[TYPO3-english] code doesn't work for tt_news
maaboo
maaboo at gmail.com
Mon Dec 15 17:22:57 CET 2008
Yes, it works. But is it correct?
2008/12/15, Francisco Cifuentes <francisco.cifuentes.silva at gmail.com>:
> you could try this:
> <begin of news3rd-lvl.ts>
> [globalVar = TSFE:id = 43]
> lib.newsholder = COA
> lib.newsholder {
> 10 < plugin.tt_news
> 10 {
> defaultCode = LATEST
> templateFile = fileadmin/templates/tt_news2.
>>
>> html
>> pid_list = 43
>> }
>> 20 < plugin.tt_news
>> 20 {
>> defaultCode = AMENU
>> templateFile = fileadmin/templates/tt_news2.html
>> pid_list = 43
>> }
>> }
>> [global]
>> <end of news3rd-lvl.ts>
>
>
> regards,
> ________________________
>
> Francisco A. Cifuentes Silva
>
>
> 2008/12/15 maaboo <maaboo at gmail.com>
>
>> Hi, Allmighty All!
>>
>> I encountered problem with tt_news. There is my code for generating news:
>>
>> <begin of news.ts>
>> plugin.tt_news {
>> defaultCode = LATEST
>> }
>> <end of news.ts>
>>
>> and
>>
>> <begin of news3rd-lvl.ts>
>> [globalVar = TSFE:id = 43]
>> lib.newsholder = COA
>> lib.newsholder {
>> 10 < plugin.tt_news
>> 10 {
>> code = LATEST
>> templateFile = fileadmin/templates/tt_news2.html
>> pid_list = 43
>> }
>> 20 < plugin.tt_news
>> 20 {
>> code = AMENU
>> templateFile = fileadmin/templates/tt_news2.html
>> pid_list = 43
>> }
>> }
>> [global]
>> <end of news3rd-lvl.ts>
>>
>> When i open page 43 i see two LATEST. When i remove defaultCode i get
>> "NO CODE GIVEN". I tried the following:
>>
>> Debug via TSOB: There are no any errors or warnings about tt_news.
>> When condition is checked - all parameters look fine.
>> Debug via krumo: There are correct code parameters (code (String, 6
>> characters ) LATEST;
>> code (String, 5 characters ) AMENU).
>>
>> When i set other defaultCode (for ex. AMENU) - it generates two AMENUs.
>>
>> i tried to use both INCLUDE files and individual page template setup -
>> same shit.
>>
>> Why it doesn't work?
>>
>> PS. There is strange "code." parameter in krumo output:
>> code. (Array, 1 element)
>> *
>> field (String, 10 characters ) select_key
>> if it's important.
>>
>> --
>> with respect, Grigory
>> ICQ UIN: 22694713
--
with respect, Grigory
ICQ UIN: 22694713
More information about the TYPO3-english
mailing list