Skip to main content
Marks a view as an abstract template. Template views cannot be used directly — they must be extended by another view using the extends property. This enables reusable view patterns and inheritance. Template views have relaxed model validation, meaning missing columns will not cause errors. This allows you to define abstract structures that are completed by the extending view. Refer to this community article for more information. When a non-template view extends a template view, it inherits all of the template’s attributes and can override or add to them.

Syntax

template: true/false

Properties

template
boolean
Controls whether the view is treated as an abstract template. When set to true, the view cannot be used directly and must be extended by another view. Omni will also disable model validation for the view.

Examples

template_view
template: true

required_access_grants: [ marketing ]
extended_view
extends: [template_view]

# Inherits required_access_grants from template_view
# Can override or add additional attributes
required_access_grants: [ sales ]