Return-Path: Delivered-To: apmail-roller-user-archive@www.apache.org Received: (qmail 39499 invoked from network); 9 Apr 2008 11:41:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Apr 2008 11:41:44 -0000 Received: (qmail 70105 invoked by uid 500); 9 Apr 2008 11:41:43 -0000 Delivered-To: apmail-roller-user-archive@roller.apache.org Received: (qmail 70086 invoked by uid 500); 9 Apr 2008 11:41:43 -0000 Mailing-List: contact user-help@roller.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@roller.apache.org Delivered-To: mailing list user@roller.apache.org Received: (qmail 70073 invoked by uid 99); 9 Apr 2008 11:41:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Apr 2008 04:41:43 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of snoopdave@gmail.com designates 209.85.132.242 as permitted sender) Received: from [209.85.132.242] (HELO an-out-0708.google.com) (209.85.132.242) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Apr 2008 11:41:01 +0000 Received: by an-out-0708.google.com with SMTP id d18so614308and.121 for ; Wed, 09 Apr 2008 04:41:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=UmauGsjQtJrfkNlPS6vHfUOGLdY526QtVEJJhBdD1yY=; b=jDHwChI7c8xVLWdwusrpCr72CRUOMMBhVorVOF3Cct/vqjt8Wh+RONMvtq5KMq1H8gT7MbHmN/V+lIi25D5Ijj+MvUN37QJ/lMw/hU4xhHVfIPCh7InREumCVirM1L3TVhK+GV+AAPSg5oMA1yzZQfmGObSuUtKbkruyrwBIuHY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jyeKseAYX886eWdvb0Y6st5FTft6ab2KwJwKgzWRQwCASpDTqUhShe43AdNt5OGxVhlwqBxL4T/WxD9bHAP5voxvLuwQYjvCZCQK8ZNVQhKl5KRj77z5z94VU/ZAAVlME+LbAjPJmW43axbslxS5CGAnbATz5p5WwlCsdhc46Ok= Received: by 10.100.227.6 with SMTP id z6mr40021ang.41.1207741272986; Wed, 09 Apr 2008 04:41:12 -0700 (PDT) Received: by 10.100.109.5 with HTTP; Wed, 9 Apr 2008 04:41:12 -0700 (PDT) Message-ID: <8fb9ac720804090441l446a39ebub4106a08330e858d@mail.gmail.com> Date: Wed, 9 Apr 2008 13:41:12 +0200 From: Dave To: user@roller.apache.org Subject: Re: most commented entry In-Reply-To: <20080409113547.9B5B0724972@athena.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080409113547.9B5B0724972@athena.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 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 > >