roller-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave <snoopd...@gmail.com>
Subject Re: most commented entry
Date Wed, 09 Apr 2008 11:41:12 GMT
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
>
>

Mime
View raw message