Changes for page Blog Archive

Last modified by Ecaterina Valica on 2018/09/25 12:51

From version 1.1
edited by Ludovic Dubost
on 2012/08/06 21:16
Change comment: Copied from incubator:Blog.Archive
To version 7.1
edited by Ecaterina Valica
on 2013/05/08 07:49
Change comment: Import

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.ludovic
1 +XWiki.evalica
Content
... ... @@ -43,7 +43,7 @@
43 43   #end
44 44   #end
45 45   #else
46 - #info($msg.get('xe.blog.archive.noarticle'))
46 + #info($services.localization.render('xe.blog.archive.noarticle'))
47 47   #end
48 48  #end
49 49  ##
... ... @@ -50,7 +50,7 @@
50 50  ##
51 51  ##
52 52  #macro(displayBlogYearArchive $blogDoc $year)
53 -= $msg.get('xe.blog.archive.postsyear', [$year]) =
53 += $services.localization.render('xe.blog.archive.postsyear', [$year]) =
54 54   #getBlogEntriesBaseQuery($query)
55 55   #set($query = "${query} and (doc.space = ? or doc.parent = ?)")
56 56   #set ($queryParams = [$blogDoc.space, $blogDoc.fullName])
... ... @@ -69,13 +69,13 @@
69 69   #getEntryObject($entryDoc $entryObj)
70 70   #isPublished($entryObj $isPublished)
71 71   #isHidden($entryObj $isHidden)
72 - * [[$entryDoc.display('title', 'view', $entryObj)>>$entryDoc]]#if(!$isPublished) $msg.get('xe.blog.archive.unpublished')#elseif($isHidden) $msg.get('xe.blog.archive.hidden')#end
72 + * [[$entryDoc.display('title', 'view', $entryObj)>>$entryDoc]]#if(!$isPublished) $services.localization.render('xe.blog.archive.unpublished')#elseif($isHidden) $services.localization.render('xe.blog.archive.hidden')#end
73 73  
74 74   #end
75 75   #end
76 76   #end
77 77   #else
78 - #info($msg.get('xe.blog.archive.noarticlesyear'))
78 + #info($services.localization.render('xe.blog.archive.noarticlesyear'))
79 79   #end
80 80  #end
81 81  ##
... ... @@ -86,7 +86,7 @@
86 86   #set($tempDate = $xwiki.jodatime.mutableDateTime)
87 87   $tempDate.setYear($mathtool.toInteger($year))##
88 88   $tempDate.setMonthOfYear($mathtool.toInteger($month))##
89 -= $msg.get('xe.blog.archive.postsfor') $dateFormatter.print($tempDate) =
89 += $services.localization.render('xe.blog.archive.postsfor') $dateFormatter.print($tempDate) =
90 90   #getBlogEntriesBaseQuery($query)
91 91   #set($query = "${query} and (doc.space = ? or doc.parent = ?)")
92 92   #set ($queryParams = [$blogDoc.space, $blogDoc.fullName])
... ... @@ -98,7 +98,7 @@
98 98   #displayEntry($entryDoc $entryObj true true)
99 99   #end
100 100   #else
101 - #info($msg.get('xe.blog.archive.noarticlesmonth'))
101 + #info($services.localization.render('xe.blog.archive.noarticlesmonth'))
102 102   #end
103 103  #end
104 104  ##