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