You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a website visitor,
I want content pages organised in collections,
so I can easily find similar / related content
A content editor must be able to organise pages in collections (or tags?)
A Collection Route must use dynamic (server-side) rendering, so that it supports pagination, filtering (incl searching) and sorting
A Collection Block can show items from a collection (or multiple) with filters and sorting applied and a limit on the number of items. A layout property can define its appearance
The text was updated successfully, but these errors were encountered:
---// pages/collections/[slug]/[page].astroexportasyncfunction getStaticPaths({ paginate }) {const records =awaitdatocmsCollection(/* ... */); // filter on `slug`returnpaginate(records, { pageSize: 10 });}// All paginated data is passed on the "page" propconst records =Astro.props.page.data; // subset of all records, based on pageSize aboveconst { total, start, end, currentPage, ...andMoreProps } =Astro.props.page;
* I now see nested pagination requires a bit more work in getStaticPaths as it should return all paths for all slug collections.
As a website visitor,
I want content pages organised in collections,
so I can easily find similar / related content
The text was updated successfully, but these errors were encountered: