Yes, it works. But is it correct? 2008/12/15, Francisco Cifuentes <francisco.cifuentes.si...@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 <maa...@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 _______________________________________________ TYPO3-english mailing list TYPO3-english@lists.netfielders.de http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english