Dataview Query getting other files that contain link to current file, to show in query

First, search the help docs and this forum. Maybe your question has been answered! The debugging steps can help, too. Still stuck? Delete this line and proceed.

What I’m trying to do

I am trying to a simple query using Dataview where the query file that contain a link to the current file in another file, to show up in the query for the file. This is the query I currently have.

Things I have tried


Table

From #Area

WHERE file.inlinks

AND !contains(file.etags, "#Template")

AND !contains(file.etags, "#Default" )

SORT [file.name](http://file.name/) ASC

Additional Context

This the what chatgpt suggest to fix it, nothing showing up. Just need some help.

FROM #Area

WHERE contains(file.inlinks, this.file.path)

AND !contains(file.etags, “#Template”)

AND !contains(file.etags, “#Default”)

SORT file.name ASC

I also have Templater, Metabind button installed. and I believe their might be a conflict their where in order to create a file using a template, I have a button that uses Metabind Templater feature, I think if I switch to the command feature of the button it might work. I just need a little help.

Not sure I’m exactly understandingnwhat you’re trying to do, but try FROM [[]] ? That will include only files that link to the current file, and you can filter down with WHERE clauses from there.

1 Like