Replies: 1 comment
-
That was all foggy indeed. While the question of “parameterizing” a collection is still open, I managed to solve the problem itself by using an existing collection […]. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Massive brain fog, help appreciated: Have some already complex double pagination collection in my .eleventy.js,
For a related issue I need the same collection, but without or with a different
paginationSize
.Is it possible to pass on a parameter to the collection to define/change the pagination size, or to make this reusable so that two collections could be based on the code?
The first doesn’t seem to be possible at all, but even if I move the code above into a function that I call from two new collections, akin to the below pseudo code, I cannot get this to work:
As I work on setting up tag feeds I (think I) rely on the respective collection logic, but I may miss something obvious. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions