You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a template file with my standard YAML header file (which happens to use some Templater code, which is fine because Quickadd uses this)
The same Standard YAML header is used as part of all my header templates so I include that using standard format
So my Quickadd Template for an article type might be
{{TEMPLATE:Utilities/Template/myyaml.md}}
Some other header data to do with my article type
So far so good --- I can have several different templates but only ever need to edit the YAML in one place.
The problem
I can create new files with the above, but sometimes I need to enter the header into an existing file. I can do this with Templater. The problem is that although Quickadd uses Templater Syntax, this does NOT extend to properly using the standard Templater syntax for file nesting
So if I have the below template file (without the exact path), it is usable by Templater but not by Quickadd
<% tp.file.include("[[myyaml]]") %>
Some other header data to do with my book type
This means having to maintain two entirely separate sets of templates
a) For Quickadd to create new files in a nice way
b) For Templater to add the same headers to existing files
Surely there must be some way around this - either to have common code that can be used by both Plugins (as it would be if I wasn't nesting the templates) or to have Quickadd adding a header to an existing file.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
There must be a way around this.
So my Quickadd Template for an article type might be
So far so good --- I can have several different templates but only ever need to edit the YAML in one place.
The problem
I can create new files with the above, but sometimes I need to enter the header into an existing file. I can do this with Templater. The problem is that although Quickadd uses Templater Syntax, this does NOT extend to properly using the standard Templater syntax for file nesting
So if I have the below template file (without the exact path), it is usable by Templater but not by Quickadd
This means having to maintain two entirely separate sets of templates
a) For Quickadd to create new files in a nice way
b) For Templater to add the same headers to existing files
Surely there must be some way around this - either to have common code that can be used by both Plugins (as it would be if I wasn't nesting the templates) or to have Quickadd adding a header to an existing file.
Any hints please?
Beta Was this translation helpful? Give feedback.
All reactions