IconInformation

Blog Categories Migration (Recommended)
You can migrate your existing blog categories from the old location Blog to the new location Blog.Categories.

This update enhances permission control, improves category management, and eliminates naming conflicts between blog posts and categories.
Migrating ensures your blog continues to run smoothly and takes full advantage of these improvements.

Navigate to the Categories Location Migrator in order to start the migration process.

Wiki source code of Activity Data

Last modified by Hal Eden on 2023/06/20 21:25

Show last authors
1 #if($xwiki.statsService.enabledForCurrentWiki)
2 1 $msg.get('xe.statistics.current.week')
3
4 #set ($scope = $xwiki.criteriaService.scopeFactory.ALL)
5 #set ($period = $xwiki.criteriaService.periodFactory.currentWeek)
6 #set ($step = $xwiki.criteriaService.durationFactory.DAY)
7 #set ($myviews = $xwiki.statsService.getActionStatistics('view', $scope, $period, $step))
8 #set ($myedits = $xwiki.statsService.getActionStatistics('save', $scope, $period, $step))
9 #set ($dtf = $xwiki.jodatime.getDateTimeFormatterForPattern('yyyy.MM.dd'))
10 {table}
11 | $msg.get('xe.statistics.views') | $msg.get('xe.statistics.edits')
12 #if($myviews.size() > 0)
13 #foreach($item in $myviews.entrySet())
14 $!dtf.print($item.key) | $item.value | $myedits.get($item.key)
15 #end
16 #else
17 1900.01.01 | 0 | 0
18 #end
19 {table}
20
21 1 $msg.get('xe.statistics.current.month')
22
23 #set ($period = $xwiki.criteriaService.periodFactory.currentMonth)
24 #set ($step = $xwiki.criteriaService.durationFactory.DAY)
25 #set ($myviews = $xwiki.statsService.getActionStatistics('view', $scope, $period, $step))
26 #set ($myedits = $xwiki.statsService.getActionStatistics('save', $scope, $period, $step))
27 #set ($dtf = $xwiki.jodatime.getDateTimeFormatterForPattern('yyyy.MM.dd'))
28 {table}
29 | $msg.get('xe.statistics.views') | $msg.get('xe.statistics.edits')
30 #if($myviews.size() > 0)
31 #foreach($item in $myviews.entrySet())
32 $!dtf.print($item.key) | $item.value | $myedits.get($item.key)
33 #end
34 #else
35 1900.01.01 | 0 | 0
36 #end
37 {table}
38
39 1 $msg.get('xe.statistics.current.year')
40
41 #set ($period = $xwiki.criteriaService.periodFactory.currentYear)
42 #set ($step = $xwiki.criteriaService.durationFactory.MONTH)
43 #set ($myviews = $xwiki.statsService.getActionStatistics('view', $scope, $period, $step))
44 #set ($myedits = $xwiki.statsService.getActionStatistics('save', $scope, $period, $step))
45 #set ($dtf = $xwiki.jodatime.getDateTimeFormatterForPattern('yyyy.MM'))
46 {table}
47 | $msg.get('xe.statistics.views') | $msg.get('xe.statistics.edits')
48 #if($myviews.size() > 0)
49 #foreach($item in $myviews.entrySet())
50 $!dtf.print($item.key) | $item.value | $myedits.get($item.key)
51 #end
52 #else
53 1900.01 | 0 | 0
54 #end
55 {table}
56
57 1 $msg.get('xe.statistics.alltime')
58
59 #set($period = $xwiki.criteriaService.periodFactory.createPeriod('20060101', '20150101'))
60 #set($step = $xwiki.criteriaService.durationFactory.YEAR)
61 #set($myviews = $xwiki.statsService.getActionStatistics('view', $scope, $period, $step))
62 #set($myedits = $xwiki.statsService.getActionStatistics('save', $scope, $period, $step))
63 #set($dtf = $xwiki.jodatime.getDateTimeFormatterForPattern('yyyy'))
64 {table}
65 | $msg.get('xe.statistics.views') | $msg.get('xe.statistics.edits')
66 #if($myviews.size() > 0)
67 #foreach($item in $myviews.entrySet())
68 $!dtf.print($item.key) | $item.value | $myedits.get($item.key)
69 #end
70 #else
71 1900 | 0 | 0
72 #end
73 {table}
74 #else
75 #printStatisticsDisabled()
76 #end
77 #includeMacros("Stats.Macros")