Slaytanical(LamentConfiguration)
06/08/2022, 2:11 AMSlaytanical(LamentConfiguration)
06/08/2022, 2:11 AMXanaus
06/08/2022, 4:19 AMXanaus
06/08/2022, 4:21 AMhikchoi
06/08/2022, 4:36 AMroot.schema.yml
serves as the root of all schemas, but we currently don't support applying global schemas. You would have to create a separate schema for a specific hierarchy. Do you want this frontmatter to apply to every single note in your workspace?Xanaus
06/08/2022, 4:37 AMhikchoi
06/08/2022, 4:39 AMXanaus
06/08/2022, 4:39 AMXanaus
06/08/2022, 4:39 AMhikchoi
06/08/2022, 4:40 AMXanaus
06/08/2022, 4:42 AMhikchoi
06/08/2022, 4:45 AMtags.*
, templates.*
, Things-to-link-afterwards
and so on.Xanaus
06/08/2022, 4:50 AMXanaus
06/08/2022, 4:52 AMhikchoi
06/08/2022, 5:03 AM---
id: 0l1omgwyc3g4327nrv0ljju
title: Maternal Changes
desc: 'The physical changes manifested in the body of the mother in order to compansate for the increase demands duriing the pregnancy'
classification:
- '[[RG.551-591]]'
- '[[RG.940-991]]'
updated: 1654664260893
created: 1654663967751
---
content of `preg.schema.yml`:
version: 1
imports: []
schemas:
- id: preg
children:
- maternal-changes
title: preg
parent: root
- id: maternal-changes
template: templates.preg.maternal-changes
namespace: true
With this schema and tree structure, whenever you add a note under preg.maternal-changes.*
, the template will be applied to that note.hikchoi
06/08/2022, 5:08 AMpreg
as a tag (though this would actually have to be under tags.preg
to work as intended as a tag), because schemas become useful when you structure your notes in a hierarchical manner.
Like I mentioned we currently don't support global schema behaviors so if you want to keep your flat structure, you would need to use the Apply Template
command on each note.Xanaus
06/08/2022, 6:32 AMXanaus
06/08/2022, 6:42 AMhikchoi
06/08/2022, 6:48 AMApply Template
command, or specifying a template in the schema).Xanaus
06/08/2022, 6:54 AMPreg
as the parent note instead of the ROOT
?hikchoi
06/08/2022, 6:58 AMhikchoi
06/08/2022, 6:59 AM...
{
"command": "dendron.lookupNote",
"key": "cmd+l", // any key combination of your choice
"args": {
"initialValue": "preg",
}
}
Xanaus
06/08/2022, 7:56 AMhikchoi
06/08/2022, 7:58 AMGander7
06/08/2022, 11:54 AMandrey-jef
06/08/2022, 12:03 PMtitle
(in frontmatter) will have form research YYYY-MM-DD
hikchoi
06/08/2022, 1:46 PMdocs
directory
See: https://github.com/dendronhq/dendron/tree/master/docshikchoi
06/08/2022, 1:48 PMawaydiscordthrow
06/08/2022, 2:01 PMhikchoi
06/08/2022, 2:05 PMOnCreate
behavior to set the title. You can write plain javascript to customize what the note title will be on creation with note traits.
See: https://wiki.dendron.so/notes/bdZhT3nF8Yz3WDzKp7hqh/