On 28 February 2012 00:26, <ricardo.julio.rodriguez.fernan...@sergas.es>wrote:

> Hi Joris!
> ________________________________________
> From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of
> Joris Dirks [jo...@user.stekje.nl]
> Sent: 27 February 2012 17:01
> To: XWiki Users
> Subject: [xwiki-users] Blog entries for specific category
>
> > Hi,
> >
> > I'm missing an option to show recent blog entries for a specific
> category,
> > e.g. in a panel. Is there such a feature available? I can imagine others
> > have needed/used such a feature before.
> > Right now I'm just trying to hack Blog.RecentPostsPanel to filter on
> > category, but I can't wrap my head around the query needed.
> > In 'getEntriesForCategory' (Blog.CategoriesCode), the query is:
> > #set($query = ", DBStringListProperty as categories join categories.list
> as
> > category${query} and obj.id = categories.id.id and
> > categories.id.name='category'
> > and category in (${parameters})")
> >
> > But that's about 10 degrees too difficult for me to comprehend :)
> >
>
> This could help:
>
>
> http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamples#HPublicAPI28searchDocuments29
>
> Greetings!
>

Thanks, I've stared at that many times but I just can't comprehend how to
filter on a value in a the 'Category' object, which is of the database tree
type.
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to