Template Page - force link to new page follow the same template

I am new to SilverBullet and love it so far. Right now I’m building out a “Work Journal” template which will be my daily note pages. The template by default has links to {{yesterday}} and {{tomorrow}}, and I’d like to have those links create the new page using the same template. Is there a way to do that?

My template:

---
tags: template
hooks.newPage:
  suggestedName: "work/journal/{{today}}"
  confirmName: false
  openIfExists: true
  tags: workjournal
---


___
[[work/journal/{{yesterday}}|<<<]] **{{today}}** [[work/journal/{{tomorrow}}|>>>]]
___

# To-Do:
- [ ] #1
- [ ] .

# Meetings

# Actual Work

Yes, you can specify the forPrefix in frontmatter (at the level of to the confirmName etc. attributes). When you specify work/journal/ there, it should auto trigger the template when creating this pages under this prefix.

https://silverbullet.md/Page%20Templates

1 Like