Hide last authors
Andrey Che 1.1 1 {{include reference="Help.Code.VelocityMacros" /}}
2
3 {{velocity output="false"}}
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.",
8 'thumbnail': 'Template',
9 'actions': [{
10 'label': 'Try it!',
11 'type': 'success',
12 'url': $xwiki.getURL('Sandbox.WebHome', 'create', $escapetool.url({
13 'title': "New Page $datetool.get('dd MMM yyyy, HH:mm')"
14 }))
15 }]
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.",
20 'thumbnail': 'Administration',
21 'actions': [{
22 'label': 'Learn more',
23 'url': 'http://extensions.xwiki.org/xwiki/bin/view/Extension/Administration+Application#HCreatetheTemplateProvider'
24 }]
25 }])
26
27 #if ($hasAdmin)
28 #set ($discard = $actionCards[1].actions.add(0, {
29 'label': 'Browse',
30 'url': $xwiki.getURL('XWiki.XWikiPreferences', 'admin', 'editor=globaladmin&section=Templates')
31 }))
32 #end
33
34 #set ($exampleCards = [{
35 'title': 'Article',
36 'description': 'Article page',
37 'examples': 'Help.Templates.Article.WebHome',
38 'thumbnail': 'Help.Templates.Article.WebHome@article.png'
39 }, {
40 'title': 'Encyclopedia',
41 'description': 'Encyclopedia page',
42 'examples': 'Help.Templates.Encyclopedia.WebHome',
43 'thumbnail': 'Help.Templates.Encyclopedia.WebHome@encyclopedia.png'
44 }, {
45 'title': 'Meeting Report',
46 'description': 'Agenda and notes',
47 'examples': 'Help.Templates.Meeting.WebHome',
48 'thumbnail': 'Help.Templates.Meeting.WebHome@meeting.png'
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'
54 }])
55 {{/velocity}}
56
57 {{velocity}}
58 {{html clean="false"}}
59 <div class="row">
60 #foreach ($card in $actionCards)
61 ## See http://getbootstrap.com/css/#grid-responsive-resets .
62 #if ($foreach.index > 0 && $foreach.index % 2 == 0)
63 <div class="clearfix visible-sm-block visible-md-block visible-lg-block"></div>
64 #end
65 <div class="col-xs-12 col-sm-6">
66 #helpActionCard($card)
67 </div>
68 #end
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>
72 <div class="row">
73 #foreach ($card in $exampleCards)
74 ## See http://getbootstrap.com/css/#grid-responsive-resets .
75 #if ($foreach.index > 0 && $foreach.index % 2 == 0)
76 <div class="clearfix visible-sm-block "></div>
77 #end
78 #if ($foreach.index > 0 && $foreach.index % 3 == 0)
79 <div class="clearfix visible-md-block"></div>
80 #end
81 #if ($foreach.index > 0 && $foreach.index % 4 == 0)
82 <div class="clearfix visible-lg-block"></div>
83 #end
84 <div class="col-xs-12 col-sm-6 col-md-4 col-lg-3">
85 #helpExampleCard($card)
86 </div>
87 #end
88 </div>
89 <p><a href="http://extensions.xwiki.org/xwiki/bin/view/Extension/Templates+Application/" class="wikiexternallink">View more templates</a></p>
90 {{/html}}
91 {{/velocity}}

Tips

Jump to any page in the wiki with Ctrl+G or Meta+G.
See more shortcuts.

My Recent Modifications

Need help?

If you need help with XWiki you can contact: