Wiki source code of Extensions

Version 8.1 by Admin on 2012/01/31 15:17

Show last authors
1 {{include document="ExtensionCode.RepositoryCode"/}}
2
3 {{include document="ExtensionCode.ImportExtension"/}}
4
5 {{include document="ExtensionCode.CreateExtension"/}}
6
7 (% class="centered" %) (((
8
9 (% class="extension-link search-extension" %)(((
10 Search Extension...
11 (((
12 {{velocity}}
13 {{html}}
14 <form action="$xwiki.getURL("ExtensionCode.ExtensionSearch")">
15 <input type="hidden" name="space" value="Extension" />
16 <input type="text" name="text" value="extension name..." size="25" class="withTip" id="searchTextInput" />
17 <span class="buttonwrapper">
18 <input class="button" type="submit" value="Search" id="searchSubmit"/>
19 </span>
20 </form>
21 {{/html}}
22 {{/velocity}}
23 )))
24 )))
25
26 (% class="extension-link add-extension" %)(((
27 Contribute Extension...
28
29 (((
30 {{velocity}}
31 {{html}}
32 #if ($isGuest)
33 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>.
34 #else
35 <form action="" id="createextension">
36 <input type="hidden" name="parent" value="Extension.WebHome" />
37 <input type="hidden" name="template" value="ExtensionCode.ExtensionTemplate" />
38 <input type="hidden" name="createExtension" value="true" />
39 <input class="withTip" type="text" name="name" value="extension name..." size="25" id="contributeNameInput"/>
40 <span class="buttonwrapper">
41 <input class="button" type="submit" value="Add" id="contributeSubmit"/>
42 </span>
43 </form>
44 {{/html}}
45 #end
46 {{/velocity}}
47 )))
48 )))
49
50 (% class="extension-link import-extension" %)(((
51 Import Extension...
52
53 (((
54 {{velocity}}
55 {{html}}
56 #if ($isGuest)
57 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>.
58 #else
59 <form action="" id="importextension">
60 <input type="hidden" name="parent" value="Extension.WebHome" />
61 <input type="hidden" name="template" value="ExtensionCode.ExtensionTemplate" />
62 <input type="hidden" name="importExtension" value="true" />
63 <input class="withTip" type="text" name="extensionId" value="extension id..." size="25" id="importExtensionIdInput"/>
64 <select name="repositoryId" id="importRepositoryIdInput">
65 #foreach($repository in $extensionManager.repositories)
66 #if ($repository.id.type != 'xwiki')
67 <option value="$escapetool.xml($repository.id.id)">$escapetool.html($repository.id.id)</option>
68 #end
69 #end
70 </select>
71 <span class="buttonwrapper">
72 <input class="button" type="submit" value="Import" id="importSubmit"/>
73 </span>
74 </form>
75 {{/html}}
76 #end
77 {{/velocity}}
78 )))
79 )))
80
81 )))
82
83 (% class="clearfloats" %)((()))(%%)
84
85 {{velocity}}
86 #set($columns = ["name", "summary", "type", "authors", "doc.creationDate", "doc.date"])
87 #set($columnsProperties = {
88 "name" : { "type" : "text", "link" : "view" },
89 "summary" : { "type" : "text" },
90 "type" : { "type" : "list" },
91 "authors" : { "type" : "text"},
92 "doc.creationDate" : { "type" : "date" },
93 "doc.date" : { "type" : "date" }
94 })
95 #set($options = {
96 "tagCloud":true,
97 "resultPage":"ExtensionCode.ExtensionJSON",
98 "className":"ExtensionCode.ExtensionClass",
99 "selectedColumn":"doc.creationDate",
100 "defaultOrder":"desc",
101 "translationPrefix" : "extension.repository.",
102 "rowCount": 30,
103 "extraParams" : 'space=Extension'
104 })
105 #livetable("extensions" $columns $columnsProperties $options)
106
107 (% class="hidden" %) (((
108 Temporary provide a link for robots to index all extension.
109 In the future, this link will be provided via a sitemap.
110 [[ExtensionCode.AllExtensionsList]]
111 )))
112 {{/velocity}}

Get Connected