Appying pagination in a custom page | Community
Skip to main content

Appying pagination in a custom page

  • September 13, 2022
  • 4 replies
  • 0 views

Hi Zendesk Team,

 

I need your help. How can I insert the pagination on a custom page? I used custom pages.hbs. Is there any way to resolve it?

 

Best regards,

Taeyong

4 replies

Salim13
  • October 5, 2022
Hi Yty0818, 
 
I will recommend using the pagination helper {{pagination}} 
 
It is available for :
 
Home page
Article page
Contributions page
Request List page
Search Results page
Section page
 
More information in our dev documentation Pagination Helpers and our article Can I add pagination to my Help Center?
 
Best regards,

  • Author
  • October 5, 2022

Hi @salim13,

Thank you for the feedback.

Could you look into one more thing? In my help center, I called article lists by Zendesk API since I wanted to filter articles by a feature that I developed using Zendesk API. After that, I found an issue that {{pagination}} helper doesn't reflect the articles called by API. When I clicked the next button, it showed original article lists not filtered. In this case, are there any solutions to apply {{pagination}} helper? Or should I write Javascript to apply pagination correctly?


Salim13
  • October 5, 2022
In this case as it is a custom list the pagination helper will not be relevant, you can indeed develop a Javascript solution you can base it on this scenario from our community https://support.zendesk.com/hc/en-us/community/posts/4408867941786-Guide-tip-How-to-make-section-pages-without-pagination 

  • Author
  • October 6, 2022

Thank you for the reference. I meant I wanted to put custom pagination on a section page type.