You are here: Foswiki>Tasks Web>Item11182 (17 Dec 2011, GeorgeClark)Edit Attach

Item11182: Statistics not generated for subwebs

pencil
Priority: Urgent
Current State: Closed
Released In: 1.1.4
Target Release: patch
Applies To: Engine
Component: FoswikiUIStatistics
Branches:
Reported By: GeorgeClark
Waiting For:
Last Change By: GeorgeClark
The subweb is not read from the url unless entered from the webs= parameter. The default link in the WebStatistics topic doesn't work for subwebs.

See Support.Question917

Confirmed on trunk checkout. From the Support Question:
I have a

Main Web : TechWiki

Sub Web: StandardDocuments

In force update manually link in the StandardDocuments Sub web, following is syntax is present :
 (You can also [[%SCRIPTURL{"statistics"}%/%WEB%][force]] an update)

The problem can be solved by updating the syntax to using URL parameters as shown below
 
(You can also [[%SCRIPTURL{"statistics"}%?webs=%WEB%][force]] an update)

Then it updates the subweb statistics correctly. Hope this helps.The Force link needs to be changed in standard distribution so that it works for Main and subwebs

-- HarshadDivekar - 13 Oct 2011

-- GeorgeClark - 15 Oct 2011

The issue is simple - the URL needs a trailing slash so that SubWebs are recognized as a web and not as a topic in the parent web. Since this URL is shown as an example in every WebStatistics topic, might as well change the instructions to an include of a DefaultWebStatistics topic. And need to add documentation about how the WebStatistics topic is built. The current docs are a bit sparse.

-- GeorgeClark - 15 Oct 2011
 
Topic revision: r9 - 17 Dec 2011, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy