cms-theme-boilerplate icon indicating copy to clipboard operation
cms-theme-boilerplate copied to clipboard

Turn pagination into a module.

Open TheWebTech opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe.

With HubDB and CRM object dynamic pages we have new listing type content that also needs pagination.

Describe the solution you'd like

A pagination module, which takes the code for the blog pagination, and allows you to pass an array of objects in to be used as the data source.

Depending on the format of the different object types we may need to have a field in the pagination module for "format" to specify hubdb, crm_object, blog etc.

So you could use the same module for blogs, hubdb, and crm_objects.

Screenshots/source code/links

https://github.com/HubSpot/cms-theme-boilerplate/blob/25a93b02cc7a7c1d3f23671409208d96e2139467/src/templates/blog-index.html#L142-L180

Checklist

  • [ ] I have read the CONTRIBUTING document.
  • [ ] I have checked the issue tracker to make sure there isn’t already an open issue.

TheWebTech avatar Mar 23 '21 18:03 TheWebTech