Creating new notes using meta-bind and templater plugins

So I have a meta-bind button in a note which creates a new note using a template.

style: primary
label: Add a New Photograph
actions:
  - type: templaterCreateNote
    templateFile: "_Templates/Photograph.tpl.md"
    folderPath: "Root/Photography/Gallery/Photographs"
    fileName: foo

this is all fine but what I’d like to do is to derive the title of the new note from the title of the note which the button is in. Is this possible?

thanks

I found tp.config.active_file which returns the current note with everything I need.

2 Likes

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.