2025-04-07 12:35:52 +03:00

2.2 KiB

Attributes

In Trilium, attributes are key-value pairs assigned to notes, providing additional metadata or functionality. There are two primary types of attributes:

  1. Labels can be used for a variety of purposes, such as storing metadata or configuring the behaviour of notes. Labels are also searchable, enhancing note retrieval.

    For more information, including predefined labels, see Labels.

  2. Relations define connections between notes, similar to links. These can be used for metadata and scripting purposes.

    For more information, including a list of predefined relations, see Relations.

These attributes play a crucial role in organizing, categorising, and enhancing the functionality of notes.

Viewing the list of attributes

Both the labels and relations for the current note are displayed in the Owned Attributes section of the Ribbon, where they can be viewed and edited. Inherited attributes are displayed in the Inherited Attributes section of the ribbon, where they can only be viewed.

In the list of attributes, labels are prefixed with the # character whereas relations are prefixed with the ~ character.

Multiplicity

Attributes in Trilium can be "multi-valued", meaning multiple attributes with the same name can co-exist.

Attribute Definitions and Promoted Attributes

Special labels create "label/attribute" definitions, enhancing the organization and management of attributes. For more details, see Promoted Attributes.

Attribute Inheritance

Trilium supports attribute inheritance, allowing child notes to inherit attributes from their parents. For more information, see Attribute Inheritance.