Code source wiki de Lettres d'information documentaire
Modifié par Admin User le 16 mai 2023
Afficher les derniers auteurs
author | version | line-number | content |
---|---|---|---|
1 | {{velocity}} | ||
2 | #if("$!xcontext.action" == "inline") | ||
3 | $!doc.display('description', $doc.getObject('CNFPTCode.IntroClass')) | ||
4 | #else | ||
5 | $!doc.getObject('CNFPTCode.IntroClass').getProperty('description').value | ||
6 | #end | ||
7 | ## and the list of existing newsletters | ||
8 | == $msg.get('cnfpt.newsletter.list') == | ||
9 | #set($columns = ["doc.title", "_latestInvoice", "_subscriptionActions"]) | ||
10 | #set($columnsProperties = { | ||
11 | "doc.title" : {"type" : "text", "link" : "view"}, | ||
12 | "_latestInvoice" : {"type" : "text", "link" : "none"}, | ||
13 | "_subscriptionActions" : {"type" : "text", "link" : "field", "sortable" : false, "filterable" : false} | ||
14 | }) | ||
15 | #set($options = { | ||
16 | "resultPage" : "CNFPTCode.NewsletterLiveTableResults", | ||
17 | "selectedColumn" : "doc.title", | ||
18 | "defaultOrder" : "desc", | ||
19 | "translationPrefix" : "cnfpt.newsletter.livetable.", | ||
20 | "extraParams" : "&space=${escapetool.url('LettreInformation')}&className=CNFPTCode.NewsletterClass" | ||
21 | }) | ||
22 | #livetable("elements" $columns $columnsProperties $options) | ||
23 | {{/velocity}} |