Changes for page Blog Archive

Last modified by Thomas Mortagne on 2020/01/28

<
From version < 10.1 >
edited by Vincent Massol
on 2013/10/15
To version < 11.1 >
edited by Vincent Massol
on 2014/10/21
>
Change comment: Install extension [org.xwiki.platform:xwiki-platform-blog-ui-6.2.2]

Summary

Details

Page properties
Content
... ... @@ -1,4 +1,4 @@
1 -{{include document="Blog.BlogCode"/}}
1 +{{include reference="Blog.BlogCode"/}}
2 2  
3 3  {{velocity filter="none"}}
4 4  {{html clean="false" wiki="true"}}
... ... @@ -12,8 +12,8 @@
12 12   ## Create a Jodatime date formatter that will be used to format dates
13 13   #set($monthFormatter = $xwiki.jodatime.getDateTimeFormatterForPattern('MMMM'))
14 14   #set($tempDate = $xwiki.jodatime.mutableDateTime)
15 - #set($currentYear = $xwiki.formatDate($util.date, 'yyyy'))
16 - #set($currentMonth = $xwiki.formatDate($util.date, 'M'))
15 + #set($currentYear = $xwiki.formatDate($datetool.date, 'yyyy'))
16 + #set($currentMonth = $xwiki.formatDate($datetool.date, 'M'))
17 17   #set($firstYear = '')
18 18   #set($lastYear = '')
19 19   #foreach($firstEntry in $services.query.hql("${query} order by year(publishDate.value)").setLimit(1).bindValues($queryParams).execute())

Get Connected