<?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 Re: Logo Carousel - Open in a new tab in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Logo-Carousel-Open-in-a-new-tab/m-p/373614#M18822</link>
    <description>&lt;P&gt;Thank you all for responding! I really appreciate it. I'm glad to learn that what I had was correct. It looked like it was a caching issue, it wouldn't work until I deleted another module I had in there that was competing with slider. It works!! I appreciate the assistance and review of the code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Sep 2020 16:20:13 GMT</pubDate>
    <dc:creator>Chrissy</dc:creator>
    <dc:date>2020-09-24T16:20:13Z</dc:date>
    <item>
      <title>Logo Carousel - Open in a new tab</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Logo-Carousel-Open-in-a-new-tab/m-p/373323#M18802</link>
      <description>&lt;P&gt;Hi there, I'm not sure why I'm not understanding this; I thought I had it figured out. However, it doesn't seem to work. I'm trying to modify this code so that a link in the carousel opens in a new window. I thought I could simply do this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{{ "&amp;lt;a href='" ~ slide.page_url ~"' target='_blank'&amp;gt;" if slide.page_url }}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the original module.html -- any ideas?? I'm new to this. Thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{####################################&lt;BR /&gt;HubSpot Logo Carousel Module&lt;BR /&gt;#####################################&lt;BR /&gt;This module was provided as an easy&lt;BR /&gt;to implement option for users, and&lt;BR /&gt;also serves as a simple example for&lt;BR /&gt;developers to learn from &amp;amp; work with.&lt;BR /&gt;#-----------------------------------#}&lt;/P&gt;&lt;P&gt;{{ require_js("&lt;A href="https://design-assets.hubspot.com/hubfs/Assets/Slick/slick.min.js" target="_blank" rel="noopener"&gt;https://design-assets.hubspot.com/hubfs/Assets/Slick/slick.min.js&lt;/A&gt;", "head") }}&lt;BR /&gt;&amp;lt;base target="_blank"/&amp;gt;&lt;BR /&gt;{% if module.logos|map('image')|map('src')|join|length &amp;gt; 0 %} {# &amp;lt;&amp;lt; Only create slider if at least 1 image is added #}&lt;BR /&gt;&amp;lt;div class="hs-logo-carousel"&amp;gt;&lt;BR /&gt;{% for slide in module.logos %}&lt;BR /&gt;&amp;lt;div&amp;gt;&lt;BR /&gt;&amp;lt;div class="hs-logo-carousel__inner"&amp;gt;&lt;BR /&gt;&amp;lt;img data-lazy="{{ slide.image.src }}" alt="{{ slide.image.alt }}"&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;{{ "&amp;lt;/a&amp;gt;" if slide.page_url }}&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;{% endfor %}&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;{% endif %}&lt;/P&gt;&lt;P&gt;{% require_js %}&lt;BR /&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;$(document).ready(function() {&lt;BR /&gt;$('.hs-logo-carousel').slick({ {# &amp;lt;&amp;lt; Slick slider settings go here #}&lt;BR /&gt;dots: {{ module.settings.show_dots }}, {# More info: &lt;A href="http://kenwheeler.github.io/slick/" target="_blank" rel="noopener"&gt;http://kenwheeler.github.io/slick/&lt;/A&gt; #}&lt;BR /&gt;arrows: {{ module.settings.show_arrows }},&lt;BR /&gt;autoplay: {{ module.settings.autoplay }},&lt;BR /&gt;infinite: true,&lt;BR /&gt;speed: {{ module.settings.scroll_speed }},&lt;BR /&gt;slidesToShow: {{ module.settings.logos_to_show }},&lt;BR /&gt;slidesToScroll: {{ module.settings.logos_to_scroll ? "1" : module.settings.logos_to_show }},&lt;BR /&gt;responsive: [&lt;BR /&gt;{&lt;BR /&gt;breakpoint: 767,&lt;BR /&gt;settings: {&lt;BR /&gt;slidesToShow: {{ module.settings.mobile_settings.logos_to_show }},&lt;BR /&gt;slidesToScroll: 1,&lt;BR /&gt;infinite: true,&lt;BR /&gt;arrows: {{ module.settings.mobile_settings.show_arrows }},&lt;BR /&gt;dots: {{ module.settings.mobile_settings.show_dots }}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;});&lt;BR /&gt;});&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;{% end_require_js %}&lt;BR /&gt;{% require_css %}&lt;BR /&gt;&amp;lt;style&amp;gt;&lt;BR /&gt;.hs-logo-carousel__inner {&lt;BR /&gt;padding: 0 {{ module.settings.padding / 2 }}px;&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/style&amp;gt;&lt;BR /&gt;{% end_require_css %}&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 21:44:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Logo-Carousel-Open-in-a-new-tab/m-p/373323#M18802</guid>
      <dc:creator>Chrissy</dc:creator>
      <dc:date>2020-09-23T21:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Logo Carousel - Open in a new tab</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Logo-Carousel-Open-in-a-new-tab/m-p/373390#M18806</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/5117"&gt;@Chrissy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For a new tab your code looks fine, i just tried your code and it works, i changed 'code row' 16 with:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{{ "&amp;lt;a href='" ~ slide.page_url ~"' target='_blank'&amp;gt;" if slide.page_url }}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My links now opens in a new tab.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hubspotLink.PNG" style="width: 200px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/32195i4347BF7136C4A91D/image-size/small?v=v2&amp;amp;px=200" role="button" title="hubspotLink.PNG" alt="hubspotLink.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you have some caching issues? Did you change anything else?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you send us a preview link?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Full Code:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{####################################
    HubSpot Logo Carousel Module 
##################################### 
This module was provided as an easy
to implement option for users, and 
also serves as a simple example for 
developers to learn from &amp;amp; work with.
#-----------------------------------#}

{{ require_js("https://design-assets.hubspot.com/hubfs/Assets/Slick/slick.min.js", "head") }}

{% if module.logos|map('image')|map('src')|join|length &amp;gt; 0 %}      {# &amp;lt;&amp;lt; Only create slider if at least 1 image is added #}
&amp;lt;div class="hs-logo-carousel"&amp;gt;
  {% for slide in module.logos %}
  &amp;lt;div&amp;gt;
    {{ "&amp;lt;a href='" ~ slide.page_url ~"' target='_blank'&amp;gt;" if slide.page_url }}
    &amp;lt;div class="hs-logo-carousel__inner"&amp;gt;
      &amp;lt;img data-lazy="{{ slide.image.src }}" alt="{{ slide.image.alt }}"&amp;gt;
    &amp;lt;/div&amp;gt;
    {{ "&amp;lt;/a&amp;gt;" if slide.page_url }}
  &amp;lt;/div&amp;gt;
  {% endfor %}
&amp;lt;/div&amp;gt;
{% endif %}

{% require_js %}
&amp;lt;script&amp;gt;
  $(document).ready(function() {
    $('.hs-logo-carousel').slick({                                                   {# &amp;lt;&amp;lt; Slick slider settings go here #}
      dots: {{ module.settings.show_dots }},                    {# More info: http://kenwheeler.github.io/slick/ #}
      arrows: {{ module.settings.show_arrows }},
      autoplay: {{ module.settings.autoplay }},
      infinite: true,
      speed: {{ module.settings.scroll_speed }},
      slidesToShow: {{ module.settings.logos_to_show }},
      slidesToScroll: {{ module.settings.logos_to_scroll ? "1" : module.settings.logos_to_show }},
      responsive: [
        {
          breakpoint: 767,
          settings: {
          slidesToShow: {{ module.settings.mobile_settings.logos_to_show }},
          slidesToScroll: 1,
          infinite: true,
          arrows: {{ module.settings.mobile_settings.show_arrows }},
          dots: {{ module.settings.mobile_settings.show_dots }}
         }
       }
      ]
    });    
  }); 
&amp;lt;/script&amp;gt;
{% end_require_js %}
{% require_css %}
&amp;lt;style&amp;gt;
  .hs-logo-carousel__inner {
    padding: 0 {{ module.settings.padding / 2 }}px;
  }
&amp;lt;/style&amp;gt;
{% end_require_css %}&lt;/LI-CODE&gt;
&lt;P&gt;- Chris&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 07:50:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Logo-Carousel-Open-in-a-new-tab/m-p/373390#M18806</guid>
      <dc:creator>Chris-M</dc:creator>
      <dc:date>2020-09-24T07:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Logo Carousel - Open in a new tab</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Logo-Carousel-Open-in-a-new-tab/m-p/373395#M18807</link>
      <description>&lt;P&gt;Chrissy, first off WELCOME!!!! Always great to see new people joining the community.&lt;BR /&gt;&lt;BR /&gt;I checked out this and as it turns out we have an image slider that is easier to control from the page editor. We already offer the option to option slides in a new tab on a slide by slide basis. I have tested this a out in my own portal and you drop the image slider in place then explore the edit options. There is a toggle at the bottom that should help you solve for this.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Let us know if this solution works for you.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Open In New Tab Options.png" style="width: 381px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/32196i9F736A96466A180A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Open In New Tab Options.png" alt="Open In New Tab Options.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;- David&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 09:56:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Logo-Carousel-Open-in-a-new-tab/m-p/373395#M18807</guid>
      <dc:creator>davidls7</dc:creator>
      <dc:date>2020-09-24T09:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Logo Carousel - Open in a new tab</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Logo-Carousel-Open-in-a-new-tab/m-p/373409#M18808</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/142915"&gt;@davidls7&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are refering to the 'Image Gallery' Module.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/5117"&gt;@Chrissy&lt;/a&gt;&amp;nbsp;is looking for the HubSpot Logo Carousel Module from the asset marketplace. I couldn't find the same&amp;nbsp;display possibilities in the Image Gallery.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Logo Carousel Module doesn't have an Open link in a new tab - Boolean&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Chris&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 08:59:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Logo-Carousel-Open-in-a-new-tab/m-p/373409#M18808</guid>
      <dc:creator>Chris-M</dc:creator>
      <dc:date>2020-09-24T08:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Logo Carousel - Open in a new tab</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Logo-Carousel-Open-in-a-new-tab/m-p/373435#M18812</link>
      <description>&lt;P&gt;Hi Chris,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for the flag, I upvoted you for your solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;- David&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 09:54:06 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Logo-Carousel-Open-in-a-new-tab/m-p/373435#M18812</guid>
      <dc:creator>davidls7</dc:creator>
      <dc:date>2020-09-24T09:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Logo Carousel - Open in a new tab</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Logo-Carousel-Open-in-a-new-tab/m-p/373614#M18822</link>
      <description>&lt;P&gt;Thank you all for responding! I really appreciate it. I'm glad to learn that what I had was correct. It looked like it was a caching issue, it wouldn't work until I deleted another module I had in there that was competing with slider. It works!! I appreciate the assistance and review of the code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 16:20:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Logo-Carousel-Open-in-a-new-tab/m-p/373614#M18822</guid>
      <dc:creator>Chrissy</dc:creator>
      <dc:date>2020-09-24T16:20:13Z</dc:date>
    </item>
  </channel>
</rss>

