From version 1.1 >
edited by Sebastian Sams
on 2017/06/29 12:34
To version < 3.1 >
edited by Administrator
on 2020/09/21 16:06
>
Change comment: Install extension [org.xwiki.contrib:application-help-center/1.5.1]

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -Templates
1 +$services.localization.render('help.templates.title')
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.ssams
1 +XWiki.Admin
Content
... ... @@ -2,12 +2,12 @@
2 2  
3 3  {{velocity output="false"}}
4 4  #set ($actionCards = [{
5 - 'title': 'Use templates',
6 - 'description': 'Templates are predefined pages that can be copied when creating a new page.',
7 - 'tip': "<a href=""http://platform.xwiki.org/xwiki/bin/view/Features/DocumentLifecycle#HCreate"" class=""wikiexternallink"">Creating pages</a> based on templates makes it faster to adapt predefined content to your needs.",
5 + 'title': $services.localization.render('help.templates.useTemplates.title'),
6 + 'description': $services.localization.render('help.templates.useTemplates.description'),
7 + 'tip': $services.localization.render('help.templates.useTemplates.tip', ["<a href='http://platform.xwiki.org/xwiki/bin/view/Features/DocumentLifecycle#HCreate' class='wikiexternallink'>",'</a>']),
8 8   'thumbnail': 'Template',
9 9   'actions': [{
10 - 'label': 'Try it!',
10 + 'label': $services.localization.render('help.try.label'),
11 11   'type': 'success',
12 12   'url': $xwiki.getURL('Sandbox.WebHome', 'create', $escapetool.url({
13 13   'title': "New Page $datetool.get('dd MMM yyyy, HH:mm')"
... ... @@ -14,12 +14,12 @@
14 14   }))
15 15   }]
16 16  }, {
17 - 'title': 'Create your template',
18 - 'description': 'Integrate structure and macros in an existing page, and transform it in a template.',
19 - 'tip': "<a href=""http://extensions.xwiki.org/xwiki/bin/view/Extension/Administration+Application#HCreatetheTemplateProvider"" class=""wikiexternallink"">Template Providers</a> expose templates on the Create Page dialog so that the users can use them.",
17 + 'title': $services.localization.render('help.templates.create.title'),
18 + 'description': $services.localization.render('help.templates.create.description'),
19 + 'tip': $services.localization.render('help.templates.create.tip', ["<a href='http://extensions.xwiki.org/xwiki/bin/view/Extension/Administration+Application#HCreatetheTemplateProvider' class='wikiexternallink'>",'</a>']),
20 20   'thumbnail': 'Administration',
21 21   'actions': [{
22 - 'label': 'Learn more',
22 + 'label': $services.localization.render('help.more.label'),
23 23   'url': 'http://extensions.xwiki.org/xwiki/bin/view/Extension/Administration+Application#HCreatetheTemplateProvider'
24 24   }]
25 25  }])
... ... @@ -26,31 +26,50 @@
26 26  
27 27  #if ($hasAdmin)
28 28   #set ($discard = $actionCards[1].actions.add(0, {
29 - 'label': 'Browse',
29 + 'label': $services.localization.render('help.browse.label'),
30 30   'url': $xwiki.getURL('XWiki.XWikiPreferences', 'admin', 'editor=globaladmin&section=Templates')
31 31   }))
32 32  #end
33 33  
34 +#macro (getTemplateExample $inputCard $outputCard)
35 + #set ($templateReference = $services.model.resolveDocument($inputCard.templateReference))
36 + #if ($xwiki.getDocument($templateReference).isNew())
37 + #set ($outputCard = {
38 + 'title': $inputCard.title,
39 + 'description': $inputCard.description,
40 + 'documentation': 'http://extensions.xwiki.org/xwiki/bin/view/Extension/Templates+Application/',
41 + 'thumbnail': $inputCard.thumbnail
42 + })
43 + #else
44 + #set ($outputCard = {
45 + 'title': $inputCard.title,
46 + 'description': $inputCard.description,
47 + 'examples': $inputCard.templateReference,
48 + 'thumbnail': $inputCard.thumbnail
49 + })
50 + #end
51 +#end
52 +
34 34  #set ($exampleCards = [{
35 - 'title': 'Article',
36 - 'description': 'Article page',
37 - 'examples': 'Help.Templates.Article.WebHome',
38 - 'thumbnail': 'Help.Templates.Article.WebHome@article.png'
54 + 'title': $services.localization.render('help.templates.article.title'),
55 + 'description':$services.localization.render('help.templates.article.description'),
56 + 'templateReference': 'Templates.Article.Template.WebHome',
57 + 'thumbnail': 'Help.Templates.WebHome@article.png'
39 39  }, {
40 - 'title': 'Encyclopedia',
41 - 'description': 'Encyclopedia page',
42 - 'examples': 'Help.Templates.Encyclopedia.WebHome',
43 - 'thumbnail': 'Help.Templates.Encyclopedia.WebHome@encyclopedia.png'
59 + 'title': $services.localization.render('help.templates.encyclopedia.title'),
60 + 'description': $services.localization.render('help.templates.encyclopedia.description'),
61 + 'templateReference': 'Templates.Encyclopedia.Template.WebHome',
62 + 'thumbnail': 'Help.Templates.WebHome@encyclopedia.png'
44 44  }, {
45 - 'title': 'Meeting Report',
46 - 'description': 'Agenda and notes',
47 - 'examples': 'Help.Templates.Meeting.WebHome',
48 - 'thumbnail': 'Help.Templates.Meeting.WebHome@meeting.png'
64 + 'title': $services.localization.render('help.templates.meeting.title'),
65 + 'description': $services.localization.render('help.templates.meeting.description'),
66 + 'templateReference': 'Templates.Meeting.Template.WebHome',
67 + 'thumbnail': 'Help.Templates.WebHome@meeting.png'
49 49  }, {
50 - 'title': 'Simple Page',
51 - 'description': 'With table of contents',
52 - 'examples': 'Help.Templates.Simple.WebHome',
53 - 'thumbnail': 'Help.Templates.Simple.WebHome@simple.png'
69 + 'title': $services.localization.render('help.templates.simple.title'),
70 + 'description': $services.localization.render('help.templates.simple.description'),
71 + 'templateReference': 'Templates.SimplePage.Template.WebHome',
72 + 'thumbnail': 'Help.Templates.WebHome@simple.png'
54 54  }])
55 55  {{/velocity}}
56 56  
... ... @@ -67,8 +67,8 @@
67 67   </div>
68 68   #end
69 69  </div>
70 -<h3 id="HExamples">Examples</h3>
71 -<p>Want to start from a predefined template? Here are some examples of available templates inside XWiki.</p>
89 +<h3 id="HExamples">$services.localization.render('help.templates.examples.title')</h3>
90 +<p>$services.localization.render('help.templates.examples.description')</p>
72 72  <div class="row">
73 73   #foreach ($card in $exampleCards)
74 74   ## See http://getbootstrap.com/css/#grid-responsive-resets .
... ... @@ -82,10 +82,12 @@
82 82   <div class="clearfix visible-lg-block"></div>
83 83   #end
84 84   <div class="col-xs-12 col-sm-6 col-md-4 col-lg-3">
85 - #helpExampleCard($card)
104 + #set ($outputCard = {})
105 + #getTemplateExample($card $outputCard)
106 + #helpExampleCard($outputCard)
86 86   </div>
87 87   #end
88 88  </div>
89 -<p><a href="http://extensions.xwiki.org/xwiki/bin/view/Extension/Templates+Application/" class="wikiexternallink">View more templates</a></p>
110 +<p><a href="http://extensions.xwiki.org/xwiki/bin/view/Extension/Templates+Application/" class="wikiexternallink">$services.localization.render('help.templates.more')</a></p>
90 90  {{/html}}
91 91  {{/velocity}}
article.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.ssams
Size
... ... @@ -1,0 +1,1 @@
1 +376.1 KB
Content
encyclopedia.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.ssams
Size
... ... @@ -1,0 +1,1 @@
1 +331.5 KB
Content
meeting.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.ssams
Size
... ... @@ -1,0 +1,1 @@
1 +83.5 KB
Content
simple.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.ssams
Size
... ... @@ -1,0 +1,1 @@
1 +180.8 KB
Content
Copyright 2018 - Österreichisches Weltraum Forum. All rights reserved.