Meta Bind Templater Button: current folder

Hi everybody

What I’m trying to do

I have a button with Meta Bind to create a new note with templater.
Here is a part of the action:

actions:
  - type: templaterCreateNote
    templateFile: System/Templates/Template, books.md
    folderPath: books
    fileName: bookname

Is there a chance to change the folderPath to the current folder (no absolute path)?

I have a folder structure with folders for every bookshelf. On every bookshelf I’d like to have the button to create a new book. It works perfectly but I’d like to have a generic button script without an absolute path in it.

Things I have tried

I tried the syntax from Dataview plugin: this.file.folder, but it didn’t work. I also tried . and ./ and others.

I assume only an absolute path is accepted for the folderPath property. At least in the docs I can’t find any other information.

Has anybody an idea how to solve this?

Thanks!
Daniel

Sorry…the answer is so simple😂.
Just don’t use the property folderPath.

Omittng the property and the new note will be created in the same folder where the button is.

In case of other people has the same question.

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