CMS load pagination problem on loading the page

HI!

I added CMS load and pagination and it works fine. But the problem is that the whole page loads as many times as the number of pagination pages in the collection list.

How can i solve this issue?

Thank you in advance.

1 Like

This usually happens when CMS Load is triggering multiple requests at once. Try enabling “Load More” instead of pagination or check if your pagination script is duplicating the requests. Also, make sure only one instance of CMS Load is applied to the collection list.

Hey @kakimari01!

It appears you are still using the old CMS Library script. This version has been deprecated for a while and has been replaced with Attributes, which offers a much simpler and quicker setup.

Let me know if you need any help!

I did that first but they didn’t work together. Now I switched back to attributes, but after I add the filter the load and pagination don’t work but the filter doesn’t work either

@kakimari01 I have narrowed down to two possible issues

  1. There are some errors in the console regarding CMS Filter.


    I am not really sure why they are being shown as the setup is correct. I did notice that you are using Initial states in your table section which could be causing the issue. Could you remove the interactions and test?

  2. The Table component could be interfering with the scripts, we can test this after testing without the interactions, you’ll have to remove the code we inject in the project settings to properly test.

My best guess is that point 1 is the root of our issue here but would love to know what you see after testing

I think I removed it, still not working

If you mean Finsweet Table component I have not used it. Its a collection list with 1 row grid in it.

Thank you @kakimari01.

I have found the reason of the error for CMS Filter, the checkbox inputs are hidden with the visibility set to hidden, this prevents the element from being rendered on the page. Could you please hide these elements with display: none?

This should fix the issue. Let me know how it goes!

That was it. Thank you