Wiki source code of Recommended Extensions
Last modified by Vincent Massol on 2022/09/23 13:33
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{velocity}} | ||
2 | ## Saving the fact that we're listing all extensions in the Session so that when the user is viewing an extension | ||
3 | ## and clicks in the breadcrumb to come back to Extensions.WebHome, we can redirect him/her to the same page he | ||
4 | ## initially viewing. | ||
5 | #set ($discard = $request.getSession().setAttribute("exoExtensionHome", 'ExtensionCode.RecommendedExtensions.WebHome')) | ||
6 | {{/velocity}} | ||
7 | |||
8 | {{include document="ExtensionCode.ExtensionsLayout.WebHome"/}}{{display reference="EXOExtension.StoreContentFeatured"/}} | ||
9 | |||
10 | (% class="homepage-content container clearfix" %) | ||
11 | ((( | ||
12 | (% class="row" %) | ||
13 | ((( | ||
14 | (% class="col-xs-12 slide homepage" %) | ||
15 | ((( | ||
16 | = (% class="pull-left" %)Recommended Extensions(%%) = | ||
17 | |||
18 | (% class="clearfix" %) | ||
19 | ((( | ||
20 | |||
21 | ))) | ||
22 | |||
23 | == You can check the [[definition>>ExtensionCode.RecommendedExtensions.RecommendedDefinition]] of what a Recommended Extension is. == | ||
24 | |||
25 | (% class="clearfix" %) | ||
26 | ((( | ||
27 | |||
28 | ))) | ||
29 | |||
30 | {{velocity}} | ||
31 | ##set($columns = ["name", "summary", "category", "authors", "doc.creationDate", "doc.date", "installedCount", "rating", "recommended"]) | ||
32 | #set($columns = ["name", "summary", "category", "authors", "doc.creationDate", "doc.date", "installedCount", "recommended"]) | ||
33 | #set($columnsProperties = { | ||
34 | "name" : { "type" : "text", "link" : "view" }, | ||
35 | "summary" : { "type" : "text" }, | ||
36 | "category" : { "type" : "list" }, | ||
37 | "authors" : {'html': true}, | ||
38 | "doc.creationDate" : { "type" : "date" }, | ||
39 | "doc.date" : { "type" : "date" }, | ||
40 | "rating" : { 'html' : true, 'filterable' : false, 'sortable' : false}, | ||
41 | "recommended" : { 'type' : "hidden" } | ||
42 | }) | ||
43 | ## VMA 6/9/2016, don't display tags for the moment because of https://jira.xwiki.org/browse/XWIKI-13680 | ||
44 | ## When it's fixed, put it back! | ||
45 | #set($options = { | ||
46 | "tagCloud":false, | ||
47 | "className":"ExtensionCode.ExtensionClass", | ||
48 | "selectedColumn":"doc.creationDate", | ||
49 | "defaultOrder":"desc", | ||
50 | "translationPrefix" : "extension.repository.", | ||
51 | "rowCount": 15, | ||
52 | "extraParams" : "&recommended=1" | ||
53 | }) | ||
54 | #livetable("recommendedextensions" $columns $columnsProperties $options) | ||
55 | {{/velocity}} | ||
56 | |||
57 | {{velocity}} | ||
58 | #if ("$!request.projects" == '1') | ||
59 | = (% class="pull-left" %)Recommended Projects(%%) = | ||
60 | |||
61 | (% class="clearfix" %) | ||
62 | ((( | ||
63 | |||
64 | ))) | ||
65 | |||
66 | #set($columns = ["name", "summary", "authors", "doc.creationDate", "doc.date", "recommended"]) | ||
67 | #set($columnsProperties = { | ||
68 | "name" : { "type" : "text", "link" : "view" }, | ||
69 | "summary" : { "type" : "text" }, | ||
70 | "authors" : {'html': true}, | ||
71 | "doc.creationDate" : { "type" : "date" }, | ||
72 | "doc.date" : { "type" : "date" }, | ||
73 | "recommended" : { 'type' : "hidden" } | ||
74 | }) | ||
75 | ## VMA 6/9/2016, don't display tags for the moment because of https://jira.xwiki.org/browse/XWIKI-13680 | ||
76 | ## When it's fixed, put it back! | ||
77 | #set($options = { | ||
78 | "tagCloud":false, | ||
79 | "className":"ExtensionCode.ProjectClass", | ||
80 | "selectedColumn":"doc.creationDate", | ||
81 | "defaultOrder":"desc", | ||
82 | "translationPrefix" : "extension.repository.", | ||
83 | "rowCount": 15, | ||
84 | "extraParams" : "&recommended=1" | ||
85 | }) | ||
86 | #livetable("recommendedprojects" $columns $columnsProperties $options) | ||
87 | #end | ||
88 | {{/velocity}} | ||
89 | ))) | ||
90 | ))) | ||
91 | ))) |