Changes for page Download Version

Last modified by Eduard Moraru on 2018/06/21

<
From version < 4.3 >
edited by Vincent Massol
on 2017/05/30
To version < 4.4 >
edited by Eduard Moraru
on 2017/06/21
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.VincentMassol
1 +XWiki.enygma
Content
... ... @@ -1,46 +1,5 @@
1 1  {{velocity}}
2 -$xwiki.ssx.use("Download.WebHome")
3 3  ## ################################################################
4 -## $demoDistibutions = TypeID (0) - Title (1) - Type (2) - Description (3) - Installation Link (4)
5 -## ################################################################
6 -#set ($demoDistibutions = [
7 - ['enterpriseInstallerGeneric', 'Graphical Installer for All Platforms', 'JAR',
8 - "Should be used by first-time users on non-Windows systems. This installer requires administrator rights on the target OS and if you don't have those permissions use the ZIP packaging below.",
9 - "platform:AdminGuide.InstallationStandalone||queryString='packaging=JAR"],
10 -
11 - ['enterpriseInstallerWindows', 'Graphical Installer for Windows', 'EXE',
12 - "This installer requires administrator rights on the target OS and if you don't have those permissions use the ZIP packaging below.",
13 - "platform:AdminGuide.InstallationStandalone||queryString='packaging=EXE"],
14 -
15 - ['enterpriseJettyHsqldb', 'ZIP Package', 'ZIP',
16 - "This includes a Jetty Servlet Container and an HSQLDB database all set up, packaged as a ZIP file. Should be used by first-time users who do not need/want to use one of the installers above.",
17 - "platform:AdminGuide.InstallationStandalone||queryString='packaging=ZIP"]
18 -])
19 -#set ($productionDistibutions = [
20 - ['enterpriseWeb', 'WAR file for Servlet Container', 'WAR',
21 - "A database and a Servlet Container need to be set up and configured. This is for more advanced users wanting to choose their container and their database.",
22 - "platform:AdminGuide.InstallationWAR"],
23 - ['debianpackages', 'Debian/Ubuntu Installation', 'DEB',
24 - "A Debian repository containing a set a Debian packages to install XWiki on any Debian based distribution.",
25 - "platform:AdminGuide.InstallationViaAPT"],
26 - ['docker', 'Docker Image', 'Docker',
27 - 'An easy solution to test a full-fledged XWiki, with a configuration very close to a production setup.',
28 - 'https://hub.docker.com/_/xwiki/']
29 -])
30 -##['enterpriseWiki', 'Default set of XWiki pages', 'XAR',
31 -## "These pages need to be loaded in an empty XWiki instance.",
32 -## "platform:AdminGuide.InstallationWAR||anchor='HInstallingtheDefaultWikiXAR'"],
33 -## ################################################################
34 -## $downloadLinks = TypeID: File (0) - Extension (1)
35 -## ################################################################
36 -#set ($downloadLinks = {
37 - 'enterpriseInstallerWindows': ['xwiki-enterprise-installer-windows-', '.exe', 'success'],
38 - 'enterpriseInstallerGeneric': ['xwiki-enterprise-installer-generic-', '-standard.jar', 'success'],
39 - 'enterpriseJettyHsqldb': ['xwiki-enterprise-jetty-hsqldb-', '.zip', 'success'],
40 - 'enterpriseWeb': ['xwiki-enterprise-web-', '.war', 'primary'],
41 - 'enterpriseWiki': ['xwiki-enterprise-ui-mainwiki-all-', '.xar', 'primary']
42 -})
43 -## ################################################################
44 44  ## Generate URL to OW2 XWiki files that will be used by Main.Download.DownloadForm page
45 45  ## ################################################################
46 46  #macro(downloadurl $link $version)
... ... @@ -59,16 +59,32 @@
59 59  ## ################################################################
60 60  ## $categories = Name (0) - Distributions (1) - Color (2) - Description (3)
61 61  ## ################################################################
62 -#set ($categories = [
63 - ['Demo Installation', $demoDistibutions, 'green',
64 - "These Demo packages are not supposed to be used in production, since the embedded database does not support large wikis efficiently and is not tuned for a production usage."],
65 - ['Production Installation', $productionDistibutions, 'blue',
66 - "Once you're more familiar with XWiki you might want to set it up on your own database or in your own container, in which case you'll then be able to download the WAR file and set up your instance."]
67 -])
21 +#macro (loadCategories)
22 + #set ($categories = [
23 + ['Demo Installation', $demoDistibutions, 'green',
24 + "These Demo packages are not supposed to be used in production, since the embedded database does not support large wikis efficiently and is not tuned for a production usage."],
25 + ['Production Installation', $productionDistibutions, 'blue',
26 + "Once you're more familiar with XWiki you might want to set it up on your own database or in your own container, in which case you'll then be able to download the WAR file and set up your instance."]
27 + ])
28 +#end
29 +## ################################################################
30 +## Request Handler
31 +## ################################################################
68 68  #set ($projectVersion = $request.get('projectVersion'))
69 69  #if ("$!projectVersion" != '')
34 + #set ($versionDataPage = 'Latest')
35 + #set ($version = $stringtool.split($projectVersion, '.'))
36 + #set ($majorVersion = $numbertool.toNumber($version[0]))
37 + #set ($minorVersion = $numbertool.toNumber($version[1].charAt(0)))
38 + #if ($majorVersion <= 9 && $minorVersion < 5)
39 + #set ($versionDataPage = 'Before9\.5')
40 + #end
41 + {{include reference="$versionDataPage" /}}
42 +
43 + $xwiki.ssx.use("Download.WebHome")
70 70   {{html wiki='true'}}
71 71   <div class='download-options download-installation'>
46 + #loadCategories()
72 72   #foreach($category in $categories)
73 73   <div class='col-xs-12 download-container download-option border-$category.get(2)'>
74 74   <h3>$category.get(0)</h3>
... ... @@ -94,3 +94,4 @@
94 94   $response.sendRedirect($xwiki.getURL('Download.WebHome'))
95 95  #end
96 96  {{/velocity}}
72 +

Get Connected