roller-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Ruan <danielr...@gmail.com>
Subject Re: Listing Articles by the Same Author
Date Tue, 01 Mar 2011 16:11:33 GMT
Hi Dave,

Unfortunately we have just one blog. So that won't work.

How about doing a search against a username? I tried to use the Lucence
syntax to specify a field search but got no luck with that.

Daniel

On Sun, Feb 27, 2011 at 10:09 AM, Dave <snoopdave@gmail.com> wrote:

> On Thu, Feb 24, 2011 at 3:21 PM, Daniel Ruan <danielruan@gmail.com> wrote:
> > I have a blog with multiple contributors. Is there a way to display all
> the
> > articles from the same author?
>
> You can only do that if you have a "site wide" blog, i.e. one that
> aggregates entries from across all blogs on your entire Roller site.
> In a site-wide blog, you get the Site Model AKS the $site object,
> which supports a method that returns a pager with just entries from
> one author:
>
>   public Pager getWeblogEntriesPager(WeblogWrapper queryWeblog,
>      User user, int sinceDays, int length)
>
> Take a look at the Roller Template Guide for more information.
>
> Hope that helps...
>
> - Dave
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message