-
Hi everyone, My requirement is to generate a list of records with the permalink pattern of /items/{{item.type}}-near{{item.area}}/page-{{pagination.pageNumber}} with a page size of 20 items. My recordset looks like this: id | type | area | name |... I'm currently grouping the data via using a Map with the type and area as the key, then converting that into an array with the shape of:
And the test liquid file is like so:
Which isn't doing what I would like it to do. Any suggestions and advice appreciated! Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Okay, I managed to achieve this with collections after finding a link suggesting that, which is a bit hacky, but that's fine, it's still early days on what's already the best static generator in my not very humble opinion! However there's a definite issue with processing large volumes of data, underscore consumed all the memory and understandably triggered an error, killing the page generation when there were north of 10k records to create/ |
Beta Was this translation helpful? Give feedback.
-
Revisited this, my solution was to have a powershell script get the first layer, then replace tokens inside a liquid template and js file, then run eleventy. It's quick, flexible and effective and (so far) removes the large volume issues I hit. |
Beta Was this translation helpful? Give feedback.
Revisited this, my solution was to have a powershell script get the first layer, then replace tokens inside a liquid template and js file, then run eleventy.
It's quick, flexible and effective and (so far) removes the large volume issues I hit.