How to create a dynamic view from Bases from a template

What I’m trying to do

Hi, sorry for the noob question.

I have something like this in a template for some sort of “project aggregator”. The idea is that whenever I apply the template a list of all projects linking to such aggregators is populated automatically.

(dataview)

LIST
FROM [[]] and #project

Note that I know Bases only checks on the front-matter and my link is actually in the frontmatter too. I could also change it to use the title of the file or smth like that if that works.

I am not sure if I can create this with Bases and I ve been scratching my head for quite a while so decided to come here ask the hive mind.

Thanks

Things I have tried

I have tried using the file path properties of the file but I am not sure I can never get into an “equals current file” rule. Hope that makes sense.

Bases can look at links in your note body, along with some other info that isn’t in the properties, such as paths, embeds, file size, creation date, inline tags… Here’s the list.

At any rate, you needn’t change your current set-up. These two Bases filters create the equivalent of your Dataview query.

FROM [[]] translates to:

file.hasLink(this)

FROM #project translates to:

file.hasTag("project")

You can add them to your base filters like this:

1 Like

Oh perfect! thanks for the tips!

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