Code source wiki de Pages ratings

Modifié par Pascale STEIMETZ-LE CACHEUX le 2026/03/23 18:22

Afficher les derniers auteurs
1 {{velocity}}
2 #**
3 * This page is used to list all rated pages with the PageRatings application
4 *#
5
6 ## Globals
7 #set($liveTableSourceURL = $xwiki.getURL('PageRatingsCode.PageRatingsMacro','view','xpage=plain&outputSyntax=plain&action=getRatedPages'))
8 #set($csvExportURL = $xwiki.getURL("PageRatingsCode.PageRatingsMacro","view","action=pageRatingsCSVExport&xpage=plain&outputSyntax=plain"))
9 #set($discard = $xwiki.jsx.use("PageRatingsCode.WebHome"))
10 #set($columns = ["page", "actions"])
11 #set($columnsProperties = {
12 "page" : { "type" : "text", "sortable":false, "filterable":true},
13 "actions" : {"type" : "none", "link" : "none", "html" : "true", "sortable":false}
14 })
15 #set($options = {
16 "url":"$liveTableSourceURL",
17 "rowCount": 10
18 })
19 {{html}}
20 <a class="btn btn-success" href="$csvExportURL">Export all</a>
21 {{/html}}
22 #livetable("userdirectory" $columns $columnsProperties $options)
23 {{/velocity}}