Motivation
With
MostPopularWebsInSiteStatistics, SiteStatistics has the "Top Web Views" column. At the same token, the list of most updated webs should be there.
Description and Documentation
Instead of adding another column to the table, the list of most updated webs will be put on the "Webs updated" column. For consistency and compactness, the list of most viewed webs will move to the "Webs viewed" column eliminating the "Top Web Views" column.
To make use of
MostPopularWebsInSiteStatistics after upgrade, you need to modify the existing SiteStatistics.
This proposal still needs slight modification to the existing SiteStatistics, but it's only with the template row (the second row of the table having
| <!--statDate--> | ...). Specifically One space preceding
<!--statWebsViews--> and
<!--statWebsUpdated--> needs to be removed.
Given
TopViewersOnStatistics, it's logical for
tools/cvt_stats_twiki6 of
TopViewersOnStatistics to do the above modification in addition to the column addition.
The second line onwards on "Webs Viewed" and "Webs Updated" columns have the numbers of views and updates, which are different in nature from the first line values.
This will be clearly described under the table.
Those additional lines are confirmed not to affect
ChartPlugin picking up the number at the beginning of those columns.
The number of webs listed is specified by
{Stats}{SiteTopViews} and
{Stats}{SiteTopUpdates}.
Both are 0 by default, in which case, the webs lists are not put on SiteStatistics.
Examples
The following setting (default) suppresses the lists of most viewed webs and most updated webs.
$TWiki::cfg{Stats}{SiteTopViews} = 0;
$TWiki::cfg{Stats}{SiteTopUpdates} = 0;
The following setting specifies that 20 most viewed webs and 20 most updated webs are listed.
$TWiki::cfg{Stats}{SiteTopViews} = 20;
$TWiki::cfg{Stats}{SiteTopUpdates} = 20;
Impact
Implementation
--
Contributors:
Hideyo Imazu - 2013-09-11
Discussion
Looks good. A table row is already taller than one line due to the "Top Contributors" column, so this new feature will not use more screen real estate.
Make sure this works also when the
ChartPlugin is used to visualize the statistics data.
--
Peter Thoeny - 2013-09-11
One point of confusion might be the units for the numbers. The first number in "Webs Viewed" is the number of webs viewed in that month. The numbers below for the top webs seem to be topic views in each web? It needs to be documented.
--
Peter Thoeny - 2013-09-11
I've addressed those points in the description above.
--
Hideyo Imazu - 2013-09-12
This feature is accepted by
JerusalemReleaseMeeting2013x09x12.
--
Peter Thoeny - 2013-09-12