Skip to content

Merge several paginated JSON using "tags" and access all as Collection? #1799

Answered by pdehaan
debatz asked this question in Q&A
Discussion options

You must be logged in to vote

When using pagination, I like to use the alias key as well to make it easier for me to remember the current pagination item. https://www.11ty.dev/docs/pagination/#aliasing-to-a-different-variable

Also, doesn't look like you're setting explicit permalinks, so I'm not sure how many files are being written out and what the structure of that is. But from your output, it looks like you have 18 items in the all collection. You could probably also output the collections.testtag variable and see if that has 18 items, or if you have multiple different websites and each one has a few different pages/collections.

Another trick I like to use is a special filter for dumping objects out into JSON strin…

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@pdehaan
Comment options

pdehaan May 29, 2021
Collaborator

@debatz
Comment options

@pdehaan
Comment options

pdehaan May 29, 2021
Collaborator

@debatz
Comment options

@pdehaan
Comment options

pdehaan May 29, 2021
Collaborator

Answer selected by debatz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants