Page Templates

Last modified by Eleni Cojocariu on 2026/11/24 18:48

Explanation

XWiki 18.10.0+

The Page Templates API reads template providers: Pages holding an XWiki.TemplateProviderClass Object, which administrators create as described in Page Templates to offer a template when creating a Page, and to say where and how the new Page is created.

Code reads template providers through this API instead of the Object's properties. It turns the Object into a typed TemplateProvider, and also reads the properties of template providers written for older versions:

  • a template provider with no terminal value creates terminal Pages unless its legacy type property is space;
  • an empty visibility or creation restriction is read from the legacy spaces property instead, as for the template provider fields.

The API only reads template providers: it creates no Page. Live Data uses it to create new entries from a template.

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