mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
correctly format date sample
parent
b5cca12e1c
commit
e3564d29a7
@ -22,7 +22,7 @@ As an example, imagine you collect server outage incidents and write some notes.
|
||||
* 2022-05-09: System crash
|
||||
* 2022-05-15: Backup delay
|
||||
|
||||
You can automatize the date assignment by assigning a label `#titleTemplate="${now.format('YYYY-MM-DD')}: " to the parent note "Incidents". Whenever a new child note is created, the title template is evaluated with the injected <a href="https://day.js.org/docs/en/display/format">now</a> object.
|
||||
You can automatize the date assignment by assigning a label `#titleTemplate="${now.format('YYYY-MM-DD')}: "` to the parent note "Incidents". Whenever a new child note is created, the title template is evaluated with the injected <a href="https://day.js.org/docs/en/display/format">now</a> object.
|
||||
|
||||
Second variable injected is <a href="https://zadam.github.io/trilium/backend_api/Note.html">parentNote</a>, an example could be `#titleTemplate="${parentNote.getLabelValue('authorName')}'s literary works"`.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user