List of files linked to from another file

What I’m trying to do

I want to create a list of files that are linked to from a file A.

I want to see that list via base in a different file B.

Things I have tried

Tried using file.links but that gets the me list in the opposite direction - all the files that link to file A. I want the files that file A links to.

I tried seaching the forum but couldn’t find a thread that answers my question. I assume there might be one out there and I just don’t use the right search queries.

Hi @mlte ,

I think you’re asking for a base that shows all files that are linked to from a particular page. In my vault, I have a page “Python” with a bunch of outgoing links. You can do this with a filter like the following:

file.backlinks.contains("[[Python]]")

Here’s a base I created on a different page that shows all of Python’s outgoing links:

Looks like you don’t have to use a custom function, you can do the same thing using drop-downs:

file.backlinks doesn’t show up in my dropdown. Typing it in manually doesn’t work either.

Can you post a screenshot of what’s not working?

hmm.. I also don’t see “file backlinks” available in filters. I do see it in properties. I tested in Table and List views. I made sure Backlinks core plugin was enabled in case that matters.

Not sure what would make it become available.

Hmm, I see what you mean. When making the filter from scratch, “file backlinks” isn’t in the list. But if I enter the formula by hand, then click the “simple filter” button, it converts it to drop-downs. That’s interesting.