Thanks for pointing me to the JIRA issue Marius...
I hope there is consensus among devs to create a new action for "docextra"
views.



Message: 5
Date: Tue, 02 Feb 2010 09:19:04 +0200
From: Marius Dumitru Florea <mariusdumitru.flo...@xwiki.com>
Subject: Re: [xwiki-users] Single Page Visit/View Count through Groovy
        Snippet
To: XWiki Users <users@xwiki.org>
Message-ID: <4b67d1e8.7030...@xwiki.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Dilipkumar Jadhav wrote:
> Hello folks,
> 
> I was trying to get the visit count for a single Page through the
following
> Groovy Code in Syntax 2.0:
> 
>  
> 
> {{groovy}}
> 
> println "Total No. Of Visits:
> ${doc.getCurrentMonthPageStats("view").getVisits()}";
> 
> {{/groovy}}
> 
>  
> 
> It looks like it is returning some data for the Page from the start of the
> month. However, the concern is every time I view the Page, the count
> increases by +2 rather than +1.
> 
> The same is saved in the database in xwikistatsdoc as well. 
> 
> Is there a logic that probably I missed out on. My understanding was that
> the counter should have increased by +1.

I think this is a known issue, see 
http://jira.xwiki.org/jira/browse/XWIKI-4590 .

Hope this helps,
Marius

> 
> Also, is the code snippet that I wrote correct to get this kind of
> data...Any help would as always be greatly appreciated.
> 
> Thank you.
> 
> _______________________________________________
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users


------------------------------

_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


End of users Digest, Vol 31, Issue 3
************************************

_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to