roller-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Odelya YomTov-Glick" <ode...@jpost.com>
Subject RE: most commented entry
Date Wed, 09 Apr 2008 12:44:43 GMT
Thanks!

-----Original Message-----
From: Dave [mailto:snoopdave@gmail.com] 
Sent: Wednesday, April 09, 2008 1:41 PM
To: user@roller.apache.org
Subject: Re: most commented entry

There is a method in the $site model:

    public List getMostCommentedWeblogEntries(
            List cats, int sinceDays, int length) {
    }

So, to get the most recent 100 most commented entries in the last 20
days you'd do this:

#set($mostCommented = $site.getMostCommentedWeblogEntries(20, 100))

- Dave


On Wed, Apr 9, 2008 at 2:37 PM, Odelya YomTov-Glick <odelya@jpost.com>
wrote:
> Hi
>  I would like to know what were the most 5 commented entries in whole the
>  blogs.
>  The way I find to do it now, is to go over all the blogs, and over the
>  entries in each one, and to fine the commentCount of each, and to find
the
>  most 5.
>  I think that it's very long and inefficient.
>  Is there a quicker way to use it?
>
>  I
>
>  Thanks
>
>  Odelya YomTov
>
>



 
 
****************************************************************************
********
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer
viruses.
****************************************************************************
********





Mime
View raw message