Toggle navigation
Log-in
Register
Wiki Index
Page Index
User Index
Application Index
Home
About
XWiki's Concept
News & Blog
Roadmap
Releases Notes
References
License
Projects
XWiki
Extensions
Code Snippets
All projects
Documentation
Contribute
Get Involved
Development
Translations
Feedback
Support
FAQs
Community Support
Professional Support
Download
Try
Download
Try now
Home
Projects
XWiki Enterprise
Extensions
All projects
Documentation
Download
Try
Download XWiki
Download Version
Wiki source code of
Download Version
Last modified by
Eduard Moraru
on 2018/06/21
Copy
Export
Print preview
View Source
Children
Content
×
Export
Office Formats
Export as PDF
Other Formats
Select the pages to export:
select all
/
none
Export as HTML
Show line numbers
{{velocity}} ## ## Determine the data page to include. ## Note: Using a separate velocity block and at the top so that we may use the include wiki macro. ## #set ($projectVersion = $request.get('projectVersion')) #if ("$!projectVersion" != '') #set ($versionPart = $stringtool.substringBefore($projectVersion, '-')) #set ($version = $stringtool.split($versionPart, '.')) #set ($majorVersion = $numbertool.toNumber($version[0])) #set ($minorVersion = $numbertool.toNumber($version[1])) #if ($version.size() == 3) #set ($bugfixVersion = $numbertool.toNumber($version[2])) #end ## Read the version's artefacts and file names from the dedicated page. #set ($versionDataPage = '.Latest.WebHome') ## Dedicated pages exist for older versions with different contents and file names. #if ($majorVersion < 9 || ($majorVersion == 9 && $minorVersion < 5)) ## < 9.5 #set ($versionDataPage = '.Before9\.5.WebHome') #elseif (($majorVersion == 9 && ($minorVersion < 11 || ($minorVersion == 11 && $bugfixVersion < 6))) || ($majorVersion == 10 && $minorVersion < 5)) ## > 9.5 and < 10.5, but > 9.11.6+ (i.e. except 9.11.x starting from 9.11.6) #set ($versionDataPage = '.Before10\.5.WebHome') #end {{include reference="$versionDataPage" /}} #end {{/velocity}}{{velocity}} ## ################################################################ ## Generate the URL to XWiki files that will be used by the Download.DownloadForm page ## ################################################################ #macro(downloadurl $link $version) #set ($downloadLinkData = $downloadLinks.get($link)) #if ($downloadLinkData) #if ($downloadLinkData.containsKey($version)) ## The artifact to be downloaded depends on the version. ## This happens for instance when we rename an artifact. #set ($downloadLinkData = $downloadLinkData.get($version)) #end #set ($downloadLinkPath = "#getDownloadLinkPath($downloadLinkData, $version)") #set ($version = $escapetool.xml($version)) ## Last $downloadLinkData element always contains the link button class. #set ($linkBtnClass = "${downloadLinkData.get($mathtool.sub($downloadLinkData.size(), 1))}") [[Download>>Download.DownloadForm||queryString="downloadURL=${downloadLinkBase}${downloadLinkPath}&projectVersion=${version}" class="btn btn-xs btn-$linkBtnClass"]] #end #end ## ################################################################ ## $categories = Name (0) - Distributions (1) - Color (2) - Description (3) ## ################################################################ #set ($categories = [ ['Demo Installation', $demoDistibutions, 'green', "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."], ['Production Installation', $productionDistibutions, 'blue', "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."] ]) ## ################################################################ ## Request Handler ## ################################################################ #set ($projectVersion = $request.get('projectVersion')) #if ("$!projectVersion" != '') $xwiki.ssx.use("Download.WebHome") {{html wiki='true' clean='false'}} <div class='download-options download-installation'> #foreach($category in $categories) <div class='col-xs-12 download-container download-option border-$category.get(2)'> <h3>$category.get(0)</h3> <div class='list-group'> #foreach($distibution in ${category.get(1)}) <div class='list-group-item'> <span class='badge fill-gray'>$distibution.get(2)</span> <h4 class='list-group-item-heading'>$distibution.get(1)</h4> <p class='list-group-item-text noitems'>$distibution.get(3)</p> <div class='buttons'> #downloadurl($distibution.get(0), $projectVersion) #if ($stringtool.isNotBlank($distibution.get(4))) (% class='btn btn-xs btn-link' %)[[Installation Notes>>$distibution.get(4)]](%%) #end </div> </div> #end </div> <p class='noitems'>$category.get(3)</p> </div> #end </div> {{/html}} #else $response.sendRedirect($xwiki.getURL('Download.WebHome')) #end {{/velocity}}
Quick Links
Supporters
Let us know
What do you think about our product?
What do you think of our website?