CMS Combine with CMS Slider

Hey team,

We are trying to connect two CMS Collection together to one CMS Slider, the issue we’re seeing is there is an additional slide that is blank and wondering if this can be removed.

https://preview.webflow.com/preview/canpaco?utm_medium=preview_link&utm_source=designer&utm_content=canpaco&preview=e5fc9daacfe78b9202613faf2f1067d6&workflow=preview

Hello @info2

Try this
You should init the cmsslider manually after cms combine is done executing.
You can do it by:

  • Adding fs-attributes-preventload="true" to the cmsslider <script> tag.
  • Ensuring that the cmsslider <script> tag is loaded using defer and not async.

So:

<script defer fs-attributes-preventload="true" src="https://cdn.jsdelivr.net/npm/@finsweet/attributes-cmsslider@1/cmsslider.js"></script>

And then, you just have to init it manually after combine is done, like:

window.fsAttributes = window.fsAttributes || [];
window.fsAttributes.push([
  'cmscombine',
  (combineInstances) => {
       window.fsAttributes.cmsslider.init();
  },
]);


type or paste code here