Limit to 30 subsections within 1 section | Community
Skip to main content

Limit to 30 subsections within 1 section

  • May 25, 2022
  • 2 replies
  • 0 views

Caroline15

I have the {{pagination}} helper included in my list of 87 subsections, which are listed under one section. However, even with pagination enabled the maximum about of subsections it will enable me to scroll to is 30. Once I get to the 30th value in the list I can scroll no further. It seems like this isn't a pagination problem. I can't seem to find anywhere in code editor where it is specifying the limit of the subsections should be set to 30.

2 replies

Ifra
  • May 26, 2022

Hi Caroline Maguire,

 

It's happening from the backend. It's the default. 30 sections, 30 subsections, and 30 articles would be visible at once on the template.

 

 

You can change it via custom JS code.

See how: https://support.zendesk.com/hc/en-us/community/posts/4409515207578-List-all-articles-for-each-section-s-on-the-same-category-page

 

 

Thanks

 

 


Caroline15
  • Author
  • June 5, 2022

This is for articles in a section not subsections.

The JS code uses an API call to get a list of articles in a subsection.

 _url = hc_url+'/api/v2/help_center/'+HelpCenter.user.locale+'/sections/'+_id+'/articles.json';

I would need the JS code to do an API call to get a list of subsections in a section. Unfortunately I don't think that API exists so I can't modify it or use something similar.