What I’m trying to do
I want to use Templater to create new markdown files, with some metadata in the frontmatter already filled out. I want to create new files from this template that ONLY allow me to select from certain options. Consider an example vault organized like this:
- Notes
- (file to be created here)
- People
- Alice
- Bob
- templates
- mynote.template
I want to create a file with a template roughly like:
mynote.template
---
person:
---
Lorem Ipsum
such that when I create a file from the template, I am given a dropdown menu/shown a popup of options/some other restriction where I am only allowed to input [[People/Alice]] or [[People/Bob]].
Things I have tried
I thought I could do this with the templater multi_suggester, but it only seems to work in the body of the template, not in the frontmatter. Using their example
attempted.template
---
mood: <% await tp.system.multi_suggester(["Happy", "Sad", "Confused"], ["Happy", "Sad", "Confused"]) %>
---
<% await tp.system.multi_suggester(["Happy", "Sad", "Confused"], ["Happy", "Sad", "Confused"]) %>
only creates files which look like:
attempted.md
---
mood:
---
Confused
Surely there is a way to do this, but I’m lost trying to find it.