Wiki source code of Recommended Extensions
Version 6.12 by Vincent Massol on 2017/01/09 15:09
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 | |||
17 | = (%class="pull-left"%)Recommended Extensions = | ||
18 | |||
19 | (%class="clearfix"%)((())) | ||
20 | |||
21 | == You can check the [[definition>>ExtensionCode.RecommendedExtensions.RecommendedDefinition]] of what a Recommended Extension is.== | ||
22 | |||
23 | (%class="clearfix"%)((())) | ||
24 | |||
25 | {{velocity}} | ||
26 | #set($columns = ["name", "summary", "category", "authors", "doc.creationDate", "doc.date", "installedCount", "rating", "recommended"]) | ||
27 | #set($columnsProperties = { | ||
28 | "name" : { "type" : "text", "link" : "view" }, | ||
29 | "summary" : { "type" : "text" }, | ||
30 | "category" : { "type" : "list" }, | ||
31 | "authors" : {'html': true}, | ||
32 | "doc.creationDate" : { "type" : "date" }, | ||
33 | "doc.date" : { "type" : "date" }, | ||
34 | "rating" : { 'html' : true, 'filterable' : false, 'sortable' : false}, | ||
35 | "recommended" : { 'type' : "hidden" } | ||
36 | }) | ||
37 | ## VMA 6/9/2016, don't display tags for the moment because of http://jira.xwiki.org/browse/XWIKI-13680 | ||
38 | ## When it's fixed, put it back! | ||
39 | #set($options = { | ||
40 | "tagCloud":false, | ||
41 | "className":"ExtensionCode.ExtensionClass", | ||
42 | "selectedColumn":"doc.creationDate", | ||
43 | "defaultOrder":"desc", | ||
44 | "translationPrefix" : "extension.repository.", | ||
45 | "rowCount": 30, | ||
46 | "extraParams" : "&recommended=1" | ||
47 | }) | ||
48 | #livetable("recommendedextensions" $columns $columnsProperties $options) | ||
49 | {{/velocity}} | ||
50 | |||
51 | ))) | ||
52 | ))) | ||
53 | ))) |