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