Records

Last modified by Pierre Jeanjean on 2026/11/24 15:58

Explanation

XWiki 18.10.0+

The Records Macro lists the entries of one object type as a table that readers can sort and filter. Each entry is an Object of the same Class, held by its own Page. The author builds the table from the Macro dialog, without writing code, and readers get a Live Data, with its pagination, its filters and its layouts.

A Records table listing books with their title, author, genre, status and year, under the description of the table

Records is not currently bundled in XWiki Standard: an administrator can install the "Records Macro" extension through the Extension Manager.

Compared with the "liveData" Macro, which it is built on, Records only supports Objects, and only takes parameters, never a JSON configuration. In exchange:

  • every parameter is set from the Macro dialog, with pickers listing the fields of the object type,
  • the table keeps working when fields are removed from the object type, or change type: what it can no longer use is skipped, under a warning suggesting to edit the Macro,
  • moving or renaming the Page holding the object type, the location of new entries or their template provider updates the Macro calls referencing them.

The author can also let readers change the entries and add new ones from the table, through Edit mode. To see a whole application built this way with the Edit right alone, follow the book library tutorial.

FAQ

Who sees which entries?

Each reader gets a row for every entry, but only sees their values if they have the right to view the Page holding the entry: the others are left empty and marked with an asterisk. In Edit mode, they can only change the entries whose Page they can edit.

More

To find more about the current topic, you can search or use the table below and filter the columns to narrow your choices.

Related

Get Connected