Dyldog / luhman-obsidian-plugin

GNU General Public License v3.0
60 stars 18 forks source link

[OTHER] Where to put the template file? #55

Open QingjingFei opened 1 year ago

QingjingFei commented 1 year ago

I'm wondering where to put the template file? Is there a way to write the relative path? I've tried many times, none of them is correct... Suppose I have a folder called 00Templates in current vault: 00Templates | - Daily Template.md | - Fleeting Template.md | - Zettel Template.md I want to use Zettel Template.md as the template file, what should I do?

ITMighty commented 6 months ago

These questions are not directly related to this plugin, but the answers can be found within Obsidian settings, themselves. I know the OPs issue was posted last year, but perhaps this information will assist them and/or others.

Only using the core plugin, Templates?

  1. Open Obsidian's settings
  2. Go to the Files and links settings on the left
  3. Change New link format to Relative path to file
  4. Go to the Templates settings on the left
  5. Change Template folder location to the base folder you want all your templates to be in
    • For the OPs example, it would be 00Templates
    • There is no forward slash but the field should auto-populate with your vault folder structure as you type
    • Even if we aren't utilizing the built-in templates plugin, this has to be set, I think, for everything to work right

⚠NOTE: Any template you want to use must exist in this template folder

Using Templater?

  1. Do the first 5-steps if you haven't already
  2. Make sure the Templater community plugin is installed and enabled
  3. Go to the Templater settings on the left
  4. Set the Template folder location to the same folder as you set for the Template plugin

Wanna start a note by calling the template?

If you're using Templater, there's a Startup Templates section in the settings where you can designate one or more templates to automatically start any time Obsidian is opened the first time. However, if you want any New note creation to automatically generate a file calling a specific template, you will probably need the community plugin Homepage or another plugin. I'm not at the point in my Zettelkasten structure to create a landing page or set a new note to something. Some of this may not work or be what you want. I'm sure a plugin or setting exists to do exactly what you're trying to do.


Edit: The plugin is called Homepage, not Dashboard.