Skip to content

Build your personal knowledge base with Trilium Notes

feat(docs): improve description of labels and relations

Elian Doran190cff6f7e84
diff --git a/docs/User Guide/!!!meta.json b/docs/User Guide/!!!meta.json
index b4f83e5be7..58bdb05381 100644
--- a/docs/User Guide/!!!meta.json
+++ b/docs/User Guide/!!!meta.json
@@ -6732,19 +6732,26 @@
{
"type": "relation",
"name": "internalLink",
- "value": "Ucmcs8SfrYdD",
+ "value": "HI6GBBIduIgv",
"isInheritable": false,
"position": 120
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "Cq5X6iKQop6R",
+ "isInheritable": false,
+ "position": 130
}
],
"format": "markdown",
"dataFileName": "Attributes.md",
"attachments": [
{
- "attachmentId": "P4eRVtGFoHh2",
+ "attachmentId": "4YqnV7iugVCJ",
"title": "image.png",
"role": "image",
- "mime": "image/jpg",
+ "mime": "image/png",
"position": 10,
"dataFileName": "Attributes_image.png"
}
@@ -6753,342 +6760,440 @@
"children": [
{
"isClone": false,
- "noteId": "bwZpz2ajCEwO",
+ "noteId": "HI6GBBIduIgv",
"notePath": [
"pOsGYCXsbNQG",
"tC7s2alapj8V",
"zEY4DaJG4YT5",
- "bwZpz2ajCEwO"
+ "HI6GBBIduIgv"
],
- "title": "Attribute Inheritance",
+ "title": "Labels",
"notePosition": 10,
"prefix": null,
"isExpanded": false,
"type": "text",
- "mime": "text/markdown",
+ "mime": "text/html",
"attributes": [
{
"type": "relation",
"name": "internalLink",
- "value": "KC1HB96bqqHX",
+ "value": "zEY4DaJG4YT5",
"isInheritable": false,
"position": 10
},
- {
- "type": "label",
- "name": "shareAlias",
- "value": "attribute-inheritance",
- "isInheritable": false,
- "position": 20
- },
- {
- "type": "label",
- "name": "iconClass",
- "value": "bx bx-list-plus",
- "isInheritable": false,
- "position": 30
- }
- ],
- "format": "markdown",
- "dataFileName": "Attribute Inheritance.md",
- "attachments": []
- },
- {
- "isClone": false,
- "noteId": "OFXdgB2nNk1F",
- "notePath": [
- "pOsGYCXsbNQG",
- "tC7s2alapj8V",
- "zEY4DaJG4YT5",
- "OFXdgB2nNk1F"
- ],
- "title": "Promoted Attributes",
- "notePosition": 20,
- "prefix": null,
- "isExpanded": false,
- "type": "text",
- "mime": "text/markdown",
- "attributes": [
{
"type": "relation",
"name": "internalLink",
- "value": "zEY4DaJG4YT5",
+ "value": "BlN9DFI679QC",
"isInheritable": false,
- "position": 10
+ "position": 20
},
{
"type": "relation",
"name": "internalLink",
"value": "bwZpz2ajCEwO",
"isInheritable": false,
- "position": 20
- },
- {
- "type": "label",
- "name": "shareAlias",
- "value": "promoted-attributes",
- "isInheritable": false,
- "position": 10
+ "position": 30
},
{
"type": "label",
"name": "iconClass",
- "value": "bx bx-table",
+ "value": "bx bx-hash",
"isInheritable": false,
"position": 40
- }
- ],
- "format": "markdown",
- "dataFileName": "Promoted Attributes.md",
- "attachments": [
- {
- "attachmentId": "4EcBRWF9iCk2",
- "title": "image.png",
- "role": "image",
- "mime": "image/jpg",
- "position": 10,
- "dataFileName": "Promoted Attributes_image.png"
},
- {
- "attachmentId": "Txf5Jdm2vqt2",
- "title": "promoted-attributes.png",
- "role": "image",
- "mime": "image/png",
- "position": 10,
- "dataFileName": "Promoted Attributes_promot.png"
- }
- ]
- },
- {
- "isClone": false,
- "noteId": "Ucmcs8SfrYdD",
- "notePath": [
- "pOsGYCXsbNQG",
- "tC7s2alapj8V",
- "zEY4DaJG4YT5",
- "Ucmcs8SfrYdD"
- ],
- "title": "Attribute Reference",
- "notePosition": 30,
- "prefix": null,
- "isExpanded": false,
- "type": "text",
- "mime": "text/html",
- "attributes": [
{
"type": "relation",
"name": "internalLink",
- "value": "l0tKav7yLHGF",
+ "value": "vZWERwf8U3nx",
"isInheritable": false,
- "position": 10
+ "position": 60
},
{
"type": "relation",
"name": "internalLink",
- "value": "bwZpz2ajCEwO",
+ "value": "l0tKav7yLHGF",
"isInheritable": false,
- "position": 20
+ "position": 70
},
{
"type": "relation",
"name": "internalLink",
- "value": "vZWERwf8U3nx",
+ "value": "oPVyFC7WL2Lp",
"isInheritable": false,
- "position": 30
+ "position": 80
},
{
"type": "relation",
"name": "internalLink",
- "value": "oPVyFC7WL2Lp",
+ "value": "GPERMystNGTB",
"isInheritable": false,
- "position": 40
+ "position": 90
},
{
"type": "relation",
"name": "internalLink",
"value": "OFXdgB2nNk1F",
"isInheritable": false,
- "position": 50
+ "position": 100
},
{
"type": "relation",
"name": "internalLink",
"value": "CoFPLs3dRlXc",
"isInheritable": false,
- "position": 60
+ "position": 110
},
{
"type": "relation",
"name": "internalLink",
- "value": "WFGzWeUK6arS",
+ "value": "AlhDUqhENtH7",
"isInheritable": false,
- "position": 70
+ "position": 120
},
{
"type": "relation",
"name": "internalLink",
- "value": "J5Ex1ZrMbyJ6",
+ "value": "pKK96zzmvBGf",
"isInheritable": false,
- "position": 80
+ "position": 130
},
{
"type": "relation",
"name": "internalLink",
- "value": "d3fAXQ2diepH",
+ "value": "WFGzWeUK6arS",
"isInheritable": false,
- "position": 90
+ "position": 140
},
{
"type": "relation",
"name": "internalLink",
- "value": "MgibgPcfeuGz",
+ "value": "0ESUbbAxVnoK",
"isInheritable": false,
- "position": 100
+ "position": 150
},
{
"type": "relation",
"name": "internalLink",
- "value": "BFvAtE74rbP6",
+ "value": "J5Ex1ZrMbyJ6",
"isInheritable": false,
- "position": 110
+ "position": 160
},
{
"type": "relation",
"name": "internalLink",
- "value": "bdUJEHsAPYQR",
+ "value": "d3fAXQ2diepH",
"isInheritable": false,
- "position": 120
+ "position": 170
},
{
"type": "relation",
"name": "internalLink",
- "value": "KC1HB96bqqHX",
+ "value": "MgibgPcfeuGz",
"isInheritable": false,
- "position": 130
+ "position": 180
},
{
"type": "relation",
"name": "internalLink",
- "value": "HcABDtFCkbFN",
+ "value": "m523cpzocqaD",
"isInheritable": false,
- "position": 140
+ "position": 190
},
{
"type": "relation",
"name": "internalLink",
"value": "9sRHySam5fXb",
"isInheritable": false,
- "position": 160
- },
- {
- "type": "relation",
- "name": "internalLink",
- "value": "u3YFHC9tQlpm",
- "isInheritable": false,
- "position": 170
+ "position": 200
},
{
"type": "relation",
"name": "internalLink",
- "value": "R9pX4DGra2Vt",
+ "value": "_help_YKWqdJhzi2VY",
"isInheritable": false,
- "position": 180
+ "position": 210
},
{
"type": "relation",
"name": "internalLink",
- "value": "pKK96zzmvBGf",
+ "value": "u3YFHC9tQlpm",
"isInheritable": false,
"position": 220
},
{
"type": "relation",
"name": "internalLink",
- "value": "AlhDUqhENtH7",
+ "value": "R9pX4DGra2Vt",
"isInheritable": false,
"position": 230
},
{
"type": "relation",
"name": "internalLink",
- "value": "0ESUbbAxVnoK",
+ "value": "iRwzGnHPzonm",
"isInheritable": false,
"position": 240
},
{
"type": "relation",
"name": "internalLink",
- "value": "m523cpzocqaD",
+ "value": "BCkXAVs63Ttv",
"isInheritable": false,
"position": 250
},
{
"type": "relation",
"name": "internalLink",
- "value": "_help_YKWqdJhzi2VY",
+ "value": "47ZrP6FNuoG8",
"isInheritable": false,
"position": 260
},
{
"type": "relation",
"name": "internalLink",
- "value": "iRwzGnHPzonm",
+ "value": "KC1HB96bqqHX",
"isInheritable": false,
"position": 270
},
{
"type": "relation",
"name": "internalLink",
- "value": "BCkXAVs63Ttv",
+ "value": "BFvAtE74rbP6",
"isInheritable": false,
"position": 280
},
{
"type": "relation",
"name": "internalLink",
- "value": "47ZrP6FNuoG8",
+ "value": "bdUJEHsAPYQR",
"isInheritable": false,
"position": 290
},
{
"type": "relation",
"name": "internalLink",
- "value": "81SGnPGMk7Xc",
+ "value": "AxshuNRegLAv",
"isInheritable": false,
"position": 300
},
{
"type": "relation",
"name": "internalLink",
- "value": "GPERMystNGTB",
+ "value": "81SGnPGMk7Xc",
"isInheritable": false,
"position": 310
},
{
"type": "relation",
"name": "internalLink",
- "value": "AxshuNRegLAv",
+ "value": "xWbu3jpNWapp",
"isInheritable": false,
"position": 320
+ }
+ ],
+ "format": "markdown",
+ "dataFileName": "Labels.md",
+ "attachments": []
+ },
+ {
+ "isClone": false,
+ "noteId": "Cq5X6iKQop6R",
+ "notePath": [
+ "pOsGYCXsbNQG",
+ "tC7s2alapj8V",
+ "zEY4DaJG4YT5",
+ "Cq5X6iKQop6R"
+ ],
+ "title": "Relations",
+ "notePosition": 20,
+ "prefix": null,
+ "isExpanded": false,
+ "type": "text",
+ "mime": "text/html",
+ "attributes": [
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "HI6GBBIduIgv",
+ "isInheritable": false,
+ "position": 10
+ },
+ {
+ "type": "label",
+ "name": "iconClass",
+ "value": "bx bx-transfer",
+ "isInheritable": false,
+ "position": 20
},
{
"type": "relation",
"name": "internalLink",
- "value": "xWbu3jpNWapp",
+ "value": "BlN9DFI679QC",
+ "isInheritable": false,
+ "position": 30
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "bwZpz2ajCEwO",
+ "isInheritable": false,
+ "position": 40
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "oPVyFC7WL2Lp",
"isInheritable": false,
- "position": 330
+ "position": 50
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "GPERMystNGTB",
+ "isInheritable": false,
+ "position": 60
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "KC1HB96bqqHX",
+ "isInheritable": false,
+ "position": 70
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "HcABDtFCkbFN",
+ "isInheritable": false,
+ "position": 80
+ }
+ ],
+ "format": "markdown",
+ "dataFileName": "Relations.md",
+ "attachments": []
+ },
+ {
+ "isClone": false,
+ "noteId": "bwZpz2ajCEwO",
+ "notePath": [
+ "pOsGYCXsbNQG",
+ "tC7s2alapj8V",
+ "zEY4DaJG4YT5",
+ "bwZpz2ajCEwO"
+ ],
+ "title": "Attribute Inheritance",
+ "notePosition": 30,
+ "prefix": null,
+ "isExpanded": false,
+ "type": "text",
+ "mime": "text/markdown",
+ "attributes": [
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "KC1HB96bqqHX",
+ "isInheritable": false,
+ "position": 10
+ },
+ {
+ "type": "label",
+ "name": "shareAlias",
+ "value": "attribute-inheritance",
+ "isInheritable": false,
+ "position": 20
},
{
"type": "label",
"name": "iconClass",
- "value": "bx bx-book-bookmark",
+ "value": "bx bx-list-plus",
+ "isInheritable": false,
+ "position": 30
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "HI6GBBIduIgv",
+ "isInheritable": false,
+ "position": 40
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "Cq5X6iKQop6R",
"isInheritable": false,
- "position": 340
+ "position": 50
}
],
"format": "markdown",
- "dataFileName": "Attribute Reference.md",
+ "dataFileName": "Attribute Inheritance.md",
"attachments": []
+ },
+ {
+ "isClone": false,
+ "noteId": "OFXdgB2nNk1F",
+ "notePath": [
+ "pOsGYCXsbNQG",
+ "tC7s2alapj8V",
+ "zEY4DaJG4YT5",
+ "OFXdgB2nNk1F"
+ ],
+ "title": "Promoted Attributes",
+ "notePosition": 40,
+ "prefix": null,
+ "isExpanded": false,
+ "type": "text",
+ "mime": "text/markdown",
+ "attributes": [
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "zEY4DaJG4YT5",
+ "isInheritable": false,
+ "position": 10
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "bwZpz2ajCEwO",
+ "isInheritable": false,
+ "position": 20
+ },
+ {
+ "type": "label",
+ "name": "shareAlias",
+ "value": "promoted-attributes",
+ "isInheritable": false,
+ "position": 10
+ },
+ {
+ "type": "label",
+ "name": "iconClass",
+ "value": "bx bx-table",
+ "isInheritable": false,
+ "position": 40
+ }
+ ],
+ "format": "markdown",
+ "dataFileName": "Promoted Attributes.md",
+ "attachments": [
+ {
+ "attachmentId": "4EcBRWF9iCk2",
+ "title": "image.png",
+ "role": "image",
+ "mime": "image/jpg",
+ "position": 10,
+ "dataFileName": "Promoted Attributes_image.png"
+ },
+ {
+ "attachmentId": "Txf5Jdm2vqt2",
+ "title": "promoted-attributes.png",
+ "role": "image",
+ "mime": "image/png",
+ "position": 10,
+ "dataFileName": "Promoted Attributes_promot.png"
+ }
+ ]
}
]
},
diff --git a/docs/User Guide/User Guide/Advanced Usage/Attributes.md b/docs/User Guide/User Guide/Advanced Usage/Attributes.md
index 9e61ff6481..18b556bd11 100644
--- a/docs/User Guide/User Guide/Advanced Usage/Attributes.md
+++ b/docs/User Guide/User Guide/Advanced Usage/Attributes.md
@@ -1,12 +1,12 @@
# 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**: Simple key-value text records
-2. **Relations**: Named links to other notes
+1. <a class="reference-link" href="Attributes/Labels.md">Labels</a>: Simple key-value text records
+2. <a class="reference-link" href="Attributes/Relations.md">Relations</a>: Named links to other notes
These attributes play a crucial role in organizing, categorising, and enhancing the functionality of notes.
-![](Attributes_image.png)
+<figure class="image"><img style="aspect-ratio:1071/146;" src="Attributes_image.png" width="1071" height="146"></figure>
## Labels
@@ -18,26 +18,22 @@ Labels in Trilium can be used for a variety of purposes:
Labels are also searchable, enhancing note retrieval.
-### Common Labels for Advanced Configuration
-
-See the corresponding section in <a class="reference-link" href="Attributes/Attribute%20Reference.md">Attribute Reference</a> for a comprehensive list of attributes.
+For more information, including predefined labels, see <a class="reference-link" href="Attributes/Labels.md">Labels</a>.
## Relations
Relations define connections between notes, similar to links.
-### Uses
+Uses:
* **Metadata Relationships**: For example, linking a book note to an author note
* **Scripting**: Attaching scripts to events or conditions related to the note
-### Common Relations
-
-See the corresponding section in <a class="reference-link" href="Attributes/Attribute%20Reference.md">Attribute Reference</a> for a comprehensive list of relations.
+For more information, including a list of predefined relations, see <a class="reference-link" href="Attributes/Relations.md">Relations</a>.
## Multiplicity
-Attributes in Trilium can be "multivalued", meaning multiple attributes with the same name can coexist.
+Attributes in Trilium can be "multi-valued", meaning multiple attributes with the same name can co-exist.
## Attribute Definitions and Promoted Attributes
diff --git a/docs/User Guide/User Guide/Advanced Usage/Attributes/Attribute Inheritance.md b/docs/User Guide/User Guide/Advanced Usage/Attributes/Attribute Inheritance.md
index 28e1baf1f5..a96b04b99e 100644
--- a/docs/User Guide/User Guide/Advanced Usage/Attributes/Attribute Inheritance.md
+++ b/docs/User Guide/User Guide/Advanced Usage/Attributes/Attribute Inheritance.md
@@ -1,11 +1,13 @@
# Attribute Inheritance
+Inheritance refers to the process of having a [label](Labels.md) or a [relation](Relations.md) shared across multiple notes, generally in parent-child relations (or anywhere if using templates).
+
## 1\. Standard Inheritance
In Trilium, attributes can be automatically inherited by child notes if they have the `isInheritable` flag set to `true`. This means the attribute (a key-value pair) is applied to the note and all its descendants.
-### Example Use Case
+To make an attribute inheritable, simply use the visual editor for <a class="reference-link" href="Labels.md">Labels</a> or <a class="reference-link" href="Relations.md">Relations</a>. Alternatively, the attribute can be manually defined where `#myLabel=value` becomes `#myLabel(inheritable)=value` when inheritable.
-The `archived` label can be set to be inheritable, allowing you to hide a whole subtree of notes from searches and other dialogs by applying this label at the top level.
+As an example, the `archived` label can be set to be inheritable, allowing you to hide a whole subtree of notes from searches and other dialogs by applying this label at the top level.
## 2\. Copying Inheritance
diff --git a/docs/User Guide/User Guide/Advanced Usage/Attributes/Attribute Reference.md b/docs/User Guide/User Guide/Advanced Usage/Attributes/Labels.md
similarity index 81%
rename from docs/User Guide/User Guide/Advanced Usage/Attributes/Attribute Reference.md
rename to docs/User Guide/User Guide/Advanced Usage/Attributes/Labels.md
index 1edca74861..e34003a541 100644
--- a/docs/User Guide/User Guide/Advanced Usage/Attributes/Attribute Reference.md
+++ b/docs/User Guide/User Guide/Advanced Usage/Attributes/Labels.md
@@ -1,14 +1,36 @@
-# Attribute Reference
-## Labels
+# Labels
+A label is an [attribute](../Attributes.md) of a note which has a name and optionally a value. 
+
+## Creating a label using the visual editor
+
+1. Go to the _Owned Attributes_ section in the <a class="reference-link" href="../../Basic%20Concepts%20and%20Features/UI%20Elements/Ribbon.md">Ribbon</a>.
+2. Press the + button (_Add new attribute_) to the right.
+3. Select _Add new label_ for the relation.
> [!TIP]
-> Some labels presented here end with a `*`. That means that there are multiple labels with the same prefix, consult the specific page linked in the description of that label for more information.
+> If you prefer keyboard shortcuts, press <kbd>Alt</kbd>+<kbd>L</kbd> while focused on a note or in the _Owned Attributes_ section to display the visual editor.
+
+While in the visual editor:
+
+* Set the desired name
+* Optionally, set the value of the label. Labels can exist without a value.
+* Check _Inheritable_ if the label should be inherited by the child notes as well. See <a class="reference-link" href="Attribute%20Inheritance.md">Attribute Inheritance</a> for more information.
-<figure class="table" style="width:100%;"><table class="ck-table-resized"><colgroup><col style="width:33.82%;"><col style="width:66.18%;"></colgroup><thead><tr><th>Label</th><th>Description</th></tr></thead><tbody><tr><td><code>disableVersioning</code></td><td>Disables automatic creation of&nbsp;<a class="reference-link" href="../../Basic%20Concepts%20and%20Features/Notes/Note%20Revisions.md">Note Revisions</a>&nbsp;for a particular note. Useful for e.g. large, but unimportant notes - e.g. large JS libraries used for scripting.</td></tr><tr><td><code>versioningLimit</code></td><td>Limits the maximum number of&nbsp;<a class="reference-link" href="../../Basic%20Concepts%20and%20Features/Notes/Note%20Revisions.md">Note Revisions</a>&nbsp;for a particular note, overriding the global settings.</td></tr><tr><td><code>calendarRoot</code></td><td>Marks the note which should be used as root for&nbsp;<a class="reference-link" href="../Advanced%20Showcases/Day%20Notes.md">Day Notes</a>. Only one should be marked as such.</td></tr><tr><td><code>archived</code></td><td>Hides notes from default search results and dialogs. Archived notes can optionally be hidden in the&nbsp;<a class="reference-link" href="../../Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree.md">Note Tree</a>.</td></tr><tr><td><code>excludeFromExport</code></td><td>Excludes this note and its children when exporting.</td></tr><tr><td><code>run</code>, <code>runOnInstance</code>, <code>runAtHour</code></td><td>See&nbsp;<a class="reference-link" href="../../Scripting/Events.md">Events</a>.</td></tr><tr><td><code>disableInclusion</code></td><td>Scripts with this label won't be included into parent script execution.</td></tr><tr><td><code>sorted</code></td><td><p>Keeps child notes sorted by title alphabetically.</p><p>When given a value, it will sort by the value of another label instead. If one of the child notes doesn't have the specified label, the title will be used for them instead.</p></td></tr><tr><td><code>sortDirection</code></td><td><p>If <code>sorted</code> is applied, specifies the direction of the sort:</p><ul><li><code>ASC</code>, ascending (default)</li><li><code>DESC</code>, descending</li></ul></td></tr><tr><td><code>sortFoldersFirst</code></td><td>If <code>sorted</code> is applied, folders (notes with children) will be sorted as a group at the top, and the rest will be sorted.</td></tr><tr><td><code>top</code></td><td>If <code>sorted</code> is applied to the parent note, keeps given note on top in its parent.</td></tr><tr><td><code>hidePromotedAttributes</code></td><td>Hide&nbsp;<a class="reference-link" href="Promoted%20Attributes.md">Promoted Attributes</a>&nbsp;on this note. Generally useful when defining inherited attributes, but the parent note doesn't need them.</td></tr><tr><td><code>readOnly</code></td><td>Marks a note to be always be <a href="../../Basic%20Concepts%20and%20Features/Notes/Read-Only%20Notes.md">read-only</a>, if it's a supported note (text, code, mermaid).</td></tr><tr><td><code>autoReadOnlyDisabled</code></td><td>Disables automatic <a href="../../Basic%20Concepts%20and%20Features/Notes/Read-Only%20Notes.md">read-only mode</a> for the given note.</td></tr><tr><td><code>appCss</code></td><td>Marks CSS notes which are loaded into the Trilium application and can thus be used to modify Trilium's looks. See&nbsp;<a class="reference-link" href="../../Theme%20development/Custom%20app-wide%20CSS.md">Custom app-wide CSS</a>&nbsp;for more info.</td></tr><tr><td><code>appTheme</code></td><td>Marks CSS notes which are full Trilium themes and are thus available in Trilium options. See&nbsp;<a class="reference-link" href="../../Theme%20development">Theme development</a>&nbsp;for more information.</td></tr><tr><td><code>appThemeBase</code></td><td>Set to <code>next</code>, <code>next-light</code>, or <code>next-dark</code> to use the corresponding TriliumNext theme (auto, light or dark) as the base for a custom theme, instead of the legacy one. See&nbsp;<a class="reference-link" href="../../Theme%20development/Customize%20the%20Next%20theme.md">Customize the Next theme</a>&nbsp;for more information.</td></tr><tr><td><code>cssClass</code></td><td>Value of this label is then added as CSS class to the node representing given note in the&nbsp;<a class="reference-link" href="../../Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree.md">Note Tree</a>. This can be useful for advanced theming. Can be used in template notes.</td></tr><tr><td><code>iconClass</code></td><td>value of this label is added as a CSS class to the icon on the tree which can help visually distinguish the notes in the tree. Example might be bx bx-home - icons are taken from boxicons. Can be used in template notes.</td></tr><tr><td><code>pageSize</code></td><td>Specifies the number of items per page in&nbsp;<a class="reference-link" href="../../Basic%20Concepts%20and%20Features/Notes/Note%20List.md">Note List</a>.</td></tr><tr><td><code>customRequestHandler</code></td><td>See&nbsp;<a class="reference-link" href="../Custom%20Request%20Handler.md">Custom Request Handler</a>.</td></tr><tr><td><code>customResourceProvider</code></td><td>See&nbsp;<a class="reference-link" href="../Custom%20Resource%20Providers.md">Custom Resource Providers</a>.</td></tr><tr><td><code>widget</code></td><td>Marks this note as a custom widget which will be added to the Trilium component tree. See&nbsp;<a class="reference-link" href="../../Scripting/Custom%20Widgets.md">Custom Widgets</a>&nbsp;for more information.</td></tr><tr><td><code>searchHome</code></td><td>New search notes will be created as children of this note (see&nbsp;<a class="reference-link" href="../../Note%20Types/Saved%20Search.md">Saved Search</a>).</td></tr><tr><td><code>workspace</code> and related attributes</td><td>See&nbsp;<a class="reference-link" href="../../Basic%20Concepts%20and%20Features/Navigation/Workspaces.md">Workspaces</a>.</td></tr><tr><td><code>inbox</code></td><td>default inbox location for new notes - when you create a note using <em>new note</em> button in the sidebar, notes will be created as child notes in the note marked as with <code>#inbox</code> label.</td></tr><tr><td><code>sqlConsoleHome</code></td><td>Default location of&nbsp;<a class="reference-link" href="#root/_hidden/_help/_help_tC7s2alapj8V/_help_wX4HbRucYSDD/_help_oyIAJ9PvvwHX/_help_YKWqdJhzi2VY">SQL Console</a>&nbsp;notes</td></tr><tr><td><code>bookmarked</code></td><td>Indicates this note is a <a href="../../Basic%20Concepts%20and%20Features/Navigation/Bookmarks.md">bookmark</a>.</td></tr><tr><td><code>bookmarkFolder</code></td><td>Note with this label will appear in bookmarks as folder (allowing access to its children). See&nbsp;<a class="reference-link" href="../../Basic%20Concepts%20and%20Features/Navigation/Bookmarks.md">Bookmarks</a>&nbsp;for more information.</td></tr><tr><td><code>share*</code></td><td>See the attribute reference in&nbsp;<a class="reference-link" href="../Sharing.md">Sharing</a>.</td></tr><tr><td><code>displayRelations</code>, <code>hideRelations</code></td><td>Comma delimited names of relations which should be displayed/hidden in a&nbsp;<a class="reference-link" href="../../Note%20Types/Relation%20Map.md">Relation Map</a>&nbsp;(both the note type and the&nbsp;<a class="reference-link" href="../Note%20Map%20(Link%20map%2C%20Tree%20map).md">Note Map (Link map, Tree map)</a>&nbsp;general functionality).</td></tr><tr><td><code>titleTemplate</code></td><td><p>Default title of notes created as children of this note. This value is evaluated as a JavaScript string and thus can be enriched with dynamic content via the injected <code>now</code> and <code>parentNote</code> variables.</p><p>Examples:</p><ul><li><code>${parentNote.getLabel('authorName')}'s literary works</code></li><li><code>Log for ${now.format('YYYY-MM-DD HH:mm:ss')}</code></li><li>to mirror the parent's template.</li></ul><p>See&nbsp;<a class="reference-link" href="../Default%20Note%20Title.md">Default Note Title</a>&nbsp;for more info.</p></td></tr><tr><td><code>template</code></td><td>This note will appear in the selection of available template when creating new note. See&nbsp;<a class="reference-link" href="../Templates.md">Templates</a>&nbsp;for more information.</td></tr><tr><td><code>toc</code></td><td>Controls the display of the&nbsp;<a class="reference-link" href="../../Note%20Types/Text/Table%20of%20contents.md">Table of contents</a>&nbsp;for a given note. <code>#toc</code> or <code>#toc=show</code> to always display the table of contents, <code>#toc=false</code> to always hide it.</td></tr><tr><td><code>color</code></td><td>defines color of the note in note tree, links etc. Use any valid CSS color value like 'red' or #a13d5f</td></tr><tr><td><code>keyboardShortcut</code></td><td>Defines a keyboard shortcut which will immediately jump to this note. Example: 'ctrl+alt+e'. Requires frontend reload for the change to take effect.</td></tr><tr><td><code>keepCurrentHoisting</code></td><td>Opening this link won't change hoisting even if the note is not displayable in the current hoisted subtree.</td></tr><tr><td><code>executeButton</code></td><td>Title of the button which will execute the current code note</td></tr><tr><td><code>executeDescription</code></td><td>Longer description of the current code note displayed together with the execute button</td></tr><tr><td><code>excludeFromNoteMap</code></td><td>Notes with this label will be hidden from the&nbsp;<a class="reference-link" href="../../Note%20Types/Note%20Map.md">Note Map</a>.</td></tr><tr><td><code>newNotesOnTop</code></td><td>New notes will be created at the top of the parent note, not on the bottom.</td></tr><tr><td><code>hideHighlightWidget</code></td><td>Hides the&nbsp;<a class="reference-link" href="../../Note%20Types/Text/Highlights%20list.md">Highlights list</a>&nbsp;widget</td></tr><tr><td><code>hideChildrenOverview</code></td><td>Hides the&nbsp;<a class="reference-link" href="../../Basic%20Concepts%20and%20Features/Notes/Note%20List.md">Note List</a>&nbsp;for that particular note.</td></tr><tr><td><code>printLandscape</code></td><td>When exporting to PDF, changes the orientation of the page to landscape instead of portrait.</td></tr><tr><td><code>printPageSize</code></td><td>When exporting to PDF, changes the size of the page. Supported values: <code>A0</code>, <code>A1</code>, <code>A2</code>, <code>A3</code>, <code>A4</code>, <code>A5</code>, <code>A6</code>, <code>Legal</code>, <code>Letter</code>, <code>Tabloid</code>, <code>Ledger</code>.</td></tr><tr><td><code>geolocation</code></td><td>Indicates the latitude and longitude of a note, to be displayed in a&nbsp;<a class="reference-link" href="../../Note%20Types/Geo%20Map.md">Geo Map</a>.</td></tr><tr><td><code>calendar:*</code></td><td>Defines specific options for the&nbsp;<a class="reference-link" href="../../Basic%20Concepts%20and%20Features/Notes/Note%20List/Calendar%20View.md">Calendar View</a>.</td></tr><tr><td><code>viewType</code></td><td>Sets the view of child notes (e.g. grid or list). See&nbsp;<a class="reference-link" href="../../Basic%20Concepts%20and%20Features/Notes/Note%20List.md">Note List</a>&nbsp;for more information.</td></tr></tbody></table></figure>
+## Creating a label manually
-## Relations
+In the _Owned Attributes_ section in the <a class="reference-link" href="../../Basic%20Concepts%20and%20Features/UI%20Elements/Ribbon.md">Ribbon</a>:
+
+* To create a label called `myLabel` with no value, simply type `#myLabel`.
+* To create a label called `myLabel` with a value `value`, simply type `#myLabel=value`.
+* If the value contains spaces, then the text must be quoted: `#myLabel="Hello world"`.
+* If the string contains quotes (regardless of whether it has spaces), then the text must be quoted with apostrophes instead: `#myLabel='Hello "world"'`.
+* To create an inheritable label called `myLabel`, simply write `#myLabel(inheritable)` for no value or `#myLabel(inheritable)=value` if there is a value.
+
+## Predefined labels
+
+This is a list of labels that Trilium natively supports.
> [!TIP]
-> Some relations presented here end with a `*`. That means that there are multiple relations with the same prefix, consult the specific page linked in the description of that relation for more information.
+> Some labels presented here end with a `*`. That means that there are multiple labels with the same prefix, consult the specific page linked in the description of that label for more information.
-<figure class="table" style="width:100%;"><table class="ck-table-resized"><colgroup><col style="width:33.95%;"><col style="width:66.05%;"></colgroup><thead><tr><th>Label</th><th>Description</th></tr></thead><tbody><tr><td><code>runOn*</code></td><td>See&nbsp;<a class="reference-link" href="../../Scripting/Events.md">Events</a></td></tr><tr><td><code>template</code></td><td>note's attributes will be inherited even without a parent-child relationship, note's content and subtree will be added to instance notes if empty. See documentation for details.</td></tr><tr><td><code>inherit</code></td><td>note's attributes will be inherited even without a parent-child relationship. See&nbsp;<a class="reference-link" href="../Templates.md">Templates</a>&nbsp;for a similar concept. See&nbsp;<a class="reference-link" href="Attribute%20Inheritance.md">Attribute Inheritance</a>&nbsp;in the documentation.</td></tr><tr><td><code>renderNote</code></td><td>notes of type&nbsp;<a class="reference-link" href="../../Note%20Types/Render%20Note.md">Render Note</a>&nbsp;will be rendered using a code note (HTML or script) and it is necessary to point using this relation to which note should be rendered</td></tr><tr><td><code>widget_relation</code></td><td>target of this relation will be executed and rendered as a widget in the sidebar</td></tr><tr><td><code>shareCss</code></td><td>CSS note which will be injected into the share page. CSS note must be in the shared sub-tree as well. Consider using <code>share_hidden_from_tree</code> and <code>share_omit_default_css</code> as well.</td></tr><tr><td><code>shareJs</code></td><td>JavaScript note which will be injected into the share page. JS note must be in the shared sub-tree as well. Consider using <code>share_hidden_from_tree</code>.</td></tr><tr><td><code>shareTemplate</code></td><td>Embedded JavaScript note that will be used as the template for displaying the shared note. Falls back to the default template. Consider using <code>share_hidden_from_tree</code>.</td></tr><tr><td><code>shareFavicon</code></td><td>Favicon note to be set in the shared page. Typically you want to set it to share root and make it inheritable. Favicon note must be in the shared sub-tree as well. Consider using <code>share_hidden_from_tree</code>.</td></tr></tbody></table></figure>
\ No newline at end of file
+<figure class="table" style="width:100%;"><table class="ck-table-resized"><colgroup><col style="width:33.82%;"><col style="width:66.18%;"></colgroup><thead><tr><th>Label</th><th>Description</th></tr></thead><tbody><tr><td><code>disableVersioning</code></td><td>Disables automatic creation of&nbsp;<a class="reference-link" href="../../Basic%20Concepts%20and%20Features/Notes/Note%20Revisions.md">Note Revisions</a>&nbsp;for a particular note. Useful for e.g. large, but unimportant notes - e.g. large JS libraries used for scripting.</td></tr><tr><td><code>versioningLimit</code></td><td>Limits the maximum number of&nbsp;<a class="reference-link" href="../../Basic%20Concepts%20and%20Features/Notes/Note%20Revisions.md">Note Revisions</a>&nbsp;for a particular note, overriding the global settings.</td></tr><tr><td><code>calendarRoot</code></td><td>Marks the note which should be used as root for&nbsp;<a class="reference-link" href="../Advanced%20Showcases/Day%20Notes.md">Day Notes</a>. Only one should be marked as such.</td></tr><tr><td><code>archived</code></td><td>Hides notes from default search results and dialogs. Archived notes can optionally be hidden in the&nbsp;<a class="reference-link" href="../../Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree.md">Note Tree</a>.</td></tr><tr><td><code>excludeFromExport</code></td><td>Excludes this note and its children when exporting.</td></tr><tr><td><code>run</code>, <code>runOnInstance</code>, <code>runAtHour</code></td><td>See&nbsp;<a class="reference-link" href="../../Scripting/Events.md">Events</a>.</td></tr><tr><td><code>disableInclusion</code></td><td>Scripts with this label won't be included into parent script execution.</td></tr><tr><td><code>sorted</code></td><td><p>Keeps child notes sorted by title alphabetically.</p><p>When given a value, it will sort by the value of another label instead. If one of the child notes doesn't have the specified label, the title will be used for them instead.</p></td></tr><tr><td><code>sortDirection</code></td><td><p>If <code>sorted</code> is applied, specifies the direction of the sort:</p><ul><li><code>ASC</code>, ascending (default)</li><li><code>DESC</code>, descending</li></ul></td></tr><tr><td><code>sortFoldersFirst</code></td><td>If <code>sorted</code> is applied, folders (notes with children) will be sorted as a group at the top, and the rest will be sorted.</td></tr><tr><td><code>top</code></td><td>If <code>sorted</code> is applied to the parent note, keeps given note on top in its parent.</td></tr><tr><td><code>hidePromotedAttributes</code></td><td>Hide&nbsp;<a class="reference-link" href="Promoted%20Attributes.md">Promoted Attributes</a>&nbsp;on this note. Generally useful when defining inherited attributes, but the parent note doesn't need them.</td></tr><tr><td><code>readOnly</code></td><td>Marks a note to be always be <a href="../../Basic%20Concepts%20and%20Features/Notes/Read-Only%20Notes.md">read-only</a>, if it's a supported note (text, code, mermaid).</td></tr><tr><td><code>autoReadOnlyDisabled</code></td><td>Disables automatic <a href="../../Basic%20Concepts%20and%20Features/Notes/Read-Only%20Notes.md">read-only mode</a> for the given note.</td></tr><tr><td><code>appCss</code></td><td>Marks CSS notes which are loaded into the Trilium application and can thus be used to modify Trilium's looks. See&nbsp;<a class="reference-link" href="../../Theme%20development/Custom%20app-wide%20CSS.md">Custom app-wide CSS</a>&nbsp;for more info.</td></tr><tr><td><code>appTheme</code></td><td>Marks CSS notes which are full Trilium themes and are thus available in Trilium options. See&nbsp;<a class="reference-link" href="../../Theme%20development">Theme development</a>&nbsp;for more information.</td></tr><tr><td><code>appThemeBase</code></td><td>Set to <code>next</code>, <code>next-light</code>, or <code>next-dark</code> to use the corresponding TriliumNext theme (auto, light or dark) as the base for a custom theme, instead of the legacy one. See&nbsp;<a class="reference-link" href="../../Theme%20development/Customize%20the%20Next%20theme.md">Customize the Next theme</a>&nbsp;for more information.</td></tr><tr><td><code>cssClass</code></td><td>Value of this label is then added as CSS class to the node representing given note in the&nbsp;<a class="reference-link" href="../../Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree.md">Note Tree</a>. This can be useful for advanced theming. Can be used in template notes.</td></tr><tr><td><code>iconClass</code></td><td>value of this label is added as a CSS class to the icon on the tree which can help visually distinguish the notes in the tree. Example might be bx bx-home - icons are taken from boxicons. Can be used in template notes.</td></tr><tr><td><code>pageSize</code></td><td>Specifies the number of items per page in&nbsp;<a class="reference-link" href="../../Basic%20Concepts%20and%20Features/Notes/Note%20List.md">Note List</a>.</td></tr><tr><td><code>customRequestHandler</code></td><td>See&nbsp;<a class="reference-link" href="../Custom%20Request%20Handler.md">Custom Request Handler</a>.</td></tr><tr><td><code>customResourceProvider</code></td><td>See&nbsp;<a class="reference-link" href="../Custom%20Resource%20Providers.md">Custom Resource Providers</a>.</td></tr><tr><td><code>widget</code></td><td>Marks this note as a custom widget which will be added to the Trilium component tree. See&nbsp;<a class="reference-link" href="../../Scripting/Custom%20Widgets.md">Custom Widgets</a>&nbsp;for more information.</td></tr><tr><td><code>searchHome</code></td><td>New search notes will be created as children of this note (see&nbsp;<a class="reference-link" href="../../Note%20Types/Saved%20Search.md">Saved Search</a>).</td></tr><tr><td><code>workspace</code> and related attributes</td><td>See&nbsp;<a class="reference-link" href="../../Basic%20Concepts%20and%20Features/Navigation/Workspaces.md">Workspaces</a>.</td></tr><tr><td><code>inbox</code></td><td>default inbox location for new notes - when you create a note using <em>new note</em> button in the sidebar, notes will be created as child notes in the note marked as with <code>#inbox</code> label.</td></tr><tr><td><code>sqlConsoleHome</code></td><td>Default location of&nbsp;<a class="reference-link" href="#root/_hidden/_help/_help_tC7s2alapj8V/_help_wX4HbRucYSDD/_help_oyIAJ9PvvwHX/_help_YKWqdJhzi2VY">SQL Console</a>&nbsp;notes</td></tr><tr><td><code>bookmarked</code></td><td>Indicates this note is a <a href="../../Basic%20Concepts%20and%20Features/Navigation/Bookmarks.md">bookmark</a>.</td></tr><tr><td><code>bookmarkFolder</code></td><td>Note with this label will appear in bookmarks as folder (allowing access to its children). See&nbsp;<a class="reference-link" href="../../Basic%20Concepts%20and%20Features/Navigation/Bookmarks.md">Bookmarks</a>&nbsp;for more information.</td></tr><tr><td><code>share*</code></td><td>See the attribute reference in&nbsp;<a class="reference-link" href="../Sharing.md">Sharing</a>.</td></tr><tr><td><code>displayRelations</code>, <code>hideRelations</code></td><td>Comma delimited names of relations which should be displayed/hidden in a&nbsp;<a class="reference-link" href="../../Note%20Types/Relation%20Map.md">Relation Map</a>&nbsp;(both the note type and the&nbsp;<a class="reference-link" href="../Note%20Map%20(Link%20map%2C%20Tree%20map).md">Note Map (Link map, Tree map)</a>&nbsp;general functionality).</td></tr><tr><td><code>titleTemplate</code></td><td><p>Default title of notes created as children of this note. This value is evaluated as a JavaScript string and thus can be enriched with dynamic content via the injected <code>now</code> and <code>parentNote</code> variables.</p><p>Examples:</p><ul><li><code>${parentNote.getLabel('authorName')}'s literary works</code></li><li><code>Log for ${now.format('YYYY-MM-DD HH:mm:ss')}</code></li><li>to mirror the parent's template.</li></ul><p>See&nbsp;<a class="reference-link" href="../Default%20Note%20Title.md">Default Note Title</a>&nbsp;for more info.</p></td></tr><tr><td><code>template</code></td><td>This note will appear in the selection of available template when creating new note. See&nbsp;<a class="reference-link" href="../Templates.md">Templates</a>&nbsp;for more information.</td></tr><tr><td><code>toc</code></td><td>Controls the display of the&nbsp;<a class="reference-link" href="../../Note%20Types/Text/Table%20of%20contents.md">Table of contents</a>&nbsp;for a given note. <code>#toc</code> or <code>#toc=show</code> to always display the table of contents, <code>#toc=false</code> to always hide it.</td></tr><tr><td><code>color</code></td><td>defines color of the note in note tree, links etc. Use any valid CSS color value like 'red' or #a13d5f</td></tr><tr><td><code>keyboardShortcut</code></td><td>Defines a keyboard shortcut which will immediately jump to this note. Example: 'ctrl+alt+e'. Requires frontend reload for the change to take effect.</td></tr><tr><td><code>keepCurrentHoisting</code></td><td>Opening this link won't change hoisting even if the note is not displayable in the current hoisted subtree.</td></tr><tr><td><code>executeButton</code></td><td>Title of the button which will execute the current code note</td></tr><tr><td><code>executeDescription</code></td><td>Longer description of the current code note displayed together with the execute button</td></tr><tr><td><code>excludeFromNoteMap</code></td><td>Notes with this label will be hidden from the&nbsp;<a class="reference-link" href="../../Note%20Types/Note%20Map.md">Note Map</a>.</td></tr><tr><td><code>newNotesOnTop</code></td><td>New notes will be created at the top of the parent note, not on the bottom.</td></tr><tr><td><code>hideHighlightWidget</code></td><td>Hides the&nbsp;<a class="reference-link" href="../../Note%20Types/Text/Highlights%20list.md">Highlights list</a>&nbsp;widget</td></tr><tr><td><code>hideChildrenOverview</code></td><td>Hides the&nbsp;<a class="reference-link" href="../../Basic%20Concepts%20and%20Features/Notes/Note%20List.md">Note List</a>&nbsp;for that particular note.</td></tr><tr><td><code>printLandscape</code></td><td>When exporting to PDF, changes the orientation of the page to landscape instead of portrait.</td></tr><tr><td><code>printPageSize</code></td><td>When exporting to PDF, changes the size of the page. Supported values: <code>A0</code>, <code>A1</code>, <code>A2</code>, <code>A3</code>, <code>A4</code>, <code>A5</code>, <code>A6</code>, <code>Legal</code>, <code>Letter</code>, <code>Tabloid</code>, <code>Ledger</code>.</td></tr><tr><td><code>geolocation</code></td><td>Indicates the latitude and longitude of a note, to be displayed in a&nbsp;<a class="reference-link" href="../../Note%20Types/Geo%20Map.md">Geo Map</a>.</td></tr><tr><td><code>calendar:*</code></td><td>Defines specific options for the&nbsp;<a class="reference-link" href="../../Basic%20Concepts%20and%20Features/Notes/Note%20List/Calendar%20View.md">Calendar View</a>.</td></tr><tr><td><code>viewType</code></td><td>Sets the view of child notes (e.g. grid or list). See&nbsp;<a class="reference-link" href="../../Basic%20Concepts%20and%20Features/Notes/Note%20List.md">Note List</a>&nbsp;for more information.</td></tr></tbody></table></figure>
\ No newline at end of file
diff --git a/docs/User Guide/User Guide/Advanced Usage/Attributes/Relations.md b/docs/User Guide/User Guide/Advanced Usage/Attributes/Relations.md
new file mode 100644
index 0000000000..754351a780
--- /dev/null
+++ b/docs/User Guide/User Guide/Advanced Usage/Attributes/Relations.md
@@ -0,0 +1,37 @@
+# Relations
+A relation is similar to a [label](Labels.md), but instead of having a text value it refers to another note.
+
+## Creating a relation using the visual editor
+
+1. Go to the _Owned Attributes_ section in the <a class="reference-link" href="../../Basic%20Concepts%20and%20Features/UI%20Elements/Ribbon.md">Ribbon</a>.
+2. Press the + button (_Add new attribute_) to the right.
+3. Select _Add new relation_ for the relation.
+
+> [!TIP]
+> If you prefer keyboard shortcuts, press <kbd>Alt</kbd>+<kbd>L</kbd> while focused on a note or in the _Owned Attributes_ section to display the visual editor.
+
+While in the visual editor:
+
+* Set the desired name
+* Set the Target note (the note to point to). Unlike labels, relations cannot exist with a target note.
+* Check _Inheritable_ if the label should be inherited by the child notes as well. See <a class="reference-link" href="Attribute%20Inheritance.md">Attribute Inheritance</a> for more information.
+
+## Creating a relation manually
+
+In the _Owned Attributes_ section in the <a class="reference-link" href="../../Basic%20Concepts%20and%20Features/UI%20Elements/Ribbon.md">Ribbon</a>:
+
+* To create a relation called `myRelation`:
+ * First type `~myRelation=@` .
+ * After this, an autocompletion box should appear.
+ * Type the title of the note to point to and press <kbd>Enter</kbd> to confirm (or click the desired note).
+ * Alternatively copy a note from the <a class="reference-link" href="../../Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree.md">Note Tree</a> and paste it after the `=` sign (without the `@` , in this case).
+* To create an inheritable relation, follow the same steps as previously described but instead of `~myRelation` write `~myRelation(inheritable)`.
+
+## Predefined relations
+
+These relations are supported and used internally by Trilium.
+
+> [!TIP]
+> Some relations presented here end with a `*`. That means that there are multiple relations with the same prefix, consult the specific page linked in the description of that relation for more information.
+
+<figure class="table" style="width:100%;"><table class="ck-table-resized"><colgroup><col style="width:33.95%;"><col style="width:66.05%;"></colgroup><thead><tr><th>Label</th><th>Description</th></tr></thead><tbody><tr><td><code>runOn*</code></td><td>See&nbsp;<a class="reference-link" href="../../Scripting/Events.md">Events</a></td></tr><tr><td><code>template</code></td><td>note's attributes will be inherited even without a parent-child relationship, note's content and subtree will be added to instance notes if empty. See documentation for details.</td></tr><tr><td><code>inherit</code></td><td>note's attributes will be inherited even without a parent-child relationship. See&nbsp;<a class="reference-link" href="../Templates.md">Templates</a>&nbsp;for a similar concept. See&nbsp;<a class="reference-link" href="Attribute%20Inheritance.md">Attribute Inheritance</a>&nbsp;in the documentation.</td></tr><tr><td><code>renderNote</code></td><td>notes of type&nbsp;<a class="reference-link" href="../../Note%20Types/Render%20Note.md">Render Note</a>&nbsp;will be rendered using a code note (HTML or script) and it is necessary to point using this relation to which note should be rendered</td></tr><tr><td><code>widget_relation</code></td><td>target of this relation will be executed and rendered as a widget in the sidebar</td></tr><tr><td><code>shareCss</code></td><td>CSS note which will be injected into the share page. CSS note must be in the shared sub-tree as well. Consider using <code>share_hidden_from_tree</code> and <code>share_omit_default_css</code> as well.</td></tr><tr><td><code>shareJs</code></td><td>JavaScript note which will be injected into the share page. JS note must be in the shared sub-tree as well. Consider using <code>share_hidden_from_tree</code>.</td></tr><tr><td><code>shareTemplate</code></td><td>Embedded JavaScript note that will be used as the template for displaying the shared note. Falls back to the default template. Consider using <code>share_hidden_from_tree</code>.</td></tr><tr><td><code>shareFavicon</code></td><td>Favicon note to be set in the shared page. Typically you want to set it to share root and make it inheritable. Favicon note must be in the shared sub-tree as well. Consider using <code>share_hidden_from_tree</code>.</td></tr></tbody></table></figure>
\ No newline at end of file
diff --git a/docs/User Guide/User Guide/Advanced Usage/Attributes_image.png b/docs/User Guide/User Guide/Advanced Usage/Attributes_image.png
index 2ea2690121..bb52b50011 100644
Binary files a/docs/User Guide/User Guide/Advanced Usage/Attributes_image.png and b/docs/User Guide/User Guide/Advanced Usage/Attributes_image.png differ
diff --git a/src/public/app/doc_notes/en/User Guide/!!!meta.json b/src/public/app/doc_notes/en/User Guide/!!!meta.json
index a5fbfdeb44..3e8fc5011a 100644
--- a/src/public/app/doc_notes/en/User Guide/!!!meta.json
+++ b/src/public/app/doc_notes/en/User Guide/!!!meta.json
@@ -6732,19 +6732,26 @@
{
"type": "relation",
"name": "internalLink",
- "value": "Ucmcs8SfrYdD",
+ "value": "HI6GBBIduIgv",
"isInheritable": false,
"position": 120
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "Cq5X6iKQop6R",
+ "isInheritable": false,
+ "position": 130
}
],
"format": "html",
"dataFileName": "Attributes.html",
"attachments": [
{
- "attachmentId": "P4eRVtGFoHh2",
+ "attachmentId": "4YqnV7iugVCJ",
"title": "image.png",
"role": "image",
- "mime": "image/jpg",
+ "mime": "image/png",
"position": 10,
"dataFileName": "Attributes_image.png"
}
@@ -6753,342 +6760,440 @@
"children": [
{
"isClone": false,
- "noteId": "bwZpz2ajCEwO",
+ "noteId": "HI6GBBIduIgv",
"notePath": [
"pOsGYCXsbNQG",
"tC7s2alapj8V",
"zEY4DaJG4YT5",
- "bwZpz2ajCEwO"
+ "HI6GBBIduIgv"
],
- "title": "Attribute Inheritance",
+ "title": "Labels",
"notePosition": 10,
"prefix": null,
"isExpanded": false,
"type": "text",
- "mime": "text/markdown",
+ "mime": "text/html",
"attributes": [
{
"type": "relation",
"name": "internalLink",
- "value": "KC1HB96bqqHX",
+ "value": "zEY4DaJG4YT5",
"isInheritable": false,
"position": 10
},
- {
- "type": "label",
- "name": "shareAlias",
- "value": "attribute-inheritance",
- "isInheritable": false,
- "position": 20
- },
- {
- "type": "label",
- "name": "iconClass",
- "value": "bx bx-list-plus",
- "isInheritable": false,
- "position": 30
- }
- ],
- "format": "html",
- "dataFileName": "Attribute Inheritance.html",
- "attachments": []
- },
- {
- "isClone": false,
- "noteId": "OFXdgB2nNk1F",
- "notePath": [
- "pOsGYCXsbNQG",
- "tC7s2alapj8V",
- "zEY4DaJG4YT5",
- "OFXdgB2nNk1F"
- ],
- "title": "Promoted Attributes",
- "notePosition": 20,
- "prefix": null,
- "isExpanded": false,
- "type": "text",
- "mime": "text/markdown",
- "attributes": [
{
"type": "relation",
"name": "internalLink",
- "value": "zEY4DaJG4YT5",
+ "value": "BlN9DFI679QC",
"isInheritable": false,
- "position": 10
+ "position": 20
},
{
"type": "relation",
"name": "internalLink",
"value": "bwZpz2ajCEwO",
"isInheritable": false,
- "position": 20
- },
- {
- "type": "label",
- "name": "shareAlias",
- "value": "promoted-attributes",
- "isInheritable": false,
- "position": 10
+ "position": 30
},
{
"type": "label",
"name": "iconClass",
- "value": "bx bx-table",
+ "value": "bx bx-hash",
"isInheritable": false,
"position": 40
- }
- ],
- "format": "html",
- "dataFileName": "Promoted Attributes.html",
- "attachments": [
- {
- "attachmentId": "4EcBRWF9iCk2",
- "title": "image.png",
- "role": "image",
- "mime": "image/jpg",
- "position": 10,
- "dataFileName": "Promoted Attributes_image.png"
},
- {
- "attachmentId": "Txf5Jdm2vqt2",
- "title": "promoted-attributes.png",
- "role": "image",
- "mime": "image/png",
- "position": 10,
- "dataFileName": "Promoted Attributes_promot.png"
- }
- ]
- },
- {
- "isClone": false,
- "noteId": "Ucmcs8SfrYdD",
- "notePath": [
- "pOsGYCXsbNQG",
- "tC7s2alapj8V",
- "zEY4DaJG4YT5",
- "Ucmcs8SfrYdD"
- ],
- "title": "Attribute Reference",
- "notePosition": 30,
- "prefix": null,
- "isExpanded": false,
- "type": "text",
- "mime": "text/html",
- "attributes": [
{
"type": "relation",
"name": "internalLink",
- "value": "l0tKav7yLHGF",
+ "value": "vZWERwf8U3nx",
"isInheritable": false,
- "position": 10
+ "position": 60
},
{
"type": "relation",
"name": "internalLink",
- "value": "bwZpz2ajCEwO",
+ "value": "l0tKav7yLHGF",
"isInheritable": false,
- "position": 20
+ "position": 70
},
{
"type": "relation",
"name": "internalLink",
- "value": "vZWERwf8U3nx",
+ "value": "oPVyFC7WL2Lp",
"isInheritable": false,
- "position": 30
+ "position": 80
},
{
"type": "relation",
"name": "internalLink",
- "value": "oPVyFC7WL2Lp",
+ "value": "GPERMystNGTB",
"isInheritable": false,
- "position": 40
+ "position": 90
},
{
"type": "relation",
"name": "internalLink",
"value": "OFXdgB2nNk1F",
"isInheritable": false,
- "position": 50
+ "position": 100
},
{
"type": "relation",
"name": "internalLink",
"value": "CoFPLs3dRlXc",
"isInheritable": false,
- "position": 60
+ "position": 110
},
{
"type": "relation",
"name": "internalLink",
- "value": "WFGzWeUK6arS",
+ "value": "AlhDUqhENtH7",
"isInheritable": false,
- "position": 70
+ "position": 120
},
{
"type": "relation",
"name": "internalLink",
- "value": "J5Ex1ZrMbyJ6",
+ "value": "pKK96zzmvBGf",
"isInheritable": false,
- "position": 80
+ "position": 130
},
{
"type": "relation",
"name": "internalLink",
- "value": "d3fAXQ2diepH",
+ "value": "WFGzWeUK6arS",
"isInheritable": false,
- "position": 90
+ "position": 140
},
{
"type": "relation",
"name": "internalLink",
- "value": "MgibgPcfeuGz",
+ "value": "0ESUbbAxVnoK",
"isInheritable": false,
- "position": 100
+ "position": 150
},
{
"type": "relation",
"name": "internalLink",
- "value": "BFvAtE74rbP6",
+ "value": "J5Ex1ZrMbyJ6",
"isInheritable": false,
- "position": 110
+ "position": 160
},
{
"type": "relation",
"name": "internalLink",
- "value": "bdUJEHsAPYQR",
+ "value": "d3fAXQ2diepH",
"isInheritable": false,
- "position": 120
+ "position": 170
},
{
"type": "relation",
"name": "internalLink",
- "value": "KC1HB96bqqHX",
+ "value": "MgibgPcfeuGz",
"isInheritable": false,
- "position": 130
+ "position": 180
},
{
"type": "relation",
"name": "internalLink",
- "value": "HcABDtFCkbFN",
+ "value": "m523cpzocqaD",
"isInheritable": false,
- "position": 140
+ "position": 190
},
{
"type": "relation",
"name": "internalLink",
"value": "9sRHySam5fXb",
"isInheritable": false,
- "position": 160
- },
- {
- "type": "relation",
- "name": "internalLink",
- "value": "u3YFHC9tQlpm",
- "isInheritable": false,
- "position": 170
+ "position": 200
},
{
"type": "relation",
"name": "internalLink",
- "value": "R9pX4DGra2Vt",
+ "value": "_help_YKWqdJhzi2VY",
"isInheritable": false,
- "position": 180
+ "position": 210
},
{
"type": "relation",
"name": "internalLink",
- "value": "pKK96zzmvBGf",
+ "value": "u3YFHC9tQlpm",
"isInheritable": false,
"position": 220
},
{
"type": "relation",
"name": "internalLink",
- "value": "AlhDUqhENtH7",
+ "value": "R9pX4DGra2Vt",
"isInheritable": false,
"position": 230
},
{
"type": "relation",
"name": "internalLink",
- "value": "0ESUbbAxVnoK",
+ "value": "iRwzGnHPzonm",
"isInheritable": false,
"position": 240
},
{
"type": "relation",
"name": "internalLink",
- "value": "m523cpzocqaD",
+ "value": "BCkXAVs63Ttv",
"isInheritable": false,
"position": 250
},
{
"type": "relation",
"name": "internalLink",
- "value": "_help_YKWqdJhzi2VY",
+ "value": "47ZrP6FNuoG8",
"isInheritable": false,
"position": 260
},
{
"type": "relation",
"name": "internalLink",
- "value": "iRwzGnHPzonm",
+ "value": "KC1HB96bqqHX",
"isInheritable": false,
"position": 270
},
{
"type": "relation",
"name": "internalLink",
- "value": "BCkXAVs63Ttv",
+ "value": "BFvAtE74rbP6",
"isInheritable": false,
"position": 280
},
{
"type": "relation",
"name": "internalLink",
- "value": "47ZrP6FNuoG8",
+ "value": "bdUJEHsAPYQR",
"isInheritable": false,
"position": 290
},
{
"type": "relation",
"name": "internalLink",
- "value": "81SGnPGMk7Xc",
+ "value": "AxshuNRegLAv",
"isInheritable": false,
"position": 300
},
{
"type": "relation",
"name": "internalLink",
- "value": "GPERMystNGTB",
+ "value": "81SGnPGMk7Xc",
"isInheritable": false,
"position": 310
},
{
"type": "relation",
"name": "internalLink",
- "value": "AxshuNRegLAv",
+ "value": "xWbu3jpNWapp",
"isInheritable": false,
"position": 320
+ }
+ ],
+ "format": "html",
+ "dataFileName": "Labels.html",
+ "attachments": []
+ },
+ {
+ "isClone": false,
+ "noteId": "Cq5X6iKQop6R",
+ "notePath": [
+ "pOsGYCXsbNQG",
+ "tC7s2alapj8V",
+ "zEY4DaJG4YT5",
+ "Cq5X6iKQop6R"
+ ],
+ "title": "Relations",
+ "notePosition": 20,
+ "prefix": null,
+ "isExpanded": false,
+ "type": "text",
+ "mime": "text/html",
+ "attributes": [
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "HI6GBBIduIgv",
+ "isInheritable": false,
+ "position": 10
+ },
+ {
+ "type": "label",
+ "name": "iconClass",
+ "value": "bx bx-transfer",
+ "isInheritable": false,
+ "position": 20
},
{
"type": "relation",
"name": "internalLink",
- "value": "xWbu3jpNWapp",
+ "value": "BlN9DFI679QC",
+ "isInheritable": false,
+ "position": 30
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "bwZpz2ajCEwO",
+ "isInheritable": false,
+ "position": 40
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "oPVyFC7WL2Lp",
"isInheritable": false,
- "position": 330
+ "position": 50
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "GPERMystNGTB",
+ "isInheritable": false,
+ "position": 60
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "KC1HB96bqqHX",
+ "isInheritable": false,
+ "position": 70
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "HcABDtFCkbFN",
+ "isInheritable": false,
+ "position": 80
+ }
+ ],
+ "format": "html",
+ "dataFileName": "Relations.html",
+ "attachments": []
+ },
+ {
+ "isClone": false,
+ "noteId": "bwZpz2ajCEwO",
+ "notePath": [
+ "pOsGYCXsbNQG",
+ "tC7s2alapj8V",
+ "zEY4DaJG4YT5",
+ "bwZpz2ajCEwO"
+ ],
+ "title": "Attribute Inheritance",
+ "notePosition": 30,
+ "prefix": null,
+ "isExpanded": false,
+ "type": "text",
+ "mime": "text/markdown",
+ "attributes": [
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "KC1HB96bqqHX",
+ "isInheritable": false,
+ "position": 10
+ },
+ {
+ "type": "label",
+ "name": "shareAlias",
+ "value": "attribute-inheritance",
+ "isInheritable": false,
+ "position": 20
},
{
"type": "label",
"name": "iconClass",
- "value": "bx bx-book-bookmark",
+ "value": "bx bx-list-plus",
+ "isInheritable": false,
+ "position": 30
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "HI6GBBIduIgv",
+ "isInheritable": false,
+ "position": 40
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "Cq5X6iKQop6R",
"isInheritable": false,
- "position": 340
+ "position": 50
}
],
"format": "html",
- "dataFileName": "Attribute Reference.html",
+ "dataFileName": "Attribute Inheritance.html",
"attachments": []
+ },
+ {
+ "isClone": false,
+ "noteId": "OFXdgB2nNk1F",
+ "notePath": [
+ "pOsGYCXsbNQG",
+ "tC7s2alapj8V",
+ "zEY4DaJG4YT5",
+ "OFXdgB2nNk1F"
+ ],
+ "title": "Promoted Attributes",
+ "notePosition": 40,
+ "prefix": null,
+ "isExpanded": false,
+ "type": "text",
+ "mime": "text/markdown",
+ "attributes": [
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "zEY4DaJG4YT5",
+ "isInheritable": false,
+ "position": 10
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "bwZpz2ajCEwO",
+ "isInheritable": false,
+ "position": 20
+ },
+ {
+ "type": "label",
+ "name": "shareAlias",
+ "value": "promoted-attributes",
+ "isInheritable": false,
+ "position": 10
+ },
+ {
+ "type": "label",
+ "name": "iconClass",
+ "value": "bx bx-table",
+ "isInheritable": false,
+ "position": 40
+ }
+ ],
+ "format": "html",
+ "dataFileName": "Promoted Attributes.html",
+ "attachments": [
+ {
+ "attachmentId": "4EcBRWF9iCk2",
+ "title": "image.png",
+ "role": "image",
+ "mime": "image/jpg",
+ "position": 10,
+ "dataFileName": "Promoted Attributes_image.png"
+ },
+ {
+ "attachmentId": "Txf5Jdm2vqt2",
+ "title": "promoted-attributes.png",
+ "role": "image",
+ "mime": "image/png",
+ "position": 10,
+ "dataFileName": "Promoted Attributes_promot.png"
+ }
+ ]
}
]
},
diff --git a/src/public/app/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes.html b/src/public/app/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes.html
index 9f715ddeed..4e579189de 100644
--- a/src/public/app/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes.html
+++ b/src/public/app/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes.html
@@ -16,14 +16,17 @@
<p>In Trilium, attributes are key-value pairs assigned to notes, providing
additional metadata or functionality. There are two primary types of attributes:</p>
<ol>
- <li><strong>Labels</strong>: Simple key-value text records</li>
- <li><strong>Relations</strong>: Named links to other notes</li>
+ <li><a class="reference-link" href="Attributes/Labels.html">Labels</a>: Simple
+ key-value text records</li>
+ <li><a class="reference-link" href="Attributes/Relations.html">Relations</a>:
+ Named links to other notes</li>
</ol>
<p>These attributes play a crucial role in organizing, categorising, and
enhancing the functionality of notes.</p>
- <p>
- <img src="Attributes_image.png">
- </p>
+ <figure class="image">
+ <img style="aspect-ratio:1071/146;" src="Attributes_image.png" width="1071"
+ height="146">
+ </figure>
<h2>Labels</h2>
<p>Labels in Trilium can be used for a variety of purposes:</p>
<ul>
@@ -36,24 +39,23 @@
such as the "weight" attribute in the&nbsp;<a class="reference-link" href="Advanced%20Showcases/Weight%20Tracker.html">Weight Tracker</a>.</li>
</ul>
<p>Labels are also searchable, enhancing note retrieval.</p>
- <h3>Common Labels for Advanced Configuration</h3>
- <p>See the corresponding section in&nbsp;<a class="reference-link" href="Attributes/Attribute%20Reference.html">Attribute Reference</a>&nbsp;for
- a comprehensive list of attributes.</p>
+ <p>For more information, including predefined labels, see&nbsp;<a class="reference-link"
+ href="Attributes/Labels.html">Labels</a>.</p>
<h2>Relations</h2>
<p>Relations define connections between notes, similar to links.</p>
- <h3>Uses</h3>
+ <p>Uses:</p>
<ul>
<li><strong>Metadata Relationships</strong>: For example, linking a book note
to an author note</li>
<li><strong>Scripting</strong>: Attaching scripts to events or conditions
related to the note</li>
</ul>
- <h3>Common Relations</h3>
- <p>See the corresponding section in&nbsp;<a class="reference-link" href="Attributes/Attribute%20Reference.html">Attribute Reference</a>&nbsp;for
- a comprehensive list of relations.</p>
+ <p>For more information, including a list of predefined relations, see&nbsp;
+ <a
+ class="reference-link" href="Attributes/Relations.html">Relations</a>.</p>
<h2>Multiplicity</h2>
- <p>Attributes in Trilium can be "multivalued", meaning multiple attributes
- with the same name can coexist.</p>
+ <p>Attributes in Trilium can be "multi-valued", meaning multiple attributes
+ with the same name can co-exist.</p>
<h2>Attribute Definitions and Promoted Attributes</h2>
<p>Special labels create "label/attribute" definitions, enhancing the organization
and management of attributes. For more details, see&nbsp;<a class="reference-link"
diff --git a/src/public/app/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes/Attribute Inheritance.html b/src/public/app/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes/Attribute Inheritance.html
index d63f95ae2e..9953f7fa30 100644
--- a/src/public/app/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes/Attribute Inheritance.html
+++ b/src/public/app/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes/Attribute Inheritance.html
@@ -13,15 +13,22 @@
<h1 data-trilium-h1>Attribute Inheritance</h1>
<div class="ck-content">
+ <p>Inheritance refers to the process of having a <a href="Labels.html">label</a> or
+ a <a href="Relations.html">relation</a> shared across multiple notes, generally
+ in parent-child relations (or anywhere if using templates).</p>
<h2>1. Standard Inheritance</h2>
<p>In Trilium, attributes can be automatically inherited by child notes if
they have the <code>isInheritable</code> flag set to <code>true</code>. This
means the attribute (a key-value pair) is applied to the note and all its
descendants.</p>
- <h3>Example Use Case</h3>
- <p>The <code>archived</code> label can be set to be inheritable, allowing you
- to hide a whole subtree of notes from searches and other dialogs by applying
- this label at the top level.</p>
+ <p>To make an attribute inheritable, simply use the visual editor for&nbsp;
+ <a
+ class="reference-link" href="Labels.html">Labels</a>&nbsp;or&nbsp;<a class="reference-link" href="Relations.html">Relations</a>.
+ Alternatively, the attribute can be manually defined where <code>#myLabel=value</code> becomes <code>#myLabel(inheritable)=value</code> when
+ inheritable.</p>
+ <p>As an example, the <code>archived</code> label can be set to be inheritable,
+ allowing you to hide a whole subtree of notes from searches and other dialogs
+ by applying this label at the top level.</p>
<h2>2. Copying Inheritance</h2>
<p>Copying inheritance differs from standard inheritance by using a <code>child:</code> prefix
in the attribute name. This prefix causes new child notes to automatically
diff --git a/src/public/app/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes/Attribute Reference.html b/src/public/app/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes/Labels.html
similarity index 81%
rename from src/public/app/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes/Attribute Reference.html
rename to src/public/app/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes/Labels.html
index ebf7506015..c644d9513c 100644
--- a/src/public/app/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes/Attribute Reference.html
+++ b/src/public/app/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes/Labels.html
@@ -5,15 +5,51 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../../../style.css">
<base target="_parent">
- <title data-trilium-title>Attribute Reference</title>
+ <title data-trilium-title>Labels</title>
</head>
<body>
<div class="content">
- <h1 data-trilium-h1>Attribute Reference</h1>
+ <h1 data-trilium-h1>Labels</h1>
<div class="ck-content">
- <h2>Labels</h2>
+ <p>A label is an <a href="../Attributes.html">attribute</a> of a note which
+ has a name and optionally a value.&nbsp;</p>
+ <h2>Creating a label using the visual editor</h2>
+ <ol>
+ <li>Go to the <em>Owned Attributes</em> section in the&nbsp;<a class="reference-link"
+ href="../../Basic%20Concepts%20and%20Features/UI%20Elements/Ribbon.html">Ribbon</a>.</li>
+ <li>Press the + button (<em>Add new attribute</em>) to the right.</li>
+ <li>Select <em>Add new label</em> for the relation.</li>
+ </ol>
+ <aside class="admonition tip">
+ <p>If you prefer keyboard shortcuts, press <kbd>Alt</kbd>+<kbd>L</kbd> while
+ focused on a note or in the <em>Owned Attributes</em> section to display
+ the visual editor.</p>
+ </aside>
+ <p>While in the visual editor:</p>
+ <ul>
+ <li>Set the desired name</li>
+ <li>Optionally, set the value of the label. Labels can exist without a value.</li>
+ <li>Check <em>Inheritable</em> if the label should be inherited by the child
+ notes as well. See&nbsp;<a class="reference-link" href="Attribute%20Inheritance.html">Attribute Inheritance</a>&nbsp;for
+ more information.</li>
+ </ul>
+ <h2>Creating a label manually</h2>
+ <p>In the <em>Owned Attributes</em> section in the&nbsp;<a class="reference-link"
+ href="../../Basic%20Concepts%20and%20Features/UI%20Elements/Ribbon.html">Ribbon</a>:</p>
+ <ul>
+ <li>To create a label called <code>myLabel</code> with no value, simply type <code>#myLabel</code>.</li>
+ <li>To create a label called <code>myLabel</code> with a value <code>value</code>,
+ simply type <code>#myLabel=value</code>.</li>
+ <li>If the value contains spaces, then the text must be quoted: <code>#myLabel="Hello world"</code>.</li>
+ <li>If the string contains quotes (regardless of whether it has spaces), then
+ the text must be quoted with apostrophes instead: <code>#myLabel='Hello "world"'</code>.</li>
+ <li>To create an inheritable label called <code>myLabel</code>, simply write <code>#myLabel(inheritable)</code> for
+ no value or <code>#myLabel(inheritable)=value</code> if there is a value.</li>
+ </ul>
+ <h2>Predefined labels</h2>
+ <p>This is a list of labels that Trilium natively supports.</p>
<aside class="admonition tip">
<p>Some labels presented here end with a <code>*</code>. That means that there
are multiple labels with the same prefix, consult the specific page linked
@@ -352,88 +388,6 @@
</tbody>
</table>
</figure>
- <h2>Relations</h2>
- <aside class="admonition tip">
- <p>Some relations presented here end with a <code>*</code>. That means that
- there are multiple relations with the same prefix, consult the specific
- page linked in the description of that relation for more information.</p>
- </aside>
- <figure class="table" style="width:100%;">
- <table class="ck-table-resized">
- <colgroup>
- <col style="width:33.95%;">
- <col style="width:66.05%;">
- </colgroup>
- <thead>
- <tr>
- <th>Label</th>
- <th>Description</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><code>runOn*</code>
- </td>
- <td>See&nbsp;<a class="reference-link" href="../../Scripting/Events.html">Events</a>
- </td>
- </tr>
- <tr>
- <td><code>template</code>
- </td>
- <td>note's attributes will be inherited even without a parent-child relationship,
- note's content and subtree will be added to instance notes if empty. See
- documentation for details.</td>
- </tr>
- <tr>
- <td><code>inherit</code>
- </td>
- <td>note's attributes will be inherited even without a parent-child relationship.
- See&nbsp;<a class="reference-link" href="../Templates.html">Templates</a>&nbsp;for
- a similar concept. See&nbsp;<a class="reference-link" href="Attribute%20Inheritance.html">Attribute Inheritance</a>&nbsp;in
- the documentation.</td>
- </tr>
- <tr>
- <td><code>renderNote</code>
- </td>
- <td>notes of type&nbsp;<a class="reference-link" href="../../Note%20Types/Render%20Note.html">Render Note</a>&nbsp;will
- be rendered using a code note (HTML or script) and it is necessary to point
- using this relation to which note should be rendered</td>
- </tr>
- <tr>
- <td><code>widget_relation</code>
- </td>
- <td>target of this relation will be executed and rendered as a widget in the
- sidebar</td>
- </tr>
- <tr>
- <td><code>shareCss</code>
- </td>
- <td>CSS note which will be injected into the share page. CSS note must be
- in the shared sub-tree as well. Consider using <code>share_hidden_from_tree</code> and <code>share_omit_default_css</code> as
- well.</td>
- </tr>
- <tr>
- <td><code>shareJs</code>
- </td>
- <td>JavaScript note which will be injected into the share page. JS note must
- be in the shared sub-tree as well. Consider using <code>share_hidden_from_tree</code>.</td>
- </tr>
- <tr>
- <td><code>shareTemplate</code>
- </td>
- <td>Embedded JavaScript note that will be used as the template for displaying
- the shared note. Falls back to the default template. Consider using <code>share_hidden_from_tree</code>.</td>
- </tr>
- <tr>
- <td><code>shareFavicon</code>
- </td>
- <td>Favicon note to be set in the shared page. Typically you want to set it
- to share root and make it inheritable. Favicon note must be in the shared
- sub-tree as well. Consider using <code>share_hidden_from_tree</code>.</td>
- </tr>
- </tbody>
- </table>
- </figure>
</div>
</div>
</body>
diff --git a/src/public/app/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes/Relations.html b/src/public/app/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes/Relations.html
new file mode 100644
index 0000000000..1148c6d8cc
--- /dev/null
+++ b/src/public/app/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes/Relations.html
@@ -0,0 +1,145 @@
+<html>
+
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <link rel="stylesheet" href="../../../style.css">
+ <base target="_parent">
+ <title data-trilium-title>Relations</title>
+ </head>
+
+ <body>
+ <div class="content">
+ <h1 data-trilium-h1>Relations</h1>
+
+ <div class="ck-content">
+ <p>A relation is similar to a <a href="Labels.html">label</a>, but instead
+ of having a text value it refers to another note.</p>
+ <h2>Creating a relation using the visual editor</h2>
+ <ol>
+ <li>Go to the <em>Owned Attributes</em> section in the&nbsp;<a class="reference-link"
+ href="../../Basic%20Concepts%20and%20Features/UI%20Elements/Ribbon.html">Ribbon</a>.</li>
+ <li>Press the + button (<em>Add new attribute</em>) to the right.</li>
+ <li>Select <em>Add new relation</em> for the relation.</li>
+ </ol>
+ <aside class="admonition tip">
+ <p>If you prefer keyboard shortcuts, press <kbd>Alt</kbd>+<kbd>L</kbd> while
+ focused on a note or in the <em>Owned Attributes</em> section to display
+ the visual editor.</p>
+ </aside>
+ <p>While in the visual editor:</p>
+ <ul>
+ <li>Set the desired name</li>
+ <li>Set the Target note (the note to point to). Unlike labels, relations cannot
+ exist with a target note.</li>
+ <li>Check <em>Inheritable</em> if the label should be inherited by the child
+ notes as well. See&nbsp;<a class="reference-link" href="Attribute%20Inheritance.html">Attribute Inheritance</a>&nbsp;for
+ more information.</li>
+ </ul>
+ <h2>Creating a relation manually</h2>
+ <p>In the <em>Owned Attributes</em> section in the&nbsp;<a class="reference-link"
+ href="../../Basic%20Concepts%20and%20Features/UI%20Elements/Ribbon.html">Ribbon</a>:</p>
+ <ul>
+ <li>To create a relation called <code>myRelation</code>:
+ <ul>
+ <li>First type <code>~myRelation=@</code> .</li>
+ <li>After this, an autocompletion box should appear.</li>
+ <li>Type the title of the note to point to and press <kbd>Enter</kbd> to confirm
+ (or click the desired note).</li>
+ <li>Alternatively copy a note from the&nbsp;<a class="reference-link" href="../../Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree.html">Note Tree</a>&nbsp;and
+ paste it after the <code>=</code> sign (without the <code>@</code> , in this
+ case).</li>
+ </ul>
+ </li>
+ <li>To create an inheritable relation, follow the same steps as previously
+ described but instead of <code>~myRelation</code> write <code>~myRelation(inheritable)</code>.</li>
+ </ul>
+ <h2>Predefined relations</h2>
+ <p>These relations are supported and used internally by Trilium.</p>
+ <aside
+ class="admonition tip">
+ <p>Some relations presented here end with a <code>*</code>. That means that
+ there are multiple relations with the same prefix, consult the specific
+ page linked in the description of that relation for more information.</p>
+ </aside>
+ <figure class="table" style="width:100%;">
+ <table class="ck-table-resized">
+ <colgroup>
+ <col style="width:33.95%;">
+ <col style="width:66.05%;">
+ </colgroup>
+ <thead>
+ <tr>
+ <th>Label</th>
+ <th>Description</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><code>runOn*</code>
+ </td>
+ <td>See&nbsp;<a class="reference-link" href="../../Scripting/Events.html">Events</a>
+ </td>
+ </tr>
+ <tr>
+ <td><code>template</code>
+ </td>
+ <td>note's attributes will be inherited even without a parent-child relationship,
+ note's content and subtree will be added to instance notes if empty. See
+ documentation for details.</td>
+ </tr>
+ <tr>
+ <td><code>inherit</code>
+ </td>
+ <td>note's attributes will be inherited even without a parent-child relationship.
+ See&nbsp;<a class="reference-link" href="../Templates.html">Templates</a>&nbsp;for
+ a similar concept. See&nbsp;<a class="reference-link" href="Attribute%20Inheritance.html">Attribute Inheritance</a>&nbsp;in
+ the documentation.</td>
+ </tr>
+ <tr>
+ <td><code>renderNote</code>
+ </td>
+ <td>notes of type&nbsp;<a class="reference-link" href="../../Note%20Types/Render%20Note.html">Render Note</a>&nbsp;will
+ be rendered using a code note (HTML or script) and it is necessary to point
+ using this relation to which note should be rendered</td>
+ </tr>
+ <tr>
+ <td><code>widget_relation</code>
+ </td>
+ <td>target of this relation will be executed and rendered as a widget in the
+ sidebar</td>
+ </tr>
+ <tr>
+ <td><code>shareCss</code>
+ </td>
+ <td>CSS note which will be injected into the share page. CSS note must be
+ in the shared sub-tree as well. Consider using <code>share_hidden_from_tree</code> and <code>share_omit_default_css</code> as
+ well.</td>
+ </tr>
+ <tr>
+ <td><code>shareJs</code>
+ </td>
+ <td>JavaScript note which will be injected into the share page. JS note must
+ be in the shared sub-tree as well. Consider using <code>share_hidden_from_tree</code>.</td>
+ </tr>
+ <tr>
+ <td><code>shareTemplate</code>
+ </td>
+ <td>Embedded JavaScript note that will be used as the template for displaying
+ the shared note. Falls back to the default template. Consider using <code>share_hidden_from_tree</code>.</td>
+ </tr>
+ <tr>
+ <td><code>shareFavicon</code>
+ </td>
+ <td>Favicon note to be set in the shared page. Typically you want to set it
+ to share root and make it inheritable. Favicon note must be in the shared
+ sub-tree as well. Consider using <code>share_hidden_from_tree</code>.</td>
+ </tr>
+ </tbody>
+ </table>
+ </figure>
+ </div>
+ </div>
+ </body>
+
+</html>
\ No newline at end of file
diff --git a/src/public/app/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes_image.png b/src/public/app/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes_image.png
index 2ea2690121..bb52b50011 100644
Binary files a/src/public/app/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes_image.png and b/src/public/app/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes_image.png differ
diff --git a/src/public/app/doc_notes/en/User Guide/navigation.html b/src/public/app/doc_notes/en/User Guide/navigation.html
index 0a19e04f1e..e182e8de30 100644
--- a/src/public/app/doc_notes/en/User Guide/navigation.html
+++ b/src/public/app/doc_notes/en/User Guide/navigation.html
@@ -319,15 +319,16 @@
<ul>
<li><a href="User%20Guide/Advanced%20Usage/Attributes.html" target="detail">Attributes</a>
<ul>
+ <li><a href="User%20Guide/Advanced%20Usage/Attributes/Labels.html" target="detail">Labels</a>
+ </li>
+ <li><a href="User%20Guide/Advanced%20Usage/Attributes/Relations.html" target="detail">Relations</a>
+ </li>
<li><a href="User%20Guide/Advanced%20Usage/Attributes/Attribute%20Inheritance.html"
target="detail">Attribute Inheritance</a>
</li>
<li><a href="User%20Guide/Advanced%20Usage/Attributes/Promoted%20Attributes.html"
target="detail">Promoted Attributes</a>
</li>
- <li><a href="User%20Guide/Advanced%20Usage/Attributes/Attribute%20Reference.html"
- target="detail">Attribute Reference</a>
- </li>
</ul>
</li>
<li><a href="User%20Guide/Advanced%20Usage/Templates.html" target="detail">Templates</a>