[TYPO3-english] code doesn't work for tt_news

Francisco Cifuentes francisco.cifuentes.silva at gmail.com
Mon Dec 15 17:33:27 CET 2008


Possibly in strict terms is not correct, but if it is working, what is the
problem? :P


________________________

Francisco A. Cifuentes Silva
Ingeniero de Proyectos
Instituto de Informática Educativa
Universidad de la Frontera
Temuco, Chile
Tel: +56 45 325277
Fax: +56 45 325263
http://www.iie.ufro.cl


2008/12/15 maaboo <maaboo at gmail.com>

> 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
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>


More information about the TYPO3-english mailing list