From a89756a76c676cacb14e6de91f505e914bf8f9a2 Mon Sep 17 00:00:00 2001
From: Elian Doran In Trilium, attributes are key-value pairs assigned to notes, providing
additional metadata or functionality. There are two primary types of attributes: Labels can
be used for a variety of purposes, such as storing metadata or configuring
the behavior of notes. Labels are also searchable, enhancing note retrieval. For more information, including predefined labels, see Labels. Relations define
connections between notes, similar to links. These can be used for metadata
and scripting purposes. These attributes play a crucial role in organizing, categorizing, and
enhancing the functionality of notes. Conceptually there are two types of attributes (applying to both labels
+ and relations): In practice, Trilium makes no direct distinction of whether an attribute
+ is a system one or a user-defined one. A label or relation is considered
+ a system attribute if it matches one of the built-in names (e.g. like the
+ aforementioned Both the labels and relations for the current note are displayed in the Owned Attributes section
of the Ribbon,
@@ -31,13 +55,15 @@
only be viewed. In the list of attributes, labels are prefixed with the Promoted Attributes create
+ a form-like editing experience for attributes, which makes it easy to enhancing
+ the organization and management of attributes Attributes in Trilium can be "multi-valued", meaning multiple attributes
- with the same name can co-exist. Special labels create "label/attribute" definitions, enhancing the organization
- and management of attributes. For more details, see Promoted Attributes.
-
Types of attributes
+
+
+
As the name suggest, these attributes have a special meaning since they
+ are interpreted by Trilium. For example the color attribute
+ will change the color of the note as displayed in the Note Tree and
+ links, and iconClass will change the icon of a note.
+
These are free-form labels or relations that can be used by the user.
+ They can be used purely for categorization purposes (especially if combined
+ with Search),
+ or they can be given meaning through the use of Scripting.iconClass). Keep this in mind when creating
+ Promoted Attributes in
+ order not to accidentally alter a system attribute (unless intended).Viewing the list of attributes
# character
whereas relations are prefixed with the ~ character.Attribute Definitions and Promoted Attributes
+Multiplicity
Attribute Definitions and Promoted Attributes
-
Trilium supports attribute inheritance, allowing child notes to inherit
attributes from their parents. For more information, see AclHRCl_VlNqeKyrj6%tlCQ?>J
z_PieN@9%e?>%Q)5{m=cs?{n^Rf6w_I8K2MRJzlTp^Rb@q2(8m6>8M$$NhA`T>M121
z5^2)}{x_te#7{m~I8fmW#kJ$AdQ|w&hw4%|zTfSlY~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