On Feb 2, 2010, at 1:26 PM, Sergiu Dumitriu wrote:

> On 02/02/2010 12:20 PM, Dilipkumar Jadhav wrote:
>> Thanks for pointing me to the JIRA issue Marius...
>> I hope there is consensus among devs to create a new action for "docextra"
>> views.
>> 
> 
> Not exactly. Personally I prefer not to add any more actions for the 
> moment, since we're moving towards a new action component system instead 
> of the current Struts-based one.

We shouldn't wait for the new action module to fix this since it's an important 
bug (and a regression since it was working a few versions ago).

Thanks
-Vincent

> 
>> Message: 5
>> Date: Tue, 02 Feb 2010 09:19:04 +0200
>> From: Marius Dumitru Florea<[email protected]>
>> Subject: Re: [xwiki-users] Single Page Visit/View Count through Groovy
>>      Snippet
>> To: XWiki Users<[email protected]>
>> Message-ID:<[email protected]>
>> 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.
> 

_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to