Dataview of files, which link to "dynamic note-titel" and filename starts with "ABC_"

Things I have tried

Hi,
I did not come very far, but that’s what I tried:

LIST 
contains(file.name, "file.name")
From "work" 

What I’m trying to do

At the beginning of all my project-files I’d like to have a dataview, that show me all files that:

  • link to that project-file (I’d like to have that query dynamically calculated, so that I don’t have to edit that dataview in all my project-files) AND
  • which filenames start with “ABC_”

Is there a way to do that?

Thanks in advance,
Silias

Some previous point:

  • if you use FROM (source filter) in DQL queries, this command needs to be always in second place… something like:

    LIST/TABLE/TASK
    FROM
    OTHER COMMANDS
    

    (order is important)

  • in FROM you can define as source «folders», «tags» and «links». (docs)

  • in your case you want all “inlinks” to the current file (the project file), i.e., you want as source all pages that link TO the project file.

  • you can’t use variables in FROM command, but you can point to the current file using “[[]]” or “[[#]]”

  • your query:

    LIST
    FROM [[]]
    WHERE contains(file.name, "ABC_")
    
  • if you want only inlinks placed in the folder “works”

    LIST
    FROM [[]] AND "works"
    WHERE contains(file.name, "ABC_")
    

Nice,
thank you very much!!!
not only for the solution, but also for the good explanation!!! :slight_smile:

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