Wiki source code of Extensions
Version 9.3 by Thomas Mortagne on 2012/01/31 16:12
Hide last authors
author | version | line-number | content |
---|---|---|---|
8.1 | 1 | {{include document="ExtensionCode.RepositoryCode"/}} | |
2.1 | 2 | ||
8.1 | 3 | {{include document="ExtensionCode.CreateExtension"/}} | |
4 | |||
2.1 | 5 | (% class="centered" %) ((( | |
6 | |||
7 | (% class="extension-link search-extension" %)((( | ||
8 | Search Extension... | ||
9 | ((( | ||
10 | {{velocity}} | ||
11 | {{html}} | ||
12 | <form action="$xwiki.getURL("ExtensionCode.ExtensionSearch")"> | ||
13 | <input type="hidden" name="space" value="Extension" /> | ||
8.1 | 14 | <input type="text" name="text" value="extension name..." size="25" class="withTip" id="searchTextInput" /> | |
2.1 | 15 | <span class="buttonwrapper"> | |
8.1 | 16 | <input class="button" type="submit" value="Search" id="searchSubmit"/> | |
2.1 | 17 | </span> | |
18 | </form> | ||
19 | {{/html}} | ||
20 | {{/velocity}} | ||
21 | ))) | ||
22 | ))) | ||
23 | |||
24 | (% class="extension-link add-extension" %)((( | ||
25 | Contribute Extension... | ||
26 | |||
27 | ((( | ||
28 | {{velocity}} | ||
29 | {{html}} | ||
30 | #if ($isGuest) | ||
8.1 | 31 | 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>. | |
2.1 | 32 | #else | |
8.1 | 33 | <form action="" id="createextension"> | |
2.1 | 34 | <input type="hidden" name="parent" value="Extension.WebHome" /> | |
35 | <input type="hidden" name="template" value="ExtensionCode.ExtensionTemplate" /> | ||
36 | <input type="hidden" name="createExtension" value="true" /> | ||
8.1 | 37 | <input class="withTip" type="text" name="name" value="extension name..." size="25" id="contributeNameInput"/> | |
2.1 | 38 | <span class="buttonwrapper"> | |
8.1 | 39 | <input class="button" type="submit" value="Add" id="contributeSubmit"/> | |
2.1 | 40 | </span> | |
41 | </form> | ||
9.3 | 42 | #if ($hasAdmin) | |
43 | [[Import extension>>ExtensionCode.ImportExtension]] | ||
44 | #end | ||
2.1 | 45 | {{/html}} | |
46 | #end | ||
47 | {{/velocity}} | ||
48 | ))) | ||
49 | ))) | ||
50 | |||
51 | ))) | ||
52 | |||
53 | (% class="clearfloats" %)((()))(%%) | ||
54 | |||
8.1 | 55 | {{velocity}} | |
56 | #set($columns = ["name", "summary", "type", "authors", "doc.creationDate", "doc.date"]) | ||
57 | #set($columnsProperties = { | ||
58 | "name" : { "type" : "text", "link" : "view" }, | ||
59 | "summary" : { "type" : "text" }, | ||
60 | "type" : { "type" : "list" }, | ||
61 | "authors" : { "type" : "text"}, | ||
62 | "doc.creationDate" : { "type" : "date" }, | ||
63 | "doc.date" : { "type" : "date" } | ||
64 | }) | ||
65 | #set($options = { | ||
66 | "tagCloud":true, | ||
67 | "resultPage":"ExtensionCode.ExtensionJSON", | ||
68 | "className":"ExtensionCode.ExtensionClass", | ||
69 | "selectedColumn":"doc.creationDate", | ||
70 | "defaultOrder":"desc", | ||
71 | "translationPrefix" : "extension.repository.", | ||
72 | "rowCount": 30, | ||
73 | "extraParams" : 'space=Extension' | ||
74 | }) | ||
75 | #livetable("extensions" $columns $columnsProperties $options) | ||
2.1 | 76 | ||
77 | (% class="hidden" %) ((( | ||
78 | Temporary provide a link for robots to index all extension. | ||
79 | In the future, this link will be provided via a sitemap. | ||
80 | [[ExtensionCode.AllExtensionsList]] | ||
81 | ))) | ||
8.1 | 82 | {{/velocity}} |