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.florea(a)xwiki.com>
Subject: Re: [xwiki-users] Single Page Visit/View Count through Groovy
Snippet
To: XWiki Users <users(a)xwiki.org>
Message-ID: <4B67D1E8.7030902(a)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(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
------------------------------
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
End of users Digest, Vol 31, Issue 3
************************************