Developer forum

Forum » Feature requests » Recommend Values for Paging

Recommend Values for Paging

Anjelica-Mae Bueno
Reply

Hello! 

We have noticed in recent projects that customers are able to eneter any value for paging. This allows them to choose a number that is not divisble by the number of columns in the grid, which leads to gaps when the 'Load more' button is clicked (see screenshot below). Would it be possible to add one of the following options to prevent this? 

1. Add a description text below display that number should be divisible by the amount of columns in the grid (image 2)

2. Limit allowed values to sets of 12 (12, 24, 36, 48,....) because then it will be divisible by any number of columns you can get in a responsive behavior (6, 4, 3, 2, 1) 

 

 

 

Thank you!

AJ

 


Replies

 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply

Hi AJ,

Thank you for the suggestion and sorry for the late reply.

The issue is that the client-side implementation isn't related to the module settings in the backend. The product catalog doesn't know that your template shows elements in a grid with 12 elements per row and is therefore unable to enforce any restrictions on that setting. There's no way it could know without doing an advanced analysis of the template -- which, in many cases, doesn't use a grid at all.

- Jeppe