Want to grab information from one file to another automatically with Templater

What I’m trying to do

I use Templater to automate the front matter to the lecture I am currently attending. Currently I just use Templater functions to achieve most of what I need:

Class:  [[<% tp.file.folder() %>]]
Date: <% tp.date.now("DD/MM/YYYY") %>
Tags: #<% tp.file.folder().substring(0, 4) %> #<% tp.file.folder() %>
Lecture Instructor: 

I have my lecture notes inside a folder with the name of the course. I use another plug-in called Folder Note which creates a file with the same name of the folder; acting as a Table of Contents.

What I want is to also automate grabbing the Instructors name from somewhere in my vault. What would be the best approach to this, and what plug-ins or Java Script do I need?

What I think is the solution

I have entered my Instructors information within the Folder Note; and believe Dataview is the best way to grab this line. However, going through the documentation I don’t understand how to write the Javascript to implement it.

Any help would be appreciated.

You can full control Obsidian application via app variable in Templater expessions. See. this: App - Developer Documentation

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