Code source wiki de Add Excel Export to Livetable (Macro)
Modifié par Aurelie Bertrand le 2024/09/13 16:08
Masquer les derniers auteurs
| author | version | line-number | content |
|---|---|---|---|
| |
1.1 | 1 | = Usage = |
| 2 | |||
| 3 | {{warning}} | ||
| 4 | This macro is deprecated. Please refer to the macro [[Livetable Exporter Macro>>LivetableExporterMacro]] which replaces it. | ||
| 5 | {{/warning}} | ||
| 6 | |||
| 7 | Just write: | ||
| 8 | {{code}}{{addExcelExportToLivetable livetable="my-livetable" /}}{{/code}} | ||
| 9 | Where "{{code}}my-livetable{{/code}}" is your livetable's name. | ||
| 10 | |||
| 11 | = Options = | ||
| 12 | |||
| 13 | * {{code}}withPageName{{/code}} : add a 'wiki page name' to the excel sheet. (Default value = {{code}}'true'{{/code}}) | ||
| 14 | * {{code}}withPageURL{{/code}} : add a 'wiki page URL' to the excel sheet. (Default value = {{code}}'true'{{/code}}) | ||
| 15 | * {{code}}withAllFields{{/code}} : force adding all the fields of the class as columns in the excel sheet, even if they're not displayed in the livetable (Default value = {{code}}'false'{{/code}}) | ||
| 16 | * {{code}}filename{{/code}} : allows to change the default name of the file in which the livetable results are exported (Empty by default, which causes the export to use the generic name "livetable.xls"). | ||
| 17 | |||
| 18 | = Credits = | ||
| 19 | |||
| 20 | * This macro is based on [[the Ludovic Dubost patch>>http://jira.xwiki.org/browse/XWIKI-5458]]. | ||
| 21 | * For this macro, see [[the page on XWiki Extensions site>>http://extensions.xwiki.org/xwiki/bin/view/Extension/LiveTableExcelExport+Macro]]. |