Changes for page Extensions

Last modified by Simon Urli on 2021/03/17 22:09

From version 25.9
edited by Vincent Massol
on 2016/07/22 14:00
Change comment: There is no comment for this version
To version 26.2
edited by Vincent Massol
on 2016/09/08 18:47
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,79 +7,10 @@
1 -{{include reference="ExtensionCode.RepositoryCode"/}}
2 -
3 -{{include reference="ExtensionCode.CreateExtension"/}}
4 -
5 -(% class="extension-link search-extension box" %)(((
6 -(((
7 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>.
2 +## Redirect the user on the extension page he was at previously.
3 +#set ($reference = $request.getSession().getAttribute("exoExtensionHome"))
4 +#if ("$!reference" == '')
5 + #set ($reference = 'ExtensionCode.RecommendedExtensions.WebHome')
31 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]]
7 + #set ($reference = 'ExtensionCode.AllExtensions.WebHome')
46 46  #end
9 +{{include reference="$reference"/}}
47 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}}

Get Connected