<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Slider in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Slider/m-p/660121#M29346</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I want to have a slider with dynamic number and content of image or video, The content creator want to add or remove images or videos of slider by modules.&lt;/P&gt;&lt;P&gt;Would you please help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jul 2022 14:19:16 GMT</pubDate>
    <dc:creator>MGheibi</dc:creator>
    <dc:date>2022-07-05T14:19:16Z</dc:date>
    <item>
      <title>Slider</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Slider/m-p/660121#M29346</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I want to have a slider with dynamic number and content of image or video, The content creator want to add or remove images or videos of slider by modules.&lt;/P&gt;&lt;P&gt;Would you please help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 14:19:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Slider/m-p/660121#M29346</guid>
      <dc:creator>MGheibi</dc:creator>
      <dc:date>2022-07-05T14:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Slider</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Slider/m-p/661771#M29383</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/388292"&gt;@MGheibi&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you don't have a developer - there should be at least one slider module in the marketplace.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have a developer you could develop a slider by your self.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are many great slider libraries like &lt;A href="https://kenwheeler.github.io/slick/" target="_blank" rel="noopener"&gt;slick.js&lt;/A&gt;, &lt;A href="https://swiperjs.com/" target="_blank" rel="noopener"&gt;swiper.js&lt;/A&gt; ... out there.&lt;/P&gt;
&lt;P&gt;To implement one of those into HubSpot you'd need a custom module with a &lt;A href="https://developers.hubspot.com/docs/cms/hubl/for-loops" target="_blank" rel="noopener"&gt;repeater/for-loop&lt;/A&gt;, one of those libraries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The very basic layout could look like this if you're going with slick.js&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% require_css %} {# change the paths to the CSS files#}
&amp;lt;link rel="stylesheet" type="text/css" href="slick/slick.css"/&amp;gt;
&amp;lt;link rel="stylesheet" type="text/css" href="slick/slick-theme.css"/&amp;gt;
{% end_require_css %}


&amp;lt;div class="your-class"&amp;gt;
    {% for single_slide in module.slides %}
       Layout for each slide
    {% endfor %}
&amp;lt;/div&amp;gt;


{% require_js %}
{# don't need those if you have jQuery already running #}
  &amp;lt;script type="text/javascript" src="//code.jquery.com/jquery-1.11.0.min.js"&amp;gt;&amp;lt;/script&amp;gt;
  &amp;lt;script type="text/javascript" src="//code.jquery.com/jquery-migrate-1.2.1.min.js"&amp;gt;&amp;lt;/script&amp;gt;

{# slick.min.js is required #}
&amp;lt;script type="text/javascript" src="slick/slick.min.js"&amp;gt;&amp;lt;/script&amp;gt;

&amp;lt;script type="text/javascript"&amp;gt;
    $(document).ready(function(){
      $('.your-class').slick({});
    });
&amp;lt;/script&amp;gt;

{% end_require_js %}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To add a dynamic numer to each slide you could put just&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{{loop.index}}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;into the for-loop.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The layout should look like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;...
&amp;lt;div class="your-class"&amp;gt;
    {% for single_slide in module.slides %}
       Layout for each slide
&amp;lt;span class="slide-numer"&amp;gt;{{loop.index}}&amp;lt;/span&amp;gt;
    {% endfor %}
&amp;lt;/div&amp;gt;
...&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hope this helps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anton&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 06:32:14 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Slider/m-p/661771#M29383</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2022-07-08T06:32:14Z</dc:date>
    </item>
  </channel>
</rss>

