Tutorials

Making Queries

See syntaxes in Dataview.

Recipes

Syntax for incoming links:

LIST
FROM [[#]]

Displaying Frontmatter From The Same File

Scenario: We would like to display frontmatter from the same file. For example, suppose you are in a file with the following frontmatter:

title: Romeo & Juliet
author: William Shakespeare

Then add this to your dataview query:

WHERE file.path = this.file.path

By default, Dataview will use the source FROM "" so this will filter out everything except the current note. So the whole query should look like this:

TABLE title, author
WHERE file.path = this.file.path

2 items under this folder.