roller-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dick Davies <>
Subject Re: hide empty blogs in directory (on Planet)?
Date Wed, 18 Feb 2009 09:40:31 GMT
Thanks Dave, I sort of got there myself after picking through the
template guide.

Still scratching my head on how to get the 'A-Z' bit of the directory
to ignore empty
blogs - it will still underline 'E' if I have 1 empty blog called
'empty', but when you click
the link you get an empty page (obviously).

Don't really want to become the local Velocity expert, and I'm
starting to think I'm fixing a problem that doesn't really exist
anyway, so I've talked
the users out of wanting this feature for now :)

Thanks again!

On Mon, Feb 16, 2009 at 10:08 PM, Dave <> wrote:
> On Thu, Feb 12, 2009 at 11:49 AM, Dick Davies
> <> wrote:
>> Someone asked me if there is a way to hide empty weblogs in our directory.
>> I had a look through the template guide and can see velocity methods like
>> $, getMostCommentedWeblogs and getHotWeblogs(), but nothing
>> that fits my requirements.
>> Have I missed something, and if not, how much work is it to define my
>> own method like the ones above?
> The Weblog object has getEntryCount() and getCommentCount() methods
> that you can use to do this.
> i.e.
>   #if( $weblog.entryCount > 0)
>      <-- show that weblog -->
>   #end
> - Dave

View raw message