Trying to put together a bit of a complicated filter

Hi everyone!

As the title says, I’m trying to put together a bit of a complicated filter.

To set the context:

  • I have two data types - user and photo
  • I have a page with a repeating group that lists all photos from all users with a simple ‘Search for all photos’ data source.

Naturally, some users upload more photos than others and I want to stop this page from being saturated with photos from the users who upload a lot.

I’m trying to filter the results so that I only return the first 5 photos of each user. Visualised like this.

I can’t quite figure out the best way to filter it.
Would appreciate any help you can give :slight_smile:

You should be able to add ‘:items until #5’.

This I tried but it just returns 5 photos in total.
I also tried first grouping it by user but the same thing happened.

I’m thinking that I have to first somehow get the index of the photo in relation to it’s parent user and use ‘:items until #5’ on that, but I can’t figure that bit out :thinking:

Looks like a horizontal repeating group of users and in the cell of that put a vertical repeating group of current cell’s user’s photos:items until #5. Or make the vertical repeating group a fixed number of cells

This topic was automatically closed after 70 days. New replies are no longer allowed.