Multiple elements connected to a dataset in the same page.

Can multiple, different elements be connected to the same dataset on the same page, but filtered to show different results?

For example, on a page, I have a repeater connected to all blog posts, but I have set up a separate 1-item repeater elsewhere on the page but I want that to display the blog post with the most views. But when I try to set a filter for the single item, it’s the same filter as the repeater.

Not sure what to do to go about this. Please advise.

1 Like

Hey @info17721 ! :wave:

So, you’re correct that multiple elements can be connected to the same dataset, but for your use case, I don’t think that’ll work.

The best way to approach this is by duplicating the first dataset. Add filters to the second dataset and connect it to the separate 1-item repeater.

The setup would be something like this:
1 Database (Blog)
2 Datasets (1 for All Blog Posts. 1 for Most Views)
All Blog Posts Dataset is connected to the repeater
Most Views Dataset has filters and is connected to the 1-item repeater.

Hope that helps :slight_smile: