Collection Filter Offset?

Apologies if this has been answered elsewhere, I’ve searched but nothing has come up so far.

Let’s say you have a page where you have a 50/50 grid. Collection data is set to pull in by ascending date order (so most recent first).

In the left column you have a large single post (the most recent by date). In the right column you have a loop of the next 3 posts (next most recent at the top).

See the attached image taken from the Riverside.com blog as an example.

Can you have the same collection multiple times on the same page, and if so can you offset the data so that you can choose which data is shown (so in the above example you could pull the latest post into the left column then offset the right column by 1 post so as to show the next most recent post(s) bypassing the most recent which is already being shown on the left).

We could manually do this with 2 collections and no offset (collection 1 being just the latest post in the left column collection / collection 2 being the next most recent posts - but this would mean having to move the latest post to the 2nd collection everyone we wanted to show the newest post in the left column.

Your thoughts?

You could use the “Featured” setting on the main collection:

Then in your sidebar show all posts in a collection that aren’t featured (i.e. everything else).

a nice challenge, a very basic layout, still working on it

project - elementsapp://downloadDocument/EBgzZzgabPh6

2 Likes

basic different post options - no single blog page in project

thats it leave CMS for a while now

project in video elementsapp://downloadDocument/jPs1nSmzYYUt

Hey @SimonG, I have some good news!

@ben has just updated the collection component to support an offset, this should be in a new build later this week!

3 Likes

Awesome - Thanks

Just one of those little things that makes creating blog listings so much better / easier.