Dataview & Templater Query #1916
Unanswered
remoterocker
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have two templates, book and author. In the author template, I want to run a query that pulls all books by that author.
An example:
BOOK NOTE: "Waging a Good War" has the YAML entry
author: Thomas E. Ricks
The corresponding AUTHOR NOTE: Thomas E. Ricks has the dataview query:
The WHERE clause should point to the title of the current author file and search across book and articles by that author.
As a bonus help, for books and articles with multiple authors, can I list out the names like this in the book YAML:
author: Chip Heath; Dan Heath
then run the where query in my author note something like this:
WHERE author contains (tp.file.title)
Thanks for the help!
Beta Was this translation helpful? Give feedback.
All reactions