Wiki source code of Recommended Extensions

Version 8.1 by Ludovic Dubost on 2020/11/16 12:50

Show last authors
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": 30,
52 "extraParams" : "&recommended=1"
53 })
54 #livetable("recommendedextensions" $columns $columnsProperties $options)
55 {{/velocity}}
56 )))
57 )))
58 )))

Get Connected