[TYPO3-ttnews] A news counter in LIST view ?
Gregory Loichot
gloichot at cross-systems.ch
Mon May 25 16:47:31 CEST 2009
So great ! Thank you !
$this->internal['res_count'] is magic :)
Prakash a écrit :
> Greg,
>
> I seem to have got what you meant.
>
> Probably you can take a look into this file:
> typo3conf\ext\tt_news\res\example_userPageBrowserFunc.php
> This can be used to customize page browser results, and also the result
> count.
> To make this work take a look into this TS property: userPageBrowserFunc
>
> I think you should also take a look into the typoscript property
> "showResultCount"
>
> I hope these help you.
>
> Gregory Loichot wrote:
>> Hello,
>>
>> Thank you, but in fact it is not what I want to do. In my HTML code,
>> there won't be a list of *all* news because there is a limit in the
>> sql query (no more than 5). So, JS cannot "know" how many news there are.
>>
>> I have to do this in PHP code. In tt_news, there is a hook
>> (processSelectConfHook) to construct your own sql query, but after
>> that you can only act on *each* query result, so you cannot know how
>> many news there are (or I don't know how :)).
>>
>> Any idea ?
>
> --
> *Regards,
> Prakash A Bhat*
> Skype/Yahoo/GTalk/MSN: spabhat
> Ph: +91 80 420 33 515
> Mobile: +91 94481 40430
> www.chandanweb.com <http://www.chandanweb.com>
>
> Chandan Web Solutions <http://www.chandanweb.com>
> <http://www.chandanweb.com>
More information about the TYPO3-project-tt-news
mailing list