Wiki source code of Extensions

Version 50.1 by Vincent Massol on 2011/11/18 11:47

Show last authors
1 {{velocity}}
2 ## This pages serves 2 purposes:
3 ## - Used by the Extension Manager UI to display the documentation link for an extension based on the Maven <url> element which are set to http://xwiki.org/documentation?id=${groupId}:${artifactId}&path=...
4 ## See http://markmail.org/thread/s5lszhwxa5e7yl5u for details
5 ## - It's displays the list of extensions (when there's no "id" request parameter)
6 ##
7 #if ("$!request.id" != "")
8 ## Locate the extension by its id
9 #set ($xwql = "where doc.object(ExtensionCode.ExtensionClass).id = '$request.id'")
10 #set ($result = $services.query.xwql($xwql).execute())
11 #if ($result.size() > 0)
12 $response.sendRedirect($xwiki.getURL($result.get(0)))
13 #else
14 ## Unknown ID, list all extensions
15 {{include document="Extension.WebHome"/}}
16 #end
17 #else
18 {{include document="Extension.WebHome"/}}
19 #end
20 {{/velocity}}

Get Connected