Wiki source code of Extensions

Version 5.4 by Thomas Mortagne on 2011/11/03 11:53

Hide last authors
Admin 2.1 1 {{velocity output="false"}}
2 ## If this page is called with createExtension=true then create a new page using the ExtensionTemplate template
3 #if ($request.createExtension == "true")
Thomas Mortagne 5.4 4 $response.sendRedirect($xwiki.getURL("Extension.${request.name}", "inline", "$!{request.queryString}"))
Admin 2.1 5 #end
6 {{/velocity}}
7
Thomas Mortagne 4.1 8 {{box cssClass="extensionsAbout"}}
9 Extensions are ways to extend XWiki Enterprise. Select the Extension you wish to install from the list below and then follow the instructions on the extension page to install it in your wiki.
10 {{/box}}
11
Admin 2.1 12 (% class="centered" %) (((
13
14 (% class="extension-link search-extension" %)(((
15 Search Extension...
16 (((
17 {{velocity}}
18 {{html}}
19 <form action="$xwiki.getURL("ExtensionCode.ExtensionSearch")">
20 <input type="hidden" name="space" value="Extension" />
21 <input type="text" name="text" value="extension id..." size="25" class="withTip" />
22 <span class="buttonwrapper">
23 <input class="button" type="submit" value="Search" />
24 </span>
25 </form>
26 {{/html}}
27 {{/velocity}}
28 )))
29 )))
30
31 (% class="extension-link add-extension" %)(((
32 Contribute Extension...
33
34 (((
35 {{velocity}}
36 {{html}}
37 #if ($isGuest)
38 You need first to <a href="${escapetool.xml($xwiki.getURL("Main.WebHome", "login", "xredirect=$doc.externalURL"))}">log in</a> or <a href="${escapetool.xml($xwiki.getURL("xwiki:Main.WebHome", "register", "xredirect=$doc.externalURL"))}">register</a>.
39 #else
40 <form action="" id="newextension">
41 <input type="hidden" name="parent" value="Extension.WebHome" />
42 <input type="hidden" name="template" value="ExtensionCode.ExtensionTemplate" />
43 <input type="hidden" name="createExtension" value="true" />
Thomas Mortagne 5.2 44 <input class="withTip" type="text" name="name" value="extension name..." size="25"/>
Admin 2.1 45 <span class="buttonwrapper">
46 <input class="button" type="submit" value="Add" />
47 </span>
48 </form>
49 {{/html}}
50 #end
51 {{/velocity}}
52 )))
53 )))
54
55 )))
56
57 (% class="clearfloats" %)((()))(%%)
58
59 {{velocity}}
Thomas Mortagne 4.2 60 #set($columns = ["name", "summary", "type", "authors", "doc.creationDate", "doc.date"])
Admin 2.1 61 #set($columnsProperties = {
62 "name" : { "type" : "text", "link" : "view" },
Thomas Mortagne 2.2 63 "summary" : { "type" : "text", "link" : "view" },
Admin 2.1 64 "type" : { "type" : "list" },
65 "authors" : { "type" : "string"},
66 "doc.creationDate" : { "type" : "date" },
67 "doc.date" : { "type" : "date" }
68 })
69 #set($options = {
70 "tagCloud":true,
71 "resultPage":"ExtensionCode.ExtensionJSON",
72 "className":"ExtensionCode.ExtensionClass",
73 "selectedColumn":"doc.creationDate",
74 "defaultOrder":"desc",
75 "translationPrefix" : "extension.repository.",
76 "rowCount": 30,
77 "extraParams" : 'space=Extension'
78 })
79 #livetable("extensions" $columns $columnsProperties $options)
80
81 (% class="hidden" %) (((
82 Temporary provide a link for robots to index all extension.
83 In the future, this link will be provided via a sitemap.
84 [[ExtensionCode.AllExtensionsList]]
85 )))
86 {{/velocity}}

Get Connected