mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +02:00
chore(docs): update meta and sync import/export
This commit is contained in:
parent
957642caaa
commit
80066fd2f5
File diff suppressed because it is too large
Load Diff
@ -39,7 +39,7 @@ Unlike other Book view types, the Calendar view also allows some kind of interac
|
|||||||
|
|
||||||
The following attributes can be added to the book type:
|
The following attributes can be added to the book type:
|
||||||
|
|
||||||
<div class="joplin-table-wrapper"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>#calendar:hideWeekends</code></td><td>When present (regardless of value), it will hide Saturday and Sundays from the calendar.</td></tr><tr><td><code>#calendar:weekNumbers</code></td><td>When present (regardless of value), it will show the number of the week on the calendar.</td></tr><tr><td><code>#calendar:view</code></td><td><p>Which view to display in the calendar:</p><ul><li><code>timeGridWeek</code> for the <em>week</em> view;</li><li><code>dayGridMonth</code> for the <em>month</em> view;</li><li><code>multiMonthYear</code> for the <em>year</em> view;</li><li><code>listMonth</code> for the <em>list</em> view.</li></ul><p>Any other value will be dismissed and the default view (month) will be used instead.</p><p>The value of this label is automatically updated when changing the view using the UI buttons.</p></td></tr><tr><td><code>~child:template</code></td><td>Defines the template for newly created notes in the calendar (via dragging or clicking).</td></tr></tbody></table></div>
|
<table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>#calendar:hideWeekends</code></td><td>When present (regardless of value), it will hide Saturday and Sundays from the calendar.</td></tr><tr><td><code>#calendar:weekNumbers</code></td><td>When present (regardless of value), it will show the number of the week on the calendar.</td></tr><tr><td><code>#calendar:view</code></td><td><p>Which view to display in the calendar:</p><ul><li><code>timeGridWeek</code> for the <em>week</em> view;</li><li><code>dayGridMonth</code> for the <em>month</em> view;</li><li><code>multiMonthYear</code> for the <em>year</em> view;</li><li><code>listMonth</code> for the <em>list</em> view.</li></ul><p>Any other value will be dismissed and the default view (month) will be used instead.</p><p>The value of this label is automatically updated when changing the view using the UI buttons.</p></td></tr><tr><td><code>~child:template</code></td><td>Defines the template for newly created notes in the calendar (via dragging or clicking).</td></tr></tbody></table>
|
||||||
|
|
||||||
In addition, the first day of the week can be either Sunday or Monday and can be adjusted from the application settings.
|
In addition, the first day of the week can be either Sunday or Monday and can be adjusted from the application settings.
|
||||||
|
|
||||||
@ -104,7 +104,7 @@ By default, events are displayed on the calendar by their note title. However, i
|
|||||||
|
|
||||||
To do so, assign `#calendar:title` to the child note (not the calendar/book note), with the value being `name` where `name` can be any label (make not to add the `#` prefix). The attribute can also come through inheritance such as a template attribute. If the note does not have the requested label, the title of the note will be used instead.
|
To do so, assign `#calendar:title` to the child note (not the calendar/book note), with the value being `name` where `name` can be any label (make not to add the `#` prefix). The attribute can also come through inheritance such as a template attribute. If the note does not have the requested label, the title of the note will be used instead.
|
||||||
|
|
||||||
<div class="joplin-table-wrapper"><table><thead><tr><th> </th><th> </th></tr></thead><tbody><tr><td><pre><code class="language-text-x-trilium-auto">#startDate=2025-02-11 #endDate=2025-02-13 #name="My vacation" #calendar:title="name"</code></pre></td><td><img src="5_Calendar View_image.png"></td></tr></tbody></table></div>
|
<table><thead><tr><th> </th><th> </th></tr></thead><tbody><tr><td><pre><code class="language-text-x-trilium-auto">#startDate=2025-02-11 #endDate=2025-02-13 #name="My vacation" #calendar:title="name"</code></pre></td><td><img src="5_Calendar View_image.png"></td></tr></tbody></table>
|
||||||
|
|
||||||
### Using a relation attribute as event title
|
### Using a relation attribute as event title
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ These types were inspired by GitHub's support for this feature and there are cur
|
|||||||
|
|
||||||
The Markdown syntax for admonitions as supported by Trilium is the one that GitHub uses, which is as follows:
|
The Markdown syntax for admonitions as supported by Trilium is the one that GitHub uses, which is as follows:
|
||||||
|
|
||||||
```markdown
|
```
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
> This is a note.
|
> This is a note.
|
||||||
|
|
||||||
|
2812
src/public/app/doc_notes/en/User Guide/!!!meta.json
generated
2812
src/public/app/doc_notes/en/User Guide/!!!meta.json
generated
File diff suppressed because it is too large
Load Diff
@ -31,37 +31,36 @@
|
|||||||
<p>Unlike other Book view types, the Calendar view also allows some kind
|
<p>Unlike other Book view types, the Calendar view also allows some kind
|
||||||
of interaction, such as moving events around as well as creating new ones.</p>
|
of interaction, such as moving events around as well as creating new ones.</p>
|
||||||
<h2>Creating a calendar</h2>
|
<h2>Creating a calendar</h2>
|
||||||
<figure class="table">
|
<table>
|
||||||
<table>
|
<thead>
|
||||||
<thead>
|
<tr>
|
||||||
<tr>
|
<th></th>
|
||||||
<th> </th>
|
<th></th>
|
||||||
<th> </th>
|
<th></th>
|
||||||
<th> </th>
|
</tr>
|
||||||
</tr>
|
</thead>
|
||||||
</thead>
|
<tbody>
|
||||||
<tbody>
|
<tr>
|
||||||
<tr>
|
<td>1</td>
|
||||||
<td>1</td>
|
<td>
|
||||||
<td>
|
<img src="2_Calendar View_image.png">
|
||||||
<img src="2_Calendar View_image.png">
|
</td>
|
||||||
</td>
|
<td>The Calendar View works only for Book note types. To create a new note,
|
||||||
<td>The Calendar View works only for Book note types. To create a new note,
|
right click on the note tree on the left and select Insert note after,
|
||||||
right click on the note tree on the left and select Insert note after,
|
or Insert child note and then select <em>Book</em>.</td>
|
||||||
or Insert child note and then select <em>Book</em>.</td>
|
</tr>
|
||||||
</tr>
|
<tr>
|
||||||
<tr>
|
<td>2</td>
|
||||||
<td>2</td>
|
<td>
|
||||||
<td>
|
<img src="3_Calendar View_image.png">
|
||||||
<img src="3_Calendar View_image.png">
|
</td>
|
||||||
</td>
|
<td>Once created, the “View type” of the Book needs changed to “Calendar”,
|
||||||
<td>Once created, the “View type” of the Book needs changed to “Calendar”,
|
by selecting the “Book Properties” tab in the ribbon.</td>
|
||||||
by selecting the “Book Properties” tab in the ribbon.</td>
|
</tr>
|
||||||
</tr>
|
</tbody>
|
||||||
</tbody>
|
</table>
|
||||||
</table>
|
|
||||||
</figure>
|
<h2>Creating a new event/note</h2>
|
||||||
<h2>Creating a new event/note</h2>
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>Clicking on a day will create a new child note and assign it to that particular
|
<li>Clicking on a day will create a new child note and assign it to that particular
|
||||||
day.
|
day.
|
||||||
@ -93,284 +92,272 @@
|
|||||||
</ul>
|
</ul>
|
||||||
<h2>Configuring the calendar</h2>
|
<h2>Configuring the calendar</h2>
|
||||||
<p>The following attributes can be added to the book type:</p>
|
<p>The following attributes can be added to the book type:</p>
|
||||||
<div>
|
<table>
|
||||||
<figure class="table">
|
<thead>
|
||||||
<table>
|
<tr>
|
||||||
<thead>
|
<th>Name</th>
|
||||||
<tr>
|
<th>Description</th>
|
||||||
<th>Name</th>
|
</tr>
|
||||||
<th>Description</th>
|
</thead>
|
||||||
</tr>
|
<tbody>
|
||||||
</thead>
|
<tr>
|
||||||
<tbody>
|
<td><code>#calendar:hideWeekends</code>
|
||||||
<tr>
|
</td>
|
||||||
<td><code>#calendar:hideWeekends</code>
|
<td>When present (regardless of value), it will hide Saturday and Sundays
|
||||||
</td>
|
from the calendar.</td>
|
||||||
<td>When present (regardless of value), it will hide Saturday and Sundays
|
</tr>
|
||||||
from the calendar.</td>
|
<tr>
|
||||||
</tr>
|
<td><code>#calendar:weekNumbers</code>
|
||||||
<tr>
|
</td>
|
||||||
<td><code>#calendar:weekNumbers</code>
|
<td>When present (regardless of value), it will show the number of the week
|
||||||
</td>
|
on the calendar.</td>
|
||||||
<td>When present (regardless of value), it will show the number of the week
|
</tr>
|
||||||
on the calendar.</td>
|
<tr>
|
||||||
</tr>
|
<td><code>#calendar:view</code>
|
||||||
<tr>
|
</td>
|
||||||
<td><code>#calendar:view</code>
|
<td>
|
||||||
</td>
|
<p>Which view to display in the calendar:</p>
|
||||||
<td>
|
<ul>
|
||||||
<p>Which view to display in the calendar:</p>
|
<li><code>timeGridWeek</code> for the <em>week</em> view;</li>
|
||||||
<ul>
|
<li><code>dayGridMonth</code> for the <em>month</em> view;</li>
|
||||||
<li><code>timeGridWeek</code> for the <em>week</em> view;</li>
|
<li><code>multiMonthYear</code> for the <em>year</em> view;</li>
|
||||||
<li><code>dayGridMonth</code> for the <em>month</em> view;</li>
|
<li><code>listMonth</code> for the <em>list</em> view.</li>
|
||||||
<li><code>multiMonthYear</code> for the <em>year</em> view;</li>
|
</ul>
|
||||||
<li><code>listMonth</code> for the <em>list</em> view.</li>
|
<p>Any other value will be dismissed and the default view (month) will be
|
||||||
</ul>
|
used instead.</p>
|
||||||
<p>Any other value will be dismissed and the default view (month) will be
|
<p>The value of this label is automatically updated when changing the view
|
||||||
used instead.</p>
|
using the UI buttons.</p>
|
||||||
<p>The value of this label is automatically updated when changing the view
|
</td>
|
||||||
using the UI buttons.</p>
|
</tr>
|
||||||
</td>
|
<tr>
|
||||||
</tr>
|
<td><code>~child:template</code>
|
||||||
<tr>
|
</td>
|
||||||
<td><code>~child:template</code>
|
<td>Defines the template for newly created notes in the calendar (via dragging
|
||||||
</td>
|
or clicking).</td>
|
||||||
<td>Defines the template for newly created notes in the calendar (via dragging
|
</tr>
|
||||||
or clicking).</td>
|
</tbody>
|
||||||
</tr>
|
</table>
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</figure>
|
|
||||||
</div>
|
|
||||||
<p>In addition, the first day of the week can be either Sunday or Monday
|
<p>In addition, the first day of the week can be either Sunday or Monday
|
||||||
and can be adjusted from the application settings.</p>
|
and can be adjusted from the application settings.</p>
|
||||||
<h2>Configuring the calendar events</h2>
|
<h2>Configuring the calendar events</h2>
|
||||||
<p>For each note of the calendar, the following attributes can be used:</p>
|
<p>For each note of the calendar, the following attributes can be used:</p>
|
||||||
<figure
|
<table>
|
||||||
class="table">
|
<thead>
|
||||||
<table>
|
<tr>
|
||||||
<thead>
|
<th>Name</th>
|
||||||
<tr>
|
<th>Description</th>
|
||||||
<th>Name</th>
|
</tr>
|
||||||
<th>Description</th>
|
</thead>
|
||||||
</tr>
|
<tbody>
|
||||||
</thead>
|
<tr>
|
||||||
<tbody>
|
<td><code>#startDate</code>
|
||||||
<tr>
|
</td>
|
||||||
<td><code>#startDate</code>
|
<td>The date the event starts, which will display it in the calendar. The
|
||||||
</td>
|
format is <code>YYYY-MM-DD</code> (year, month and day separated by a minus
|
||||||
<td>The date the event starts, which will display it in the calendar. The
|
sign).</td>
|
||||||
format is <code>YYYY-MM-DD</code> (year, month and day separated by a minus
|
</tr>
|
||||||
sign).</td>
|
<tr>
|
||||||
</tr>
|
<td><code>#endDate</code>
|
||||||
<tr>
|
</td>
|
||||||
<td><code>#endDate</code>
|
<td>Similar to <code>startDate</code>, mentions the end date if the event spans
|
||||||
</td>
|
across multiple days. The date is inclusive, so the end day is also considered.
|
||||||
<td>Similar to <code>startDate</code>, mentions the end date if the event spans
|
The attribute can be missing for single-day events.</td>
|
||||||
across multiple days. The date is inclusive, so the end day is also considered.
|
</tr>
|
||||||
The attribute can be missing for single-day events.</td>
|
<tr>
|
||||||
</tr>
|
<td><code>#startTime</code>
|
||||||
<tr>
|
</td>
|
||||||
<td><code>#startTime</code>
|
<td>The time the event starts at. If this value is missing, then the event
|
||||||
</td>
|
is considered a full-day event. The format is <code>HH:MM</code> (hours in
|
||||||
<td>The time the event starts at. If this value is missing, then the event
|
24-hour format and minutes).</td>
|
||||||
is considered a full-day event. The format is <code>HH:MM</code> (hours in
|
</tr>
|
||||||
24-hour format and minutes).</td>
|
<tr>
|
||||||
</tr>
|
<td><code>#endTime</code>
|
||||||
<tr>
|
</td>
|
||||||
<td><code>#endTime</code>
|
<td>Similar to <code>startTime</code>, it mentions the time at which the event
|
||||||
</td>
|
ends (in relation with <code>endDate</code> if present, or <code>startDate</code>).</td>
|
||||||
<td>Similar to <code>startTime</code>, it mentions the time at which the event
|
</tr>
|
||||||
ends (in relation with <code>endDate</code> if present, or <code>startDate</code>).</td>
|
<tr>
|
||||||
</tr>
|
<td><code>#color</code>
|
||||||
<tr>
|
</td>
|
||||||
<td><code>#color</code>
|
<td>Displays the event with a specified color (named such as <code>red</code>, <code>gray</code> or
|
||||||
</td>
|
hex such as <code>#FF0000</code>). This will also change the color of the
|
||||||
<td>Displays the event with a specified color (named such as <code>red</code>, <code>gray</code> or
|
note in other places such as the note tree.</td>
|
||||||
hex such as <code>#FF0000</code>). This will also change the color of the
|
</tr>
|
||||||
note in other places such as the note tree.</td>
|
<tr>
|
||||||
</tr>
|
<td><code>#calendar:color</code>
|
||||||
<tr>
|
</td>
|
||||||
<td><code>#calendar:color</code>
|
<td>Similar to <code>#color</code>, but applies the color only for the event
|
||||||
</td>
|
in the calendar and not for other places such as the note tree.</td>
|
||||||
<td>Similar to <code>#color</code>, but applies the color only for the event
|
</tr>
|
||||||
in the calendar and not for other places such as the note tree.</td>
|
<tr>
|
||||||
</tr>
|
<td><code>#iconClass</code>
|
||||||
<tr>
|
</td>
|
||||||
<td><code>#iconClass</code>
|
<td>If present, the icon of the note will be displayed to the left of the
|
||||||
</td>
|
event title.</td>
|
||||||
<td>If present, the icon of the note will be displayed to the left of the
|
</tr>
|
||||||
event title.</td>
|
<tr>
|
||||||
</tr>
|
<td><code>#calendar:title</code>
|
||||||
<tr>
|
</td>
|
||||||
<td><code>#calendar:title</code>
|
<td>Changes the title of an event to point to an attribute of the note other
|
||||||
</td>
|
than the title, can either a label or a relation (without the <code>#</code> or <code>~</code> symbol).
|
||||||
<td>Changes the title of an event to point to an attribute of the note other
|
See <em>Use-cases</em> for more information.</td>
|
||||||
than the title, can either a label or a relation (without the <code>#</code> or <code>~</code> symbol).
|
</tr>
|
||||||
See <em>Use-cases</em> for more information.</td>
|
<tr>
|
||||||
</tr>
|
<td><code>#calendar:displayedAttributes</code>
|
||||||
<tr>
|
</td>
|
||||||
<td><code>#calendar:displayedAttributes</code>
|
<td>Allows displaying the value of one or more attributes in the calendar
|
||||||
</td>
|
like this:
|
||||||
<td>Allows displaying the value of one or more attributes in the calendar
|
<br>
|
||||||
like this:
|
<br>
|
||||||
<br>
|
<img src="9_Calendar View_image.png">
|
||||||
<br>
|
<br>
|
||||||
<img src="9_Calendar View_image.png">
|
<br><code>#weight="70" #Mood="Good" #calendar:displayedAttributes="weight,Mood"</code>
|
||||||
<br>
|
<br>
|
||||||
<br><code>#weight="70" #Mood="Good" #calendar:displayedAttributes="weight,Mood"</code>
|
<br>It can also be used with relations, case in which it will display the
|
||||||
<br>
|
title of the target note:
|
||||||
<br>It can also be used with relations, case in which it will display the
|
<br>
|
||||||
title of the target note:
|
<br><code>~assignee=@My assignee #calendar:displayedAttributes="assignee"</code>
|
||||||
<br>
|
</td>
|
||||||
<br><code>~assignee=@My assignee #calendar:displayedAttributes="assignee"</code>
|
</tr>
|
||||||
</td>
|
<tr>
|
||||||
</tr>
|
<td><code>#calendar:startDate</code>
|
||||||
<tr>
|
</td>
|
||||||
<td><code>#calendar:startDate</code>
|
<td>Allows using a different label to represent the start date, other than <code>startDate</code> (e.g. <code>expiryDate</code>).
|
||||||
</td>
|
The label name <strong>must not be</strong> prefixed with <code>#</code>.
|
||||||
<td>Allows using a different label to represent the start date, other than <code>startDate</code> (e.g. <code>expiryDate</code>).
|
If the label is not defined for a note, the default will be used instead.</td>
|
||||||
The label name <strong>must not be</strong> prefixed with <code>#</code>.
|
</tr>
|
||||||
If the label is not defined for a note, the default will be used instead.</td>
|
<tr>
|
||||||
</tr>
|
<td><code>#calendar:endDate</code>
|
||||||
<tr>
|
</td>
|
||||||
<td><code>#calendar:endDate</code>
|
<td>Similar to <code>#calendar:startDate</code>, allows changing the attribute
|
||||||
</td>
|
which is being used to read the end date.</td>
|
||||||
<td>Similar to <code>#calendar:startDate</code>, allows changing the attribute
|
</tr>
|
||||||
which is being used to read the end date.</td>
|
<tr>
|
||||||
</tr>
|
<td><code>#calendar:startTime</code>
|
||||||
<tr>
|
</td>
|
||||||
<td><code>#calendar:startTime</code>
|
<td>Similar to <code>#calendar:startDate</code>, allows changing the attribute
|
||||||
</td>
|
which is being used to read the start time.</td>
|
||||||
<td>Similar to <code>#calendar:startDate</code>, allows changing the attribute
|
</tr>
|
||||||
which is being used to read the start time.</td>
|
<tr>
|
||||||
</tr>
|
<td><code>#calendar:endTime</code>
|
||||||
<tr>
|
</td>
|
||||||
<td><code>#calendar:endTime</code>
|
<td>Similar to <code>#calendar:startDate</code>, allows changing the attribute
|
||||||
</td>
|
which is being used to read the end time.</td>
|
||||||
<td>Similar to <code>#calendar:startDate</code>, allows changing the attribute
|
</tr>
|
||||||
which is being used to read the end time.</td>
|
</tbody>
|
||||||
</tr>
|
</table>
|
||||||
</tbody>
|
|
||||||
</table>
|
<h2>How the calendar works</h2>
|
||||||
</figure>
|
<p>
|
||||||
<h2>How the calendar works</h2>
|
<img src="11_Calendar View_image.png">
|
||||||
<p>
|
</p>
|
||||||
<img src="11_Calendar View_image.png">
|
<p>The calendar displays all the child notes of the book that have a <code>#startDate</code>.
|
||||||
</p>
|
An <code>#endDate</code> can optionally be added.</p>
|
||||||
<p>The calendar displays all the child notes of the book that have a <code>#startDate</code>.
|
<p>If editing the start date and end date from the note itself is desirable,
|
||||||
An <code>#endDate</code> can optionally be added.</p>
|
the following attributes can be added to the book note:</p><pre><code class="language-text-x-trilium-auto">#viewType=calendar #label:startDate(inheritable)="promoted,alias=Start Date,single,date"
|
||||||
<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><code class="language-text-x-trilium-auto">#viewType=calendar #label:startDate(inheritable)="promoted,alias=Start Date,single,date"
|
|
||||||
#label:endDate(inheritable)="promoted,alias=End Date,single,date"
|
#label:endDate(inheritable)="promoted,alias=End Date,single,date"
|
||||||
#hidePromotedAttributes </code></pre>
|
#hidePromotedAttributes </code></pre>
|
||||||
<p>This will result in:</p>
|
<p>This will result in:</p>
|
||||||
<p>
|
<p>
|
||||||
<img src="10_Calendar View_image.png">
|
<img src="10_Calendar View_image.png">
|
||||||
</p>
|
</p>
|
||||||
<p>When not used in a Journal, the calendar is recursive. That is, it will
|
<p>When not used in a Journal, the calendar is recursive. That is, it will
|
||||||
look for events not just in its child notes but also in the children of
|
look for events not just in its child notes but also in the children of
|
||||||
these child notes.</p>
|
these child notes.</p>
|
||||||
<h2>Use-cases</h2>
|
<h2>Use-cases</h2>
|
||||||
<h3>Using with the Journal / calendar</h3>
|
<h3>Using with the Journal / calendar</h3>
|
||||||
<p>It is possible to integrate the calendar view into the Journal with day
|
<p>It is possible to integrate the calendar view into the Journal with day
|
||||||
notes. In order to do so change the note type of the Journal note (calendar
|
notes. In order to do so change the note type of the Journal note (calendar
|
||||||
root) to Book and then select the Calendar View.</p>
|
root) to Book and then select the Calendar View.</p>
|
||||||
<p>Based on the <code>#calendarRoot</code> (or <code>#workspaceCalendarRoot</code>)
|
<p>Based on the <code>#calendarRoot</code> (or <code>#workspaceCalendarRoot</code>)
|
||||||
attribute, the calendar will know that it's in a calendar and apply the
|
attribute, the calendar will know that it's in a calendar and apply the
|
||||||
following:</p>
|
following:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>The calendar events are now rendered based on their <code>dateNote</code> attribute
|
<li>The calendar events are now rendered based on their <code>dateNote</code> attribute
|
||||||
rather than <code>startDate</code>.</li>
|
rather than <code>startDate</code>.</li>
|
||||||
<li>Interactive editing such as dragging over an empty era or resizing an
|
<li>Interactive editing such as dragging over an empty era or resizing an
|
||||||
event is no longer possible.</li>
|
event is no longer possible.</li>
|
||||||
<li>Clicking on the empty space on a date will automatically open that day's
|
<li>Clicking on the empty space on a date will automatically open that day's
|
||||||
note or create it if it does not exist.</li>
|
note or create it if it does not exist.</li>
|
||||||
<li>Direct children of a day note will be displayed on the calendar despite
|
<li>Direct children of a day note will be displayed on the calendar despite
|
||||||
not having a <code>dateNote</code> attribute. Children of the child notes
|
not having a <code>dateNote</code> attribute. Children of the child notes
|
||||||
will not be displayed.</li>
|
will not be displayed.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>
|
<p>
|
||||||
<img src="8_Calendar View_image.png">
|
<img src="8_Calendar View_image.png">
|
||||||
</p>
|
</p>
|
||||||
<h3>Using a different attribute as event title</h3>
|
<h3>Using a different attribute as event title</h3>
|
||||||
<p>By default, events are displayed on the calendar by their note title.
|
<p>By default, events are displayed on the calendar by their note title.
|
||||||
However, it is possible to configure a different attribute to be displayed
|
However, it is possible to configure a different attribute to be displayed
|
||||||
instead.</p>
|
instead.</p>
|
||||||
<p>To do so, assign <code>#calendar:title</code> to the child note (not the
|
<p>To do so, assign <code>#calendar:title</code> to the child note (not the
|
||||||
calendar/book note), with the value being <code>name</code> where <code>name</code> can
|
calendar/book note), with the value being <code>name</code> where <code>name</code> can
|
||||||
be any label (make not to add the <code>#</code> prefix). The attribute can
|
be any label (make not to add the <code>#</code> prefix). The attribute can
|
||||||
also come through inheritance such as a template attribute. If the note
|
also come through inheritance such as a template attribute. If the note
|
||||||
does not have the requested label, the title of the note will be used instead.</p>
|
does not have the requested label, the title of the note will be used instead.</p>
|
||||||
<figure
|
<table>
|
||||||
class="table">
|
<thead>
|
||||||
<table>
|
<tr>
|
||||||
<thead>
|
<th> </th>
|
||||||
<tr>
|
<th> </th>
|
||||||
<th> </th>
|
</tr>
|
||||||
<th> </th>
|
</thead>
|
||||||
</tr>
|
<tbody>
|
||||||
</thead>
|
<tr>
|
||||||
<tbody>
|
<td><pre><code class="language-text-x-trilium-auto">#startDate=2025-02-11 #endDate=2025-02-13 #name="My vacation" #calendar:title="name"</code></pre>
|
||||||
<tr>
|
</td>
|
||||||
<td><pre><code class="language-text-x-trilium-auto">#startDate=2025-02-11 #endDate=2025-02-13 #name="My vacation" #calendar:title="name"</code></pre>
|
<td>
|
||||||
</td>
|
<img src="5_Calendar View_image.png">
|
||||||
<td>
|
</td>
|
||||||
<img src="5_Calendar View_image.png">
|
</tr>
|
||||||
</td>
|
</tbody>
|
||||||
</tr>
|
</table>
|
||||||
</tbody>
|
|
||||||
</table>
|
<h3>Using a relation attribute as event title</h3>
|
||||||
</figure>
|
<p>Similarly to using an attribute, use <code>#calendar:title</code> and set
|
||||||
<h3>Using a relation attribute as event title</h3>
|
it to <code>name</code> where <code>name</code> is the name of the relation
|
||||||
<p>Similarly to using an attribute, use <code>#calendar:title</code> and set
|
to use.</p>
|
||||||
it to <code>name</code> where <code>name</code> is the name of the relation
|
<p>Moreover, if there are more relations of the same name, they will be displayed
|
||||||
to use.</p>
|
as multiple events coming from the same note.</p>
|
||||||
<p>Moreover, if there are more relations of the same name, they will be displayed
|
<table>
|
||||||
as multiple events coming from the same note.</p>
|
<thead>
|
||||||
<figure class="table">
|
<tr>
|
||||||
<table>
|
<th></th>
|
||||||
<thead>
|
<th></th>
|
||||||
<tr>
|
</tr>
|
||||||
<th> </th>
|
</thead>
|
||||||
<th> </th>
|
<tbody>
|
||||||
</tr>
|
<tr>
|
||||||
</thead>
|
<td><code>#startDate=2025-02-14 #endDate=2025-02-15 ~for=@John Smith ~for=@Jane Doe #calendar:title="for"</code>
|
||||||
<tbody>
|
</td>
|
||||||
<tr>
|
<td>
|
||||||
<td><code>#startDate=2025-02-14 #endDate=2025-02-15 ~for=@John Smith ~for=@Jane Doe #calendar:title="for"</code>
|
<img src="6_Calendar View_image.png">
|
||||||
</td>
|
</td>
|
||||||
<td>
|
</tr>
|
||||||
<img src="6_Calendar View_image.png">
|
</tbody>
|
||||||
</td>
|
</table>
|
||||||
</tr>
|
<p>Note that it's even possible to have a <code>#calendar:title</code> on the
|
||||||
</tbody>
|
target note (e.g. “John Smith”) which will try to render an attribute of
|
||||||
</table>
|
it. Note that it's not possible to use a relation here as well for safety
|
||||||
</figure>
|
reasons (an accidental recursion of attributes could cause the application
|
||||||
<p>Note that it's even possible to have a <code>#calendar:title</code> on the
|
to loop infinitely).</p>
|
||||||
target note (e.g. “John Smith”) which will try to render an attribute of
|
<table>
|
||||||
it. Note that it's not possible to use a relation here as well for safety
|
<thead>
|
||||||
reasons (an accidental recursion of attributes could cause the application
|
<tr>
|
||||||
to loop infinitely).</p>
|
<th></th>
|
||||||
<figure class="table">
|
<th></th>
|
||||||
<table>
|
</tr>
|
||||||
<thead>
|
</thead>
|
||||||
<tr>
|
<tbody>
|
||||||
<th> </th>
|
<tr>
|
||||||
<th> </th>
|
<td><code>#calendar:title="shortName" #shortName="John S."</code>
|
||||||
</tr>
|
</td>
|
||||||
</thead>
|
<td>
|
||||||
<tbody>
|
<img src="1_Calendar View_image.png">
|
||||||
<tr>
|
</td>
|
||||||
<td><code>#calendar:title="shortName" #shortName="John S."</code>
|
</tr>
|
||||||
</td>
|
</tbody>
|
||||||
<td>
|
</table>
|
||||||
<img src="1_Calendar View_image.png">
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</figure>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
@ -65,7 +65,7 @@
|
|||||||
them.</p>
|
them.</p>
|
||||||
<h2>Markdown support</h2>
|
<h2>Markdown support</h2>
|
||||||
<p>The Markdown syntax for admonitions as supported by Trilium is the one
|
<p>The Markdown syntax for admonitions as supported by Trilium is the one
|
||||||
that GitHub uses, which is as follows:</p><pre><code class="language-text-x-gfm">> [!NOTE]
|
that GitHub uses, which is as follows:</p><pre><code class="language-text-x-trilium-auto">> [!NOTE]
|
||||||
> This is a note.
|
> This is a note.
|
||||||
|
|
||||||
> [!TIP]
|
> [!TIP]
|
||||||
|
134
src/public/app/doc_notes/en/User Guide/navigation.html
generated
134
src/public/app/doc_notes/en/User Guide/navigation.html
generated
@ -9,6 +9,73 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li><a href="User%20Guide.html" target="detail">User Guide</a>
|
<li><a href="User%20Guide.html" target="detail">User Guide</a>
|
||||||
<ul>
|
<ul>
|
||||||
|
<li>Advanced Usage
|
||||||
|
<ul>
|
||||||
|
<li><a href="User%20Guide/Advanced%20Usage/Attributes.html" target="detail">Attributes</a>
|
||||||
|
<ul>
|
||||||
|
<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/Template.html" target="detail">Template</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li><a href="User%20Guide/Advanced%20Usage/Relation%20Map.html" target="detail">Relation Map</a>
|
||||||
|
</li>
|
||||||
|
<li><a href="User%20Guide/Advanced%20Usage/Note%20Map.html" target="detail">Note Map</a>
|
||||||
|
</li>
|
||||||
|
<li><a href="User%20Guide/Advanced%20Usage/Sharing.html" target="detail">Sharing</a>
|
||||||
|
<ul>
|
||||||
|
<li><a href="User%20Guide/Advanced%20Usage/Sharing/Serving%20directly%20the%20content%20o.html"
|
||||||
|
target="detail">Serving directly the content of a note</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li><a href="User%20Guide/Advanced%20Usage/Advanced%20Showcases.html" target="detail">Advanced Showcases</a>
|
||||||
|
<ul>
|
||||||
|
<li><a href="User%20Guide/Advanced%20Usage/Advanced%20Showcases/Day%20Notes.html"
|
||||||
|
target="detail">Day Notes</a>
|
||||||
|
</li>
|
||||||
|
<li><a href="User%20Guide/Advanced%20Usage/Advanced%20Showcases/Weight%20Tracker.html"
|
||||||
|
target="detail">Weight Tracker</a>
|
||||||
|
</li>
|
||||||
|
<li><a href="User%20Guide/Advanced%20Usage/Advanced%20Showcases/Task%20Manager.html"
|
||||||
|
target="detail">Task Manager</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li><a href="User%20Guide/Advanced%20Usage/Custom%20Request%20Handler.html"
|
||||||
|
target="detail">Custom Request Handler</a>
|
||||||
|
</li>
|
||||||
|
<li><a href="User%20Guide/Advanced%20Usage/Custom%20Resource%20Providers.html"
|
||||||
|
target="detail">Custom Resource Providers</a>
|
||||||
|
</li>
|
||||||
|
<li><a href="User%20Guide/Advanced%20Usage/ETAPI%20(REST%20API).html" target="detail">ETAPI (REST API)</a>
|
||||||
|
</li>
|
||||||
|
<li><a href="User%20Guide/Advanced%20Usage/Default%20Note%20Title.html" target="detail">Default Note Title</a>
|
||||||
|
</li>
|
||||||
|
<li><a href="User%20Guide/Advanced%20Usage/Database.html" target="detail">Database</a>
|
||||||
|
<ul>
|
||||||
|
<li><a href="User%20Guide/Advanced%20Usage/Database/Manually%20altering%20the%20database.html"
|
||||||
|
target="detail">Manually altering the database</a>
|
||||||
|
<ul>
|
||||||
|
<li><a href="User%20Guide/Advanced%20Usage/Database/Manually%20altering%20the%20database/SQL%20Console.html"
|
||||||
|
target="detail">SQL Console</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li><a href="User%20Guide/Advanced%20Usage/Configuration%20(config.ini%20or%20e.html"
|
||||||
|
target="detail">Configuration (config.ini or environment variables)</a>
|
||||||
|
</li>
|
||||||
|
<li><a href="User%20Guide/Advanced%20Usage/Bulk%20actions.html" target="detail">Bulk actions</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
<li>Installation & Setup
|
<li>Installation & Setup
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="User%20Guide/Installation%20%26%20Setup/Desktop%20Installation.html"
|
<li><a href="User%20Guide/Installation%20%26%20Setup/Desktop%20Installation.html"
|
||||||
@ -235,73 +302,6 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li>Advanced Usage
|
|
||||||
<ul>
|
|
||||||
<li><a href="User%20Guide/Advanced%20Usage/Attributes.html" target="detail">Attributes</a>
|
|
||||||
<ul>
|
|
||||||
<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/Template.html" target="detail">Template</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li><a href="User%20Guide/Advanced%20Usage/Relation%20Map.html" target="detail">Relation Map</a>
|
|
||||||
</li>
|
|
||||||
<li><a href="User%20Guide/Advanced%20Usage/Note%20Map.html" target="detail">Note Map</a>
|
|
||||||
</li>
|
|
||||||
<li><a href="User%20Guide/Advanced%20Usage/Sharing.html" target="detail">Sharing</a>
|
|
||||||
<ul>
|
|
||||||
<li><a href="User%20Guide/Advanced%20Usage/Sharing/Serving%20directly%20the%20content%20o.html"
|
|
||||||
target="detail">Serving directly the content of a note</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li><a href="User%20Guide/Advanced%20Usage/Advanced%20Showcases.html" target="detail">Advanced Showcases</a>
|
|
||||||
<ul>
|
|
||||||
<li><a href="User%20Guide/Advanced%20Usage/Advanced%20Showcases/Day%20Notes.html"
|
|
||||||
target="detail">Day Notes</a>
|
|
||||||
</li>
|
|
||||||
<li><a href="User%20Guide/Advanced%20Usage/Advanced%20Showcases/Weight%20Tracker.html"
|
|
||||||
target="detail">Weight Tracker</a>
|
|
||||||
</li>
|
|
||||||
<li><a href="User%20Guide/Advanced%20Usage/Advanced%20Showcases/Task%20Manager.html"
|
|
||||||
target="detail">Task Manager</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li><a href="User%20Guide/Advanced%20Usage/Custom%20Request%20Handler.html"
|
|
||||||
target="detail">Custom Request Handler</a>
|
|
||||||
</li>
|
|
||||||
<li><a href="User%20Guide/Advanced%20Usage/Custom%20Resource%20Providers.html"
|
|
||||||
target="detail">Custom Resource Providers</a>
|
|
||||||
</li>
|
|
||||||
<li><a href="User%20Guide/Advanced%20Usage/ETAPI%20(REST%20API).html" target="detail">ETAPI (REST API)</a>
|
|
||||||
</li>
|
|
||||||
<li><a href="User%20Guide/Advanced%20Usage/Default%20Note%20Title.html" target="detail">Default Note Title</a>
|
|
||||||
</li>
|
|
||||||
<li><a href="User%20Guide/Advanced%20Usage/Database.html" target="detail">Database</a>
|
|
||||||
<ul>
|
|
||||||
<li><a href="User%20Guide/Advanced%20Usage/Database/Manually%20altering%20the%20database.html"
|
|
||||||
target="detail">Manually altering the database</a>
|
|
||||||
<ul>
|
|
||||||
<li><a href="User%20Guide/Advanced%20Usage/Database/Manually%20altering%20the%20database/SQL%20Console.html"
|
|
||||||
target="detail">SQL Console</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li><a href="User%20Guide/Advanced%20Usage/Configuration%20(config.ini%20or%20e.html"
|
|
||||||
target="detail">Configuration (config.ini or environment variables)</a>
|
|
||||||
</li>
|
|
||||||
<li><a href="User%20Guide/Advanced%20Usage/Bulk%20actions.html" target="detail">Bulk actions</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li>Theme development
|
<li>Theme development
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="User%20Guide/Theme%20development/Creating%20a%20custom%20theme.html"
|
<li><a href="User%20Guide/Theme%20development/Creating%20a%20custom%20theme.html"
|
||||||
|
1
src/public/app/doc_notes/en/User Guide/style.css
generated
1
src/public/app/doc_notes/en/User Guide/style.css
generated
@ -25,7 +25,6 @@
|
|||||||
border-radius: 0.5em;
|
border-radius: 0.5em;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
margin: 1.25em 0;
|
margin: 1.25em 0;
|
||||||
margin-right: 14px;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user