[TYPO3] count tt_news records

Roberto Torresani erreti at gmail.com
Thu Dec 20 10:54:41 CET 2007


Hi!
Thanks very much for the answer!

2007/12/19, Francois Suter <fsuter at cobweb.ch>:
>
> Hi,
>
> > page.10.subparts.CONTENT = TEXT
> > page.10.subparts.CONTENT.value {
> >          numRows  {
> >              table = tt_news
> >              }
> >     }
>
> I've never used numRows myself, but your basic syntax seems correct.
> However what you want is to put that inside a if. construct, so you
> should have something like:
>
> page.10.subparts.CONTENT = TEXT
> page.10.subparts.CONTENT {
>         value = Content to display if there are fewer than 3 news items.
>         if {
>                 value {
>                         numRows  {
>                                 table = tt_news
>                         }
>                 }
>                 isLessThan = 4
>         }
> }


I think I have problem with numRows, because nothing come back.
For example if after I insert the line

page.10.subparts.CONTENT.wrap = [ | ]
nothing was render in my webpage

Thanks
Roberto


More information about the TYPO3-english mailing list