You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by Dave <sn...@gmail.com> on 2008/04/09 13:41:12 UTC
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 <od...@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
>
>
RE: most commented entry
Posted by Odelya YomTov-Glick <od...@jpost.com>.
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 <od...@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.
****************************************************************************
********