Wiki source code of Extensions
Version 23.1 by Thomas Mortagne on 2016/02/23 14:39
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{include reference="ExtensionCode.RepositoryCode"/}} | ||
2 | |||
3 | {{include reference="ExtensionCode.CreateExtension"/}} | ||
4 | |||
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" /> | ||
14 | <input type="text" name="text" value="extension name..." size="25" class="withTip" id="searchTextInput" /> | ||
15 | <span class="buttonwrapper"> | ||
16 | <input class="button" type="submit" value="Search" id="searchSubmit"/> | ||
17 | </span> | ||
18 | </form> | ||
19 | {{/html}} | ||
20 | |||
21 | [[Advanced>>ExtensionCode.ExtensionSearch||queryString="space=Extension"]] | ||
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($services.model.resolveDocument('', 'default'), "register", "xredirect=$doc.externalURL"))}">register</a>. | ||
34 | #else | ||
35 | <form action="$doc.getURL()" 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 | |||
46 | [[Import>>ExtensionCode.ImportExtension]] | ||
47 | |||
48 | [[How to contribute?>>EXOExtension.ContributingXWikiXarExtensions]] | ||
49 | #end | ||
50 | {{/velocity}} | ||
51 | ))) | ||
52 | ))) | ||
53 | |||
54 | ))) | ||
55 | |||
56 | (% class="clearfloats" %)((()))(%%) | ||
57 | |||
58 | {{velocity}} | ||
59 | #set($columns = ["name", "summary", "type", "category", "authors", "doc.creationDate", "doc.date"]) | ||
60 | #set($columnsProperties = { | ||
61 | "name" : { "type" : "text", "link" : "view" }, | ||
62 | "summary" : { "type" : "text" }, | ||
63 | "type" : { "type" : "list" }, | ||
64 | "category" : { "type" : "list" }, | ||
65 | "authors" : { "type" : "list", 'html': true}, | ||
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}} |