CMS Nest with CMS SLider

Hi there,
I am building a website where I want to make use of the CMS Nest functionality as well as the CMS Slider Functionality.

The CMS Nest attribute works perfectly until I add the CMS Slider Attribute to my list. Then the list appears in the slider, but no longer has the nested component in it.

Is this a known issue and it just isn’t possible?

hey @joel, these solutions interfere with one another. What you need to do is prevent CMS Slider from running until after CMS Nest is done.

This can be done by adding defer fs-attributes-preventload='true' to the CMS Slider script and then initializing with the CMS Nest callback in your </body> custom code

<script>
  window.fsAttributes = window.fsAttributes || [];
  window.fsAttributes.push([
    'cmsnest',
    (listInstances) => {
      console.log('cmsnest Successfully loaded!');

      window.fsAttributes.cmsslider.init();
    },
  ]);
</script>

Thanks a bunch!

1 Like