mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
added #titleTemplate, closes #2852
This commit is contained in:
@@ -219,6 +219,15 @@ const ATTR_HELP = {
|
||||
"shareDisallowRobotIndexing": `will forbid robot indexing of this note via <code>X-Robots-Tag: noindex</code> header`,
|
||||
"displayRelations": "comma delimited names of relations which should be displayed. All other ones will be hidden.",
|
||||
"hideRelations": "comma delimited names of relations which should be hidden. All other ones will be displayed.",
|
||||
"titleTemplate": `default title of notes created as children of this note. The value is evaluated as JavaScript string
|
||||
and thus can be enriched with dynamic content via the injected <code>now</code> and <code>parentNote</code> variables. Examples:
|
||||
|
||||
<ul>
|
||||
<li><code>\${parentNote.getLabelValue('authorName')}'s literary works</code></li>
|
||||
<li><code>Log for \${now.format('YYYY-MM-DD HH:mm:ss')}</code></li>
|
||||
</ul>
|
||||
|
||||
See <a href="https://github.com/zadam/trilium/wiki/Default-note-title">wiki with details</a>, API docs for <a href="https://zadam.github.io/trilium/backend_api/Note.html">parentNote</a> and <a href="https://day.js.org/docs/en/display/format">now</a> for details.`
|
||||
},
|
||||
"relation": {
|
||||
"runOnNoteCreation": "executes when note is created on backend",
|
||||
|
||||
Reference in New Issue
Block a user