Hello XWiki-Dev's
I'm trying to figure out how to create a list blog authors but I want the
authors to be listed only once so I'm trying to figure out how to create a
"where" clause for searchDocument. I thought if I found all of the
Documents with XWiki.ArticleClass as a BaseObject and then used distict I
could create a list of Blog authors. One problem is that it looks like
searchDocuments doesn't allow me to specify distinct. I'm unclear how to
refer to doc.author in the query would that be: StringProperty as prop ?
First Try
#set ($sql = ", BaseObject as obj where doc.fullName = obj.name and
obj.className = 'XWiki.ArticleClass'")
#set ($start = 0)
#set ($nb = 50)
#set ($collect = $xwiki.searchDocuments($sql , $nb , $start))
Is there a better way to do this?
Glenn Everitt
--
View this message in context:
http://www.nabble.com/distict-blog-authors-tp17367672p17367672.html
Sent from the XWiki- Dev mailing list archive at
Nabble.com.