Hello!
I use this solution for nested collections
as well as pagination from Finsweet CMS Load more for Webflow - No-code using Attributes
The problem is that the first solution stops working after pagination.
First Solution Code
<script>
jQuery(".tr-item").each(function (index) {
let cmsItem = jQuery(this);
let itemCategory = cmsItem.find(".tr-category").text();
jQuery(".tr-contain").each(function (index) {
let groupCategory = jQuery(this).find(".tr-title").text();
if (groupCategory === itemCategory) {
cmsItem.appendTo(jQuery(this).find(".tr-list"));
}
});
}
</script>
Is it possible to somehow modify the script so that it runs again after pagination?
I hope for your help!
Here is my site Read-Only: LINK
(how to share your site Read-Only link )
Hi @abenovkaba !
Thanks for sharing. Did you try to use Finsweet Attributes CMS Load + CMS Nest?
You can check a working example here: CMS Filter + CMS Load + CMS Nest | Attributes
You can clone the project to check inside if needed.
Let me know if you need any help,
Eve Kayser
abenovkaba
(Kairbolat)
December 15, 2022, 2:44am
3
Hello! I don’t like CMS Nest because it doesn’t support animation(
I realized that the problem is with CMS load. It confuses with other scripts and does not allow them to work(
Thank you for responding!
1 Like
memetican
(Michael Wells)
December 15, 2022, 7:30am
4
Not sure if this will help, but I can’t imagine CMS Nest doing anything to affect interactions. I’m assuming that’s what you mean by animation (?).
However because CMS Nest reconfigures the DOM, you probably need to re-initialize IX2 if you want interactions to bind to the new objects with your interaction-targeted classes.
Here’s how;
Hi all, sorry for the delayed response on this topic. As you’ve discovered, IX2 doesn’t quite work the same as the rest of our code that supports the Webflow.ready/destroy cycle.
While Webflow.destroy() does in fact stop the IX2 engine and all associated events + state… the ready() function does not re-initialize the engine.
Webflow.require('ix2').init() should do the trick in most cases. As long as IX2 has been initialized once with the serialized JSON data, repeated calls to init() will simp…
2 Likes