@ -52,7 +52,7 @@ For each note of the calendar, the following attributes can be used:
| `#calendar:color` | Similar to `#color`, but applies the color only for the event in the calendar and not for other places such as the note tree. |
| `#calendar:color` | Similar to `#color`, but applies the color only for the event in the calendar and not for other places such as the note tree. |
| `#iconClass` | If present, the icon of the note will be displayed to the left of the event title. |
| `#iconClass` | If present, the icon of the note will be displayed to the left of the event title. |
| `#calendar:title` | Changes the title of an event to point to an attribute of the note other than the title, either a label (e.g. `#assignee`) or a relation (e.g. `~for`). See _Advanced use-cases_ for more information. |
| `#calendar:title` | Changes the title of an event to point to an attribute of the note other than the title, either a label (e.g. `#assignee`) or a relation (e.g. `~for`). See _Advanced use-cases_ for more information. |
| `#calendar:displayedAttributes` | Allows displaying the value of one or more attributes in the calendar like this:<br><br><br><br>```<br>#weight="70"<br>#Mood="Good"<br>#calendar:displayedAttributes="weight,Mood"<br>```<br><br>It can also be used with relations, case in which it will display the title of the target note:<br><br>```<br>~assignee=@My assignee<br>#calendar:displayedAttributes="assignee"<br>``` |
| `#calendar:displayedAttributes` | Allows displaying the value of one or more attributes in the calendar like this:<br><br><br><br>`<br>#weight="70"<br>#Mood="Good"<br>#calendar:displayedAttributes="weight,Mood"<br>`<br><br>It can also be used with relations, case in which it will display the title of the target note:<br><br>`<br>~assignee=@My assignee<br>#calendar:displayedAttributes="assignee"<br>` |
| `#calendar:startDate` | Allows using a different label to represent the start date, other than `startDate` (e.g. `expiryDate`). The label name **must not be** prefixed with `#`. If the label is not defined for a note, the default will be used instead. |
| `#calendar:startDate` | Allows using a different label to represent the start date, other than `startDate` (e.g. `expiryDate`). The label name **must not be** prefixed with `#`. If the label is not defined for a note, the default will be used instead. |
| `#calendar:endDate` | Allows using a different label to represent the start date, other than `endDate`. The label name **must not be** prefixed with `#`. If the label is not defined for a note, the default will be used instead. |
| `#calendar:endDate` | Allows using a different label to represent the start date, other than `endDate`. The label name **must not be** prefixed with `#`. If the label is not defined for a note, the default will be used instead. |
A language hint can be provided for text notes. This option informs the browser or the desktop application about the language the note is written in (for example this might help with spellchecking), and it also determines whether the text is displayed from right-to-left for languages such as Arabic, Hebrew, etc.
A language hint can be provided for text notes. This option informs the browser or the desktop application about the language the note is written in (for example this might help with spellchecking), and it also determines whether the text is displayed from right-to-left for languages such as Arabic, Hebrew, etc.
<li>Close the application or close the database.</li>
<li>Close the application or close the database.</li>
</ol>
</ol>
<p>
<p>
<imgsrc="Manually altering the data.png"alt="">
<imgsrc="Manually altering the data.png">
</p>
</p>
<h3>Using the SQLite CLI</h3>
<h3>Using the SQLite CLI</h3>
<p>First, start the SQLite 3 CLI by specifying the path to the database:</p><pre><codeclass="language-text-x-trilium-auto">sqlite3 ~/.local/share/trilium-data/document.db</code></pre>
<p>First, start the SQLite 3 CLI by specifying the path to the database:</p><pre><codeclass="language-text-x-trilium-auto">sqlite3 ~/.local/share/trilium-data/document.db</code></pre>
<p>You can either download source code zip/tar from <ahref="https://github.com/TriliumNext/Notes/releases/latest">https://github.com/TriliumNext/Notes/releases/latest</a>.</p>
<p>You can either download source code zip/tar from <ahref="https://github.com/TriliumNext/Notes/releases/latest">https://github.com/TriliumNext/Notes/releases/latest</a>.</p>
<p>For the latest version including betas, clone Git repository <strong>from</strong><code><strong>master</strong></code><strong>branch</strong> with:</p><pre><codeclass="language-text-x-trilium-auto">git clone -b master https://github.com/triliumnext/notes.git</code></pre>
<p>For the latest version including betas, clone Git repository <strong>from</strong><code>**master**</code><strong>branch</strong> with:</p><pre><codeclass="language-text-x-trilium-auto">git clone -b master https://github.com/triliumnext/notes.git</code></pre>
<td>Allows using a different label to represent the start date, other than <code>startDate</code> (e.g. <code>expiryDate</code>).
<td>Allows using a different label to represent the start date, other than <code>startDate</code> (e.g. <code>expiryDate</code>).
The label name <strong>must not be</strong> prefixed with <code>#</code>.
The label name <strong>must not be</strong> prefixed with <code>#</code>.
If the label is not defined for a note, the default will be used instead.</td>
If the label is not defined for a note, the default will be used instead.</td>
</tr>
</tr>
<tr>
<tr>
<td><code>#calendar:endDate</code>
<td><code>#calendar:endDate</code>
</td>
</td>
<td>Allows using a different label to represent the start date, other than <code>endDate</code>.
<td>Allows using a different label to represent the start date, other than <code>endDate</code>.
The label name <strong>must not be</strong> prefixed with <code>#</code>.
The label name <strong>must not be</strong> prefixed with <code>#</code>.
If the label is not defined for a note, the default will be used instead.</td>
If the label is not defined for a note, the default will be used instead.</td>
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
</figure>
<h2>How the calendar works</h2>
<h2>How the calendar works</h2>
<p>
<p>
<imgsrc="17_Calendar View_image.png">
<imgsrc="17_Calendar View_image.png"alt="">
</p>
</p>
<p>The calendar displays all the child notes of the book that have a <code>#startDate</code>.
<p>The calendar displays all the child notes of the book that have a <code>#startDate</code>.
An <code>#endDate</code> can optionally be added.</p>
An <code>#endDate</code> can optionally be added.</p>
<p>If editing the start date and end date from the note itself is desirable,
<p>If editing the start date and end date from the note itself is desirable,
the following attributes can be added to the book note:</p><pre><codeclass="language-text-x-trilium-auto">#viewType=calendar #label:startDate(inheritable)="promoted,alias=Start Date,single,date"
the following attributes can be added to the book note:</p><pre><codeclass="language-text-x-trilium-auto">#viewType=calendar #label:startDate(inheritable)="promoted,alias=Start Date,single,date"
<p>In both cases, it is possible to switch back to editable mode using the
<p>In both cases, it is possible to switch back to editable mode using the
<img
<img
src="Text_bx-edit-alt.svg" alt="">button at top right of page.</p>
src="Text_bx-edit-alt.svg">button at top right of page.</p>
<p>For more information, see<ahref="../Basic%20Concepts/Note/Read-Only%20Notes.html">Read-Only Notes</a>.</p>
<p>For more information, see<ahref="../Basic%20Concepts/Note/Read-Only%20Notes.html">Read-Only Notes</a>.</p>
<h2>General Formatting</h2>
<h2>General Formatting</h2>
<p>Since Trilium uses CKEditor, all of its formatting options are available
<p>Since Trilium uses CKEditor, all of its formatting options are available
@ -72,7 +72,7 @@
<p>CKEditor supports a markdown-like editing experience, recognising syntax
<p>CKEditor supports a markdown-like editing experience, recognising syntax
and automatically converting it to rich text.</p>
and automatically converting it to rich text.</p>
<p>
<p>
<imgsrc="Text_image.png"alt="">
<imgsrc="Text_image.png">
</p>
</p>
<p>Complete documentation for this feature is available in the <ahref="https://ckeditor.com/docs/ckeditor5/latest/features/autoformat.html">CKEditor documentation</a>.</p>
<p>Complete documentation for this feature is available in the <ahref="https://ckeditor.com/docs/ckeditor5/latest/features/autoformat.html">CKEditor documentation</a>.</p>
<p>If autoformatting is not desirable, press <kbd>Ctrl</kbd> + <kbd>Z</kbd> to
<p>If autoformatting is not desirable, press <kbd>Ctrl</kbd> + <kbd>Z</kbd> to