How do I "convert" a simple search "content:placeholder" ... into a dataview query?

What I’m trying to do

How do I translate search “content:placeholder” into a dataview query?

This works:

Things I have tried

But this is not working using dataview:

LIST
FROM ""
WHERE contains(file.text, "I am going to provide you")
SORT file.mtime DESC  
LIMIT 99

Any hints ?

This is the template I like to use for dataview:

LIST
FROM #area/work
WHERE contains(file.tags, "#status/shipped")
WHERE !contains(file.name, "HOME 🏠")
WHERE !contains(file.folder, "_cards/_templates")
SORT file.mtime DESC  
LIMIT 5

WHERE contains(file.text, “ABCD”)

I am trying this myself. It does not work either. I am also very interested in the solution. It works with “file.name”, so it shows all files with “ABCD” in the name, but nothing happens with the file.text command.

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