Wiki source code of Display a List of Data in a Page
Last modified by superadmin on 2026/11/25 21:42
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | 1. Edit the page in "Source" mode or with the [[Wiki editor>>doc:documentation.xs.user.content-edit.wiki-editor.WebHome]] and write a ##liveData## Macro, described in [[Live Data>>doc:documentation.xs.user.livedata.WebHome]], where the list should appear.((( | ||
| 2 | {{code language="none"}} | ||
| 3 | {{liveData | ||
| 4 | id="reports" | ||
| 5 | properties="doc.title,tags,doc.date" | ||
| 6 | source="liveTable" | ||
| 7 | sourceParameters="className=XWiki.TagClass&translationPrefix=platform.index." | ||
| 8 | /}} | ||
| 9 | {{/code}} | ||
| 10 | ))) | ||
| 11 | 1. Set ##source## to the id of the [[Live Data source>>doc:documentation.xs.user.livedata.display-data.sources.WebHome]] providing the entries, and ##sourceParameters## to the query string that source expects. | ||
| 12 | 1. Set ##properties## to the comma-separated ids of the properties to display, in the order they should appear. Leave it out to display every property the source declares. | ||
| 13 | 1. Set the optional ##id##, ##sort##, ##filters##, ##limit## and ##layouts## parameters, listed in [["liveData" Macro>>doc:documentation.xs.user.livedata.display-data.macro.WebHome]]. | ||
| 14 | 1. Save the page. The entries are displayed in the first layout of the list, as follows:((( | ||
| 15 | {{image reference="live-data-page.png" size="extra" alt="A saved wiki page displaying its entries as a Live Data table with a filter row and a pagination bar"/}} | ||
| 16 | ))) |