mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
Updated Default note title (markdown)
parent
2890aefd10
commit
cbceec93b3
@ -24,4 +24,6 @@ As an example, imagine you collect server outage incidents and write some notes.
|
||||
|
||||
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"`.
|
||||
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"`.
|
||||
|
||||
See also [[template]] which provides similar capabilities, including default note's content.
|
Loading…
x
Reference in New Issue
Block a user