<
From version < 8.1 >
edited by Vincent Massol
on 2012/10/16
To version < 9.1 >
edited by Marius Dumitru Florea
on 2013/07/15
>
Change comment: Import

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.VincentMassol
1 +XWiki.mflorea
Syntax
... ... @@ -1,1 +1,1 @@
1 -XWiki 2.0
1 +XWiki 2.1
Content
... ... @@ -2,13 +2,13 @@
2 2  
3 3  {{include document="Blog.CategoriesCode"/}}
4 4  
5 -{{velocity filter="none"}}
5 +{{velocity}}
6 6  {{html clean="false" wiki="true"}}
7 7  $xwiki.jsx.use('Blog.ManageCategories', {'mode' : 'select'})##
8 8  $xwiki.ssx.use('Blog.ManageCategories')##
9 9  #getEntryObject($doc $entryObj)
10 10  #if("$!entryObj" == '')
11 - #warning($msg.get('xe.blog.sheet.notpost'))
11 + {{warning}}{{translation key='xe.blog.sheet.notpost'/}}{{/warning}}
12 12  ## Keep testing the inline action for backward compatibility with older blog posts.
13 13  #elseif($xcontext.action != 'edit' && $xcontext.action != 'inline')
14 14   ## View mode
... ... @@ -17,25 +17,20 @@
17 17   ## displayBlog requires a list of documents, and whether to display only an extract or the full entry.
18 18   #displayBlog([$tdoc] 'single' false false)
19 19  #else
20 - <dl>
21 - <dt>$msg.get('xe.blog.sheet.title')</dt>
22 - <dd>$doc.display('title', 'edit', $entryObj)</dd>
23 - <dt>$msg.get('xe.blog.sheet.content')</dt>
24 - <dd>$doc.display('content', 'edit', $entryObj)</dd>
25 - <dt>$msg.get('xe.blog.sheet.summary')</dt>
26 - <dd>$doc.display('extract', 'edit', $entryObj)</dd>
27 - <dt>$msg.get('xe.blog.sheet.category')</dt>
28 - <dd>
29 - #displayCategoryManagementTree('' 'selectable')
30 - <div class="clearfloats"></div>
31 - </dd>
32 - </dl>
20 + ; {{translation key='xe.blog.sheet.title'/}}
21 + : $doc.display('title', 'edit', $entryObj)
22 + ; {{translation key='xe.blog.sheet.content'/}}
23 + : $doc.display('content', 'edit', $entryObj)
24 + ; {{translation key='xe.blog.sheet.summary'/}}
25 + : $doc.display('extract', 'edit', $entryObj)
26 + ; {{translation key='xe.blog.sheet.category'/}}
27 + : (((#displayCategoryManagementTree('' 'selectable') (% class="clearfloats" %)((())))))
33 33   #isPublished($entryObj $isPublished)
34 34   #if($isPublished)
35 35   #if($doc.creator == $xcontext.user)
36 - #publishMessageBox($msg.get('xe.blog.sheet.publicationdate', [${doc.display('publishDate', 'view', $entryObj)}]))
31 + #publishMessageBox($services.localization.render('xe.blog.sheet.publicationdate', [${doc.display('publishDate', 'view', $entryObj)}]))
37 37   #set($hideArticle = ${doc.display('hidden', 'edit', $entryObj)})
38 - #hideMessageBox($msg.get('xe.blog.sheet.hidearticle', [${hideArticle}]))
33 + #hideMessageBox($services.localization.render('xe.blog.sheet.hidearticle', [${hideArticle}]))
39 39   #end
40 40   #else
41 41   #set($defaultDate = $xwiki.getDocument($blogPostTemplate).getObject($blogPostClassname).getProperty('publishDate').value.time)
... ... @@ -43,7 +43,7 @@
43 43   ## The publish date was not set, force it to be the creation date
44 44   $entryObj.set('publishDate', $doc.creationDate)
45 45   #end
46 - #publishMessageBox("$msg.get('xe.blog.sheet.notpublished') <label>**$msg.get('xe.blog.sheet.publish') ${doc.display('published', 'edit', $entryObj)}**</label>\\<label>$msg.get('xe.blog.sheet.setdate') ${doc.display('publishDate', 'edit', $entryObj)}</label>")
41 + #publishMessageBox("$services.localization.render('xe.blog.sheet.notpublished') <label>**$services.localization.render('xe.blog.sheet.publish') ${doc.display('published', 'edit', $entryObj)}**</label>\\<label>$services.localization.render('xe.blog.sheet.setdate') ${doc.display('publishDate', 'edit', $entryObj)}</label>")
47 47   #end
48 48  #end
49 49  {{/html}}

Get Connected