Changes for page Download Version

Last modified by Vincent Massol on 2024/04/02

From version 4.5
edited by Eduard Moraru
on 2017/06/21
Change comment: There is no comment for this version
To version 4.3
edited by Vincent Massol
on 2017/05/30
Change comment: Ubuntu is quite common so make it simpler for user to choose

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.enygma
1 +XWiki.VincentMassol
Content
... ... @@ -1,5 +1,46 @@
1 1  {{velocity}}
2 +$xwiki.ssx.use("Download.WebHome")
2 2  ## ################################################################
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 +## ################################################################
3 3  ## Generate URL to OW2 XWiki files that will be used by Main.Download.DownloadForm page
4 4  ## ################################################################
5 5  #macro(downloadurl $link $version)
... ... @@ -18,33 +18,16 @@
18 18  ## ################################################################
19 19  ## $categories = Name (0) - Distributions (1) - Color (2) - Description (3)
20 20  ## ################################################################
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 -## ################################################################
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 +])
32 32  #set ($projectVersion = $request.get('projectVersion'))
33 33  #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 - $majorVersion . $minorVersion => $versionDataPage
42 - {{include reference="$versionDataPage" /}}
43 -
44 - $xwiki.ssx.use("Download.WebHome")
45 45   {{html wiki='true'}}
46 46   <div class='download-options download-installation'>
47 - #loadCategories()
48 48   #foreach($category in $categories)
49 49   <div class='col-xs-12 download-container download-option border-$category.get(2)'>
50 50   <h3>$category.get(0)</h3>
... ... @@ -70,4 +70,3 @@
70 70   $response.sendRedirect($xwiki.getURL('Download.WebHome'))
71 71  #end
72 72  {{/velocity}}
73 -

Get Connected