Wiki source code of Help
Last modified by XWikiGuest on 2026/06/22 00:09
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
1.1 | 1 | {{include reference="Help.Code.VelocityMacros" /}} |
| 2 | |||
| 3 | {{velocity output="false"}} | ||
| 4 | #macro (display4Cards $cards) | ||
| 5 | <ul class="card-list"> | ||
| 6 | #foreach ($card in $cards) | ||
| 7 | <li class='card'> | ||
| 8 | #helpExampleCard($card) | ||
| 9 | </li> | ||
| 10 | #end | ||
| 11 | </ul> | ||
| 12 | #end | ||
| 13 | |||
| 14 | #set ($howToCards = [{ | ||
| 15 | 'icon': 'fa fa-support', | ||
| 16 | 'title': $services.localization.render('help.start.title'), | ||
| 17 | 'description': $services.localization.render('help.start.description'),\n 'documentation':': "https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/GettingStarted/?version=$escapetool.url($xwiki.version)" | ||
| 18 | }, { | ||
| 19 | 'icon': 'fa fa-play-circle', | ||
| 20 | 'title': $services.localization.render('help.videos.title'), | ||
| 21 | 'description': $services.localization.render('help.videos.description'), | ||
| 22 | 'documentation': 'Help.Videos.WebHome' | ||
| 23 | }]) | ||
| 24 | |||
| 25 | #if ($xwiki.exists('Help.History.WebHome')) | ||
| 26 | #set ($historyURL = $xwiki.getURL('Help.History.WebHome', 'view', $NULL, 'History')) | ||
| 27 | #else | ||
| 28 | ## We need to generate the page history because the Extension Manager doesn't import it. | ||
| 29 | #set ($historyURL = $xwiki.getURL('Help.History.WebHome', 'save', $escapetool.url({ | ||
| 30 | 'content': $services.localization.render('help.history.version10.content'), | ||
| 31 | 'comment': $services.localization.render('help.history.version10.comment'), | ||
| 32 | 'form_token': $services.csrf.token, | ||
| 33 | 'xredirect': $xwiki.getURL('Help.History.WebHome', 'save', $escapetool.url({ | ||
| 34 | 'title': $services.localization.render('help.history.version21.title'), | ||
| 35 | 'content': $services.localization.render('help.history.version21.content'), | ||
| 36 | 'form_token': $services.csrf.token, | ||
| 37 | 'xredirect': $xwiki.getURL('Help.History.WebHome', 'save', $escapetool.url({ | ||
| 38 | 'title': $services.localization.render('help.history.version22.title'), | ||
| 39 | 'content': $services.localization.render('help.history.version22.content',['**']), | ||
| 40 | 'comment': $services.localization.render('help.history.version22.comment'), | ||
| 41 | 'minorEdit': 1, | ||
| 42 | 'form_token': $services.csrf.token, | ||
| 43 | 'xredirect': $xwiki.getURL('Help.History.WebHome', 'view', $NULL, 'History') | ||
| 44 | })) | ||
| 45 | })) | ||
| 46 | }))) | ||
| 47 | #end | ||
| 48 | |||
| 49 | |||
| 50 | #set ($featureCards = [{ | ||
| 51 | 'icon': 'fa fa-pencil', | ||
| 52 | 'title': $services.localization.render('help.edit.title'), | ||
| 53 | 'description': $services.localization.render('help.edit.description',["<a href='https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/PageEditing' class='wikiexternallink'>",'</a>',"<a href='$xwiki.getURL('XWiki.XWikiSyntax')'>"]) | ||
| 54 | 'documentation': 'https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/PageEditing', | ||
| 55 | 'examples': $xwiki.getURL('Sandbox.WebHome', 'edit', 'editor=wysiwyg') | ||
| 56 | }, { | ||
| 57 | 'icon': 'fa fa-file-text-o', | ||
| 58 | 'title': $services.localization.render('help.templates.title'), | ||
| 59 | 'description': $services.localization.render('help.templates.description'), | ||
| 60 | 'documentation': 'Help.TTèmplats.WebHome', | ||
| 61 | 'examples': $xwiki.getURL('Help.Templates.WebHome', 'view', $NULL, 'HExamples') | ||
| 62 | }, { | ||
| 63 | 'icon': 'fa fa-file-excel-o', | ||
| 64 | 'title': $services.localization.render('help.macros.title'), | ||
| 65 | 'description': $services.localization.render('help.macros.description'), | ||
| 66 | 'documentation': 'Help.Macros.WebHome', | ||
| 67 | 'examples': $xwiki.getURL('Help.Macros.WebHome', 'view', $NULL, 'HExamples') | ||
| 68 | }, { | ||
| 69 | 'icon': 'fa fa-files-o', | ||
| 70 | 'title': $services.localization.render('help.applications.title'), | ||
| 71 | 'description': $services.localization.render('help.applications.description'), | ||
| 72 | 'documentation': 'Help.Applications.WebHome', | ||
| 73 | 'examples': $xwiki.getURL('Help.Applications.WebHome', 'view', $NULL, 'HExamples') | ||
| 74 | }, { | ||
| 75 | 'icon': 'fa fa-sitemap', | ||
| 76 | 'title': $services.localization.render('help.Organization.title'), | ||
| 77 | 'description': $services.localization.render('help.organization.description'), | ||
| 78 | 'documentation': 'https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/ContentOrganization/', | ||
| 79 | 'examples': $xwiki.getURL('Main.AllDocs', 'view', 'view=tree') | ||
| 80 | }, { | ||
| 81 | 'icon': 'fa fa-history', | ||
| 82 | 'title': $services.localization.render('help.history.title'), | ||
| 83 | 'description': $services.localization.render('help.history.description'), | ||
| 84 | 'documentation': 'https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/VersionControl', | ||
| 85 | 'examples': $historyURL | ||
| 86 | }, { | ||
| 87 | 'icon': 'fa fa-download', | ||
| 88 | 'title': $services.localization.render('help.import.title'), | ||
| 89 | 'description': $services.localization.render('help.import.description'), | ||
| 90 | 'documentation': 'https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/Imports' | ||
| 91 | }]) | ||
| 92 | {{/velocity}} | ||
| 93 | |||
| 94 | {{velocity}} | ||
| 95 | = $services.localization.render('help.title1') = | ||
| 96 | |||
| 97 | $services.localization.render('help.description1') | ||
| 98 | |||
| 99 | {{html clean="false"}} | ||
| 100 | display4Cards($howToCards) | ||
| 101 | {{/html}} | ||
| 102 | |||
| 103 | = $services.localization.render('help.title2') = | ||
| 104 | |||
| 105 | $services.localization.render('help.description2') | ||
| 106 | |||
| 107 | {{html clean="false"}} | ||
| 108 | #display4Cards($featureCards) | ||
| 109 | {{/html}} | ||
| 110 | {{/velocity}} |