Change comment:
Ubuntu is quite common so make it simpler for user to choose
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki.en ygma1 +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,35 +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.WebHome') 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.WebHome') 40 - #end 41 - $majorVersion . $minorVersion => $versionDataPage 42 - {{include reference="$versionDataPage" /}} 43 - 44 - $demoDistibutions 45 - 46 - $xwiki.ssx.use("Download.WebHome") 47 47 {{html wiki='true'}} 48 48 <div class='download-options download-installation'> 49 - #loadCategories() 50 50 #foreach($category in $categories) 51 51 <div class='col-xs-12 download-container download-option border-$category.get(2)'> 52 52 <h3>$category.get(0)</h3> ... ... @@ -72,4 +72,3 @@ 72 72 $response.sendRedirect($xwiki.getURL('Download.WebHome')) 73 73 #end 74 74 {{/velocity}} 75 -