Skip to content

Build your personal knowledge base with Trilium Notes

docs(user): add more references to labels & relations

Elian Doranf5b879da0e77
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes/Labels.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes/Labels.html
index 0edf327a55..f6f93c8f8f 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes/Labels.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes/Labels.html
@@ -436,6 +436,17 @@
<td>Overrides the default location where the Web Clipper saves clippings (defaults
to the day note). See&nbsp;<a class="reference-link" href="#root/pOsGYCXsbNQG/Otzi9La2YAUX/_help_MtPxeAWVAzMg">Web Clipper</a>.</td>
</tr>
+ <tr>
+ <td><code spellcheck="false">similarNotesWidgetDisabled</code>
+ </td>
+ <td>Disables the&nbsp;<a class="reference-link" href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/wArbEsdSae6g/_help_xWtq5NUHOwql">Similar Notes</a>&nbsp;ribbon
+ tab (old layout only)</td>
+ </tr>
+ <tr>
+ <td><code spellcheck="false">docName</code> , <code spellcheck="false">docUrl</code>
+ </td>
+ <td>Used internally for the in-app help.</td>
+ </tr>
</tbody>
</table>
</figure>
\ No newline at end of file
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes/Relations.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes/Relations.html
index 7df739acef..300dafc369 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes/Relations.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Attributes/Relations.html
@@ -19,7 +19,8 @@
<li>Go to the <em>Owned Attributes</em> section in the&nbsp;<a class="reference-link"
href="#root/_help_BlN9DFI679QC">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>
+ <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
@@ -58,12 +59,8 @@
</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 spellcheck="false">*</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">
<table>
<thead>
<tr>
@@ -101,18 +98,18 @@ class="admonition tip">
using this relation to which note should be rendered</td>
</tr>
<tr>
- <td><code spellcheck="false">widget_relation</code>
+ <td><code spellcheck="false">widget</code>
</td>
- <td>target of this relation will be executed and rendered as a widget in the
- sidebar</td>
+ <td>Used in the context of custom&nbsp;<a class="reference-link" href="#root/pOsGYCXsbNQG/CdNpE2pqjmI6/yIhgI5H7A2Sm/_help_4Gn3psZKsfSm">Launch Bar Widgets</a>,
+ to refer to the widget that will be rendered.</td>
</tr>
<tr>
<td><code spellcheck="false">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 spellcheck="false">share_hidden_from_tree</code> and
+ in the shared sub-tree as well. Consider using <code spellcheck="false">shareHiddenFromTree</code> and
<code
- spellcheck="false">share_omit_default_css</code>as well.</td>
+ spellcheck="false">shareOmitDefaultCss</code>as well.</td>
</tr>
<tr>
<td><code spellcheck="false">shareJs</code>
@@ -125,7 +122,7 @@ class="admonition tip">
</td>
<td>HTML note which will be injected into the share page at locations specified
by the <code spellcheck="false">shareHtmlLocation</code> label. HTML note
- must be in the shared sub-tree as well. Consider using <code spellcheck="false">share_hidden_from_tree</code>.</td>
+ must be in the shared sub-tree as well. Consider using <code spellcheck="false">shareHiddenFromTree</code>.</td>
</tr>
<tr>
<td><code spellcheck="false">shareTemplate</code>
@@ -133,14 +130,15 @@ class="admonition tip">
<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
- spellcheck="false">share_hidden_from_tree</code>.</td>
+ spellcheck="false">shareHiddenFromTree</code>.</td>
</tr>
<tr>
<td><code spellcheck="false">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 spellcheck="false">share_hidden_from_tree</code>.</td>
+ sub-tree as well. Consider using <code spellcheck="false">shareHiddenFromTree</code>.</td>
</tr>
</tbody>
- </table>
\ No newline at end of file
+ </table>
+ </figure>
\ No newline at end of file
diff --git a/docs/User Guide/!!!meta.json b/docs/User Guide/!!!meta.json
index 5a334c2ca9..646504bb96 100644
--- a/docs/User Guide/!!!meta.json
+++ b/docs/User Guide/!!!meta.json
@@ -14195,6 +14195,13 @@
"value": "MtPxeAWVAzMg",
"isInheritable": false,
"position": 390
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "xWtq5NUHOwql",
+ "isInheritable": false,
+ "position": 400
}
],
"format": "markdown",
@@ -14293,6 +14300,13 @@
"value": "relations",
"isInheritable": false,
"position": 100
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "4Gn3psZKsfSm",
+ "isInheritable": false,
+ "position": 110
}
],
"format": "markdown",
diff --git a/docs/User Guide/User Guide/Advanced Usage/Attributes/Labels.md b/docs/User Guide/User Guide/Advanced Usage/Attributes/Labels.md
index ea897ff07b..aaa8806ec5 100644
--- a/docs/User Guide/User Guide/Advanced Usage/Attributes/Labels.md
+++ b/docs/User Guide/User Guide/Advanced Usage/Attributes/Labels.md
@@ -95,4 +95,6 @@ This is a list of labels that Trilium natively supports.
| `enableWeekNote`, `enableQuarterNote` | Enables optional week and quarter notes in the calendar hierarchy; set on the calendar root. See <a class="reference-link" href="../Advanced%20Showcases/Day%20Notes.md">Day Notes</a>. |
| `fullContentWidth` | Expands the note to the full editor width, ignoring the configured content width (useful for wide tables). See <a class="reference-link" href="../../Basic%20Concepts%20and%20Features/UI%20Elements/Content%20width.md">Content width</a>. |
| `iconPack` | Identifies a custom icon pack by its prefix. See <a class="reference-link" href="../../Theme%20development/Creating%20an%20icon%20pack.md">Creating an icon pack</a>. |
-| `clipperInbox` | Overrides the default location where the Web Clipper saves clippings (defaults to the day note). See <a class="reference-link" href="../../Installation%20%26%20Setup/Web%20Clipper.md">Web Clipper</a>. |
\ No newline at end of file
+| `clipperInbox` | Overrides the default location where the Web Clipper saves clippings (defaults to the day note). See <a class="reference-link" href="../../Installation%20%26%20Setup/Web%20Clipper.md">Web Clipper</a>. |
+| `similarNotesWidgetDisabled` | Disables the <a class="reference-link" href="../../Basic%20Concepts%20and%20Features/Navigation/Similar%20Notes.md">Similar Notes</a> ribbon tab (old layout only) |
+| `docName` , `docUrl` | Used internally for the in-app help. |
\ 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
index 6e1e9aa1fa..7ef28728fb 100644
--- a/docs/User Guide/User Guide/Advanced Usage/Attributes/Relations.md
+++ b/docs/User Guide/User Guide/Advanced Usage/Attributes/Relations.md
@@ -38,18 +38,15 @@ In the _Owned Attributes_ section in the <a class="reference-link" href="../../
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.
-
| Label | Description |
| --- | --- |
| `runOn*` | See <a class="reference-link" href="../../Scripting/Backend%20scripts/Events.md">Events</a> |
| `template` | 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. |
| `inherit` | note's attributes will be inherited even without a parent-child relationship. See <a class="reference-link" href="../Templates.md">Templates</a> for a similar concept. See <a class="reference-link" href="Attribute%20Inheritance.md">Attribute Inheritance</a> in the documentation. |
| `renderNote` | notes of type <a class="reference-link" href="../../Note%20Types/Render%20Note.md">Render Note</a> 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 |
-| `widget_relation` | target of this relation will be executed and rendered as a widget in the sidebar |
-| `shareCss` | CSS note which will be injected into the share page. CSS note must be in the shared sub-tree as well. Consider using `share_hidden_from_tree` and `share_omit_default_css` as well. |
+| `widget` | Used in the context of custom <a class="reference-link" href="../../Scripting/Frontend%20Basics/Launch%20Bar%20Widgets.md">Launch Bar Widgets</a>, to refer to the widget that will be rendered. |
+| `shareCss` | CSS note which will be injected into the share page. CSS note must be in the shared sub-tree as well. Consider using `shareHiddenFromTree` and `shareOmitDefaultCss` as well. |
| `shareJs` | JavaScript note which will be injected into the share page. JS note must be in the shared sub-tree as well. Consider using `share_hidden_from_tree`. |
-| `shareHtml` | HTML note which will be injected into the share page at locations specified by the `shareHtmlLocation` label. HTML note must be in the shared sub-tree as well. Consider using `share_hidden_from_tree`. |
-| `shareTemplate` | Embedded JavaScript note that will be used as the template for displaying the shared note. Falls back to the default template. Consider using `share_hidden_from_tree`. |
-| `shareFavicon` | 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 `share_hidden_from_tree`. |
\ No newline at end of file
+| `shareHtml` | HTML note which will be injected into the share page at locations specified by the `shareHtmlLocation` label. HTML note must be in the shared sub-tree as well. Consider using `shareHiddenFromTree`. |
+| `shareTemplate` | Embedded JavaScript note that will be used as the template for displaying the shared note. Falls back to the default template. Consider using `shareHiddenFromTree`. |
+| `shareFavicon` | 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 `shareHiddenFromTree`. |
\ No newline at end of file