Implementing CMS Load on our site, I’m seeing duplicated items. I’ve seen this a couple of other posts, but can’t seem to find the issue on our site. The goal is to add pagination, but I removed that for now to troubleshoot. Even with only the “Load more” basic custom attribute, I’m still seeing the last 5 items duplicated in the collection.
Hi @tom.groom!
The issue is caused by a duplicate attribute.
Please remove fs-cmsload-element="list"
from the Collection List Wrapper element.
Then keep the attribute on the Collection List and add fs-cmsload-mode="pagination"
.
Let me know if it works for you!
Hey @Support-Pedro thanks for looking into this.
I updated per your instructions and am running into the same issue I saw previously when trying to implement pagination. There are 11 items in the collection total, and the collection is set to show 6 items / page.
You’ll see that the pagination is working, but it creates 3 buttons of pagination (not the expected 2). It seems to create a duplicate of all of the first page items.
You will also notice that if you click “next” it will skip over the second page and go directly to “3”.
Thanks,
Tom
I came to post the same thing, so posting here instead of a new topic.
Same issue, all of a sudden my collection here is starting to duplicate items, I don’t know if it’s the filters or load more, I have these 2 attributes here plus the nest.
It was working alright but the client just raised the problem of duplicated items.
Read only: Webflow - Robin AI
Hey @tom.groom!
You also seem to have a duplciated CMS Load script. Can you please check your site settings and remove the script if present?
This should fix the current issues but do let me know if the page button issue persists!
Hey @info6!
Your issue could be related to the Iubenda cookie manager, this library seems to load our scripts multiple times.
You can check this thread as an example
Or this other thread
Can you check your setup and let me know if this fixes the issue?
Hi Luis,
I don’t believe we are using the Lubenda cookie manager. I did see the previous posts and also tried to implement the solution (just in case) by adding
data-cmp-ab="2"
like this
<script async src="https://cdn.jsdelivr.net/npm/@finsweet/attributes-cmsload@1/cmsload.js" data-cmp-ab="2"
></script>
But it doesn’t seem to solve the problem.
Thanks,
Tom
Hey @tom.groom! I think you read my response for @info6
You have a duplicated CMS Load script in your setup. This causes several issues, as the script is essentially loaded twice.
I am resharing the image from my earlier reply
My bad Luis. Thanks — looks like the previous developer had this in the settings for the site and I didn’t notice it. Thanks for the help.
No worries! Happy to help, let me know if you face any other issues