[xwiki-users] Stats Application
Hi, I use the stat application and I would like to show the most active contributors to the user. But I would like to show stats to the user only on the users of the same group. I'm a beginner in XWiki and I thought use directly in a document a query seems like $xwiki.search("select distinct docu.author from XWikiDocument as docu where doc.author != ''", 0, 0) Could you help me? Thanks Regards Ben -- View this message in context: http://xwiki.475771.n2.nabble.com/Stats-Application-tp4973836p4973836.html Sent from the XWiki- Users mailing list archive at Nabble.com.
I tryed this query but the velocity macro fail... Any idea? {{velocity}} #set($hql = $xwiki.search("select wod.XWO_ID from XWikiObjects as wod where wod.XWO_NUMBER = (Select MAX(XWO_NUMBER) from XWIKIOBJECTS as wo where XWO_NAME = 'XWiki.TestGroup'"))) #foreach ($item in $hql ) * $item #end I tought get the last Group_ID and use it after to obtain users who created documents. {{/velocity}} -- View this message in context: http://xwiki.475771.n2.nabble.com/Stats-Application-tp4973836p4974565.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi Ben, Ben Stuggler wrote:
Hi,
I use the stat application and I would like to show the most active contributors to the user. But I would like to show stats to the user only on the users of the same group.
I just added http://code.xwiki.org/xwiki/bin/view/Snippets/MostActiveContributorsInGroupS... . You can find other stats-related useful queries at http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamples#HStati... Hope this helps, Marius
I'm a beginner in XWiki and I thought use directly in a document a query seems like
$xwiki.search("select distinct docu.author from XWikiDocument as docu where doc.author != ''", 0, 0)
Could you help me?
Thanks
Regards
Ben
Thanks a lot, it's perfect! -- View this message in context: http://xwiki.475771.n2.nabble.com/Stats-Application-tp4973836p4978845.html Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (2)
-
Ben Stuggler -
Marius Dumitru Florea