Skip to main content
Version: Any 26

Templates

This module designates the templates offered to the user when they create a content.

A template is an existing content that serves as a starting point: it brings its file and its metadata to the created document. Rather than listing the templates one by one, this module describes them by a query: so a template added later is offered without reconfiguration.

Several template collections can be defined.

Template collection definition​

Activated: enables the template collection so it can be used in the creation flow.

Template collection label: label of the collection in the current language. Click the "card" icon to enter every language.

GQL Query: query identifying the templates selectable during content creation.

Retrieve every template:

select * from documents where core.is_template = true

Retrieve only the templates located in the current room:

select * from documents where core.is_template = true and _location.room = '$ROOM'

To preview the result of the query, click the "preview results" button.

Flows​

This module can be used in the following flow: