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 <[EMAIL PROTECTED]> 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
>
>

Reply via email to