diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes.html index 3825c8af8..c52770536 100644 --- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes.html +++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes.html @@ -5,14 +5,14 @@
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.
@@ -27,25 +27,24 @@Conceptually there are two types of attributes (applying to both labels and relations):
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.
- iconClass will
+ change the icon of a note.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 iconClass). Keep this in mind when creating
- Promoted Attributes in
+ Promoted Attributes in
order not to accidentally alter a system attribute (unless intended).
Both the labels and relations for the current note are displayed in the Owned Attributes section @@ -56,14 +55,13 @@
In the list of attributes, labels are prefixed with the # character
whereas relations are prefixed with the ~ character.
Promoted Attributes create +
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. This can be combined with Promoted Attributes to - easily add them.
+ href="#root/_help_OFXdgB2nNk1F">Promoted Attributes to easily add them.Trilium supports attribute inheritance, allowing child notes to inherit
attributes from their parents. For more information, see
The Attribute definition specifies how should this value be interpreted: To create a new promoted attribute: When a new promoted attribute definition is created, it creates a corresponding
@@ -54,37 +52,37 @@
The only purpose of the attribute definition is to set up a template.
If the attribute was marked as promoted, then it's also displayed to the
user for easy editing.
-
Creating a new promoted attribute definition
-
How attribute definitions actually work
-
-
-
-
-
-
- Notice how the promoted attribute definition only creates a “Due date”
- box above the text content.
-
-
-
-
-
-
- Once a value is set by the user, a new label (or relation, depending on
- the type) is created. The name of the attribute matches one set when creating
- the promoted attribute.
-
| + | + |
|---|---|
+
+ |
+ Notice how the promoted attribute definition only creates a “Due date” + box above the text content. | +
+
+ |
+ Once a value is set by the user, a new label (or relation, depending on + the type) is created. The name of the attribute matches one set when creating + the promoted attribute. | +
So there's one attribute for value and one for definition. But notice how an definition attribute can be made Inheritable, meaning that it's also applied to all descendant notes. In this case, the @@ -95,22 +93,22 @@ to be able to easily alter them.
Here are a few practical examples:
startDate which
are then interpreted by the calendar view.#shareAlias (see
Sharing) in order to form clean URLs.#color,
+ class="reference-link" href="#root/_help_R9pX4DGra2Vt">Sharing) in order to form clean URLs.#color,
simply create a promoted attribute for it to make it easier.
| - | - | - |
|---|---|---|
| 1 | -
-
- |
- Right click on any note on the note tree and select Insert child note → Geo Map (beta). | -
| 2 | -
-
- |
- By default the map will be empty and will show the entire world. | -
| + | + | + |
|---|---|---|
| 1 | +
+
+ |
+ Right click on any note on the note tree and select Insert child note → Geo Map (beta). | +
| 2 | +
+
+ |
+ By default the map will be empty and will show the entire world. | +
The position on the map and the zoom are saved inside the map note and restored when visiting again the note.
| - | - | - |
|---|---|---|
| 1 | -To create a marker, first navigate to the desired point on the map. Then
- press the
- button in the Floating buttons (top-right)
- area.
- - If the button is not visible, make sure the button section is visible - by pressing the chevron button ( - ) in the top-right of the map. |
- - |
| 2 | -
-
- |
- Once pressed, the map will enter in the insert mode, as illustrated by
- the notification.
- - Simply click the point on the map where to place the marker, or the Escape - key to cancel. |
-
| 3 | -
-
- |
- Enter the name of the marker/note to be created. | -
| 4 | -
-
- |
- Once confirmed, the marker will show up on the map and it will also be - displayed as a child note of the map. | -
| + | + | + |
|---|---|---|
| 1 | +To create a marker, first navigate to the desired point on the map. Then
+ press the
+ button in the Floating buttons (top-right)
+ area.
+ + If the button is not visible, make sure the button section is visible + by pressing the chevron button ( + ) in the top-right of the map. |
+ + |
| 2 | +
+
+ |
+ Once pressed, the map will enter in the insert mode, as illustrated by
+ the notification.
+ + Simply click the point on the map where to place the marker, or the Escape + key to cancel. |
+
| 3 | +
+
+ |
+ Enter the name of the marker/note to be created. | +
| 4 | +
+
+ |
+ Once confirmed, the marker will show up on the map and it will also be + displayed as a child note of the map. | +
This works for:
A more advanced use-case is grouping by Relations.
+A more advanced use-case is grouping by Relations.
During this mode:
Using relations instead of labels has some benefits:
To do so:
#viewType=board #hidePromotedAttributes to emulate the
- default template.#board:groupBy to the name of a relation to group by, including the ~ prefix (e.g. ~status).Optionally, use Promoted Attributes for - easy status change within the note:
#relation:status(inheritable)="promoted,alias=Status,single"
- First, create a Kanban board from scratch and not a template:
+Assign #viewType=board #hidePromotedAttributes to emulate the
+ default template.
Set #board:groupBy to the name of a relation to group by, including the **~** prefix (e.g. ~status).
Optionally, use Promoted Attributes for + easy status change within the note:
#relation:status(inheritable)="promoted,alias=Status,single"
+
+There are multiple types of documentation for Trilium:
* The _User Guide_ represents the user-facing documentation. This documentation can be browsed by users directly from within Trilium, by pressing F1.
* The _Developer's Guide_ represents a set of Markdown documents that present the internals of Trilium, for developers.
diff --git a/docs/User Guide/!!!meta.json b/docs/User Guide/!!!meta.json
index f859cd689..40a40e9fc 100644
--- a/docs/User Guide/!!!meta.json
+++ b/docs/User Guide/!!!meta.json
@@ -9872,23 +9872,16 @@
"position": 10
},
{
- "type": "label",
- "name": "iconClass",
- "value": "bx bx-columns",
- "isInheritable": false,
- "position": 10
- },
- {
- "type": "label",
- "name": "shareAlias",
- "value": "kanban-board",
+ "type": "relation",
+ "name": "internalLink",
+ "value": "oPVyFC7WL2Lp",
"isInheritable": false,
"position": 20
},
{
"type": "relation",
"name": "internalLink",
- "value": "Cq5X6iKQop6R",
+ "value": "IakOLONlIfGI",
"isInheritable": false,
"position": 30
},
@@ -9902,23 +9895,30 @@
{
"type": "relation",
"name": "internalLink",
- "value": "bdUJEHsAPYQR",
+ "value": "Cq5X6iKQop6R",
"isInheritable": false,
"position": 50
},
{
"type": "relation",
"name": "internalLink",
- "value": "oPVyFC7WL2Lp",
+ "value": "bdUJEHsAPYQR",
"isInheritable": false,
"position": 60
},
{
- "type": "relation",
- "name": "internalLink",
- "value": "IakOLONlIfGI",
+ "type": "label",
+ "name": "iconClass",
+ "value": "bx bx-columns",
"isInheritable": false,
- "position": 70
+ "position": 10
+ },
+ {
+ "type": "label",
+ "name": "shareAlias",
+ "value": "kanban-board",
+ "isInheritable": false,
+ "position": 20
}
],
"format": "markdown",
@@ -9968,59 +9968,73 @@
{
"type": "relation",
"name": "internalLink",
- "value": "KSZ04uQ2D1St",
+ "value": "zEY4DaJG4YT5",
"isInheritable": false,
"position": 10
},
{
"type": "relation",
"name": "internalLink",
- "value": "0ESUbbAxVnoK",
+ "value": "OFXdgB2nNk1F",
"isInheritable": false,
"position": 20
},
{
"type": "relation",
"name": "internalLink",
- "value": "XpOYSgsLkTJy",
+ "value": "KSZ04uQ2D1St",
"isInheritable": false,
"position": 30
},
{
"type": "relation",
"name": "internalLink",
- "value": "oPVyFC7WL2Lp",
+ "value": "0ESUbbAxVnoK",
"isInheritable": false,
"position": 40
},
{
"type": "relation",
"name": "internalLink",
- "value": "IakOLONlIfGI",
+ "value": "XpOYSgsLkTJy",
"isInheritable": false,
"position": 50
},
{
"type": "relation",
"name": "internalLink",
- "value": "lgKX7r3aL30x",
+ "value": "oPVyFC7WL2Lp",
"isInheritable": false,
"position": 60
},
{
"type": "relation",
"name": "internalLink",
- "value": "ZjLYv08Rp3qC",
+ "value": "IakOLONlIfGI",
"isInheritable": false,
"position": 70
},
{
"type": "relation",
"name": "internalLink",
- "value": "BlN9DFI679QC",
+ "value": "lgKX7r3aL30x",
"isInheritable": false,
"position": 80
},
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "ZjLYv08Rp3qC",
+ "isInheritable": false,
+ "position": 90
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "BlN9DFI679QC",
+ "isInheritable": false,
+ "position": 100
+ },
{
"type": "label",
"name": "iconClass",
@@ -10034,20 +10048,6 @@
"value": "geomap",
"isInheritable": false,
"position": 90
- },
- {
- "type": "relation",
- "name": "internalLink",
- "value": "zEY4DaJG4YT5",
- "isInheritable": false,
- "position": 100
- },
- {
- "type": "relation",
- "name": "internalLink",
- "value": "OFXdgB2nNk1F",
- "isInheritable": false,
- "position": 110
}
],
"format": "markdown",
@@ -11240,24 +11240,45 @@
{
"type": "relation",
"name": "internalLink",
- "value": "BlN9DFI679QC",
+ "value": "oPVyFC7WL2Lp",
"isInheritable": false,
"position": 30
},
{
"type": "relation",
"name": "internalLink",
- "value": "OFXdgB2nNk1F",
+ "value": "eIg8jdvaoNNd",
"isInheritable": false,
"position": 40
},
{
"type": "relation",
"name": "internalLink",
- "value": "bwZpz2ajCEwO",
+ "value": "CdNpE2pqjmI6",
"isInheritable": false,
"position": 50
},
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "OFXdgB2nNk1F",
+ "isInheritable": false,
+ "position": 60
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "BlN9DFI679QC",
+ "isInheritable": false,
+ "position": 70
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "bwZpz2ajCEwO",
+ "isInheritable": false,
+ "position": 80
+ },
{
"type": "label",
"name": "shareAlias",
@@ -11271,27 +11292,6 @@
"value": "bx bx-list-check",
"isInheritable": false,
"position": 110
- },
- {
- "type": "relation",
- "name": "internalLink",
- "value": "oPVyFC7WL2Lp",
- "isInheritable": false,
- "position": 120
- },
- {
- "type": "relation",
- "name": "internalLink",
- "value": "eIg8jdvaoNNd",
- "isInheritable": false,
- "position": 130
- },
- {
- "type": "relation",
- "name": "internalLink",
- "value": "CdNpE2pqjmI6",
- "isInheritable": false,
- "position": 140
}
],
"format": "markdown",
@@ -11740,10 +11740,38 @@
{
"type": "relation",
"name": "internalLink",
- "value": "bwZpz2ajCEwO",
+ "value": "BlN9DFI679QC",
"isInheritable": false,
"position": 20
},
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "bwZpz2ajCEwO",
+ "isInheritable": false,
+ "position": 30
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "GTwFsgaA0lCt",
+ "isInheritable": false,
+ "position": 40
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "zP3PMqaG71Ct",
+ "isInheritable": false,
+ "position": 50
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "R9pX4DGra2Vt",
+ "isInheritable": false,
+ "position": 60
+ },
{
"type": "label",
"name": "shareAlias",
@@ -11757,34 +11785,6 @@
"value": "bx bx-table",
"isInheritable": false,
"position": 20
- },
- {
- "type": "relation",
- "name": "internalLink",
- "value": "BlN9DFI679QC",
- "isInheritable": false,
- "position": 50
- },
- {
- "type": "relation",
- "name": "internalLink",
- "value": "GTwFsgaA0lCt",
- "isInheritable": false,
- "position": 60
- },
- {
- "type": "relation",
- "name": "internalLink",
- "value": "zP3PMqaG71Ct",
- "isInheritable": false,
- "position": 70
- },
- {
- "type": "relation",
- "name": "internalLink",
- "value": "R9pX4DGra2Vt",
- "isInheritable": false,
- "position": 80
}
],
"format": "markdown",