CMS Load - Trigger page change via code

Hi everyone!

I’m using FS CMS Load with pagination, and I’m wondering if it’s possible to trigger a page change via code.

Something like page.update("5")

Thank you!

Hello @moorrr , this is possible while using the cms load api

// Finsweet CMS Load events
window.fsAttributes = window.fsAttributes || [];
window.fsAttributes.push([
  'cmsload', 
  (listInstances) => { 

    // Save list instance for breakpoint-change-triggered updates
    listInstance = listInstances[0];
    
    // Use this to update current page programatically
    listInstance.currentPage = 5;
    
  },
]);