rlowe1228
(Rebcca Lowe)
1
I have a CMS collection set to pagination on two different pages. I have added this code to each page as this is what I found from researching:
<!-- Start seamless-pagination custom code -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.pjax/2.0.1/jquery.pjax.min.js"></script>
<script>
var containerSelector = '#seamless-replace';
$(document).pjax(
'.w-pagination-wrapper a',
containerSelector,
{
container: containerSelector,
fragment: containerSelector,
scrollTo: false,
timeout: 2500,
}
);
// These 3 lines should reinitialize interactions
$(document).on('pjax:end', function() {
Webflow.require('ix2').init();
});
</script>
<!-- End seamless-pagination custom code -->
The code works for the pagination on one page but not the other. Does anyone know why that might be the case?
https://preview.webflow.com/preview/apartment-list-city-pages?utm_source=apartment-list-city-pages&preview=645fbef51f06f8e7f61487ac5f9d4e37&mode=preview
Thanks!
Bec
Here is my public share link: LINK
(how to access public share link)
avivtech
(Aviv Shwartz)
2
Hey Rebecca,
Might be because you did not limit the collection in the Seattle page.
rlowe1228
(Rebcca Lowe)
3
HI @avivtech,
Thanks for the suggestion but I have not limited the collection on either page. I still tried that idea but still not working properly…
Any other suggestions would be very much appreciated.
Thanks!
Bec
rlowe1228
(Rebcca Lowe)
5
@avivtech Yes, I have NOW. But that was done after I read your suggestion. It was not set to this before you suggested it.
avivtech
(Aviv Shwartz)
6
Yes it was 
I only wrote it because I saw it…
Try setting it also on the Seattle page
rlowe1228
(Rebcca Lowe)
7
haha, ok. Whatever dude. @avivtech
avivtech
(Aviv Shwartz)
8
El duderino 
Did you try limiting the other collection? did it work?
rlowe1228
(Rebcca Lowe)
9
Hi @vincent, was curious if you could assist me on this topic?
Cheers,
Bec
vincent
(Vincent Bidaux)
10
Hi Rebecca, sorry, I can’t, I’m not a programmer at all.
1 Like
rlowe1228
(Rebcca Lowe)
11
Hi @vincent no worries! I was able to figure it out. Cheers!
rlowe1228
(Rebcca Lowe)
12
The Collection List needed an ID of seamless-replace. That’s what I was missing 
This is now resolved.
2 Likes