What I’m trying to do
I am trying to use a meta-bind-button to create a new file based on a template file.
The meta-bind-button requires a Template and Folder declaration to define each path.
Rather than hard-code the paths, I placed the paths to each in the current note’s YAML
“TMP_PATH” and “LOG_PATH”
I had this working like a champ, and then it quit working. I have been working on multiple notes throughout this process, I may have inadvertently broken something, but I am not seeing it.
Things I have tried
I have tried encasing the path entries in the frontmatter YAML in " " quotes as the paths do have spaces. But this has not corrected the situation. When I review the console the feedback is that the template file cannot be found. I have verified that the template file is there. And I have used standard templater functionality of assigning the template to a specific directory and create a new note with the assigned template. This process works with no issues.
Here is the code for the meta-bind-button:
label: "CREATE A NEW PROJECT LOG"
icon: ""
hidden: false
class: ""
tooltip: ""
id: ""
style: default
actions:
- type: templaterCreateNote
templateFile: !path(#TMP_PATH) # Correct way to reference TMP_PATH
folderPath: !path(#LOG_PATH) # Correct way to reference LOG_PATH
openNote: true
I am hoping someone sees something I am not see to get me back on the right track. Thanks in Advance
-Tim C.