Request

Add ‘Skip’ Parameter for all Module Components

  • Liquid

We currently have limit to specify the number of items returned by a component.

eg:

{% component source: "Module Name", limit: "100" ... %}

It would be handy to also have skip (or offset) to allow the offset of items retrieved.

eg:

{% component source: "Module Name", limit: "100", skip: "100" ... %}

This would be useful for custom pagination and in cases where you display the first item or 2 larger or in a different layout with the remaining items listed smaller.

At any rate, this is fairly standard functionality for retrieving items from a data set and while it can currently be achieved with Liquid forloops (limit/offset), it would be ideal to be able to do this filtering at the component level for simplicity and performance reasons.