<?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: Get an image source from a blog post's banner module into the listing template in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Get-an-image-source-from-a-blog-post-s-banner-module-into-the/m-p/203027#M7766</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/54367"&gt;@benji_thecroc&lt;/a&gt;&amp;nbsp;- Right, you can do that using the &lt;A href="https://designers.hubspot.com/docs/hubl/hubl-supported-tags#image-src" target="_self"&gt;image src HUBL tag&lt;/A&gt;. Put it right into your blog template code. Then read that value in your listing template.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a similar question with a solution I have to this question:&amp;nbsp;&lt;A href="https://community.hubspot.com/t5/Content-Design-Questions/Pulling-Article-Snippets/td-p/198249" target="_blank"&gt;https://community.hubspot.com/t5/Content-Design-Questions/Pulling-Article-Snippets/td-p/198249&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Aug 2018 12:53:32 GMT</pubDate>
    <dc:creator>tjoyce</dc:creator>
    <dc:date>2018-08-22T12:53:32Z</dc:date>
    <item>
      <title>Get an image source from a blog post's banner module into the listing template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-an-image-source-from-a-blog-post-s-banner-module-into-the/m-p/202994#M7754</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an image field within our blog posts teamplate banner module. I can get this displaying fine within the module template using&amp;nbsp;{{ module.banner_image.src }} however I'm unsure how I would get this image on the listing template within the loop. I'm assuming I need to reference the specific module and then the field followed by srcbut I'm just not sure what the syntax is for this, I have tried&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{{ content.widget.mobile_thumbnail.src }}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but no luck&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 10:27:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-an-image-source-from-a-blog-post-s-banner-module-into-the/m-p/202994#M7754</guid>
      <dc:creator>benji_thecroc</dc:creator>
      <dc:date>2018-08-22T10:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Get an image source from a blog post's banner module into the listing template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-an-image-source-from-a-blog-post-s-banner-module-into-the/m-p/203015#M7760</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/54367"&gt;@benji_thecroc&lt;/a&gt;&amp;nbsp;- does the banner image have export_to_template_context=true? then you can do widget_data.banner_img.src&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;If this answer helped, please, mark as solved &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;tim@belch.io | &lt;A href="https://forms.belch.io" target="_blank"&gt;forms.belch.io&lt;/A&gt; | Design your own Beautiful HubSpot Forms; No coding necessary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Drop by and say Hi to me &lt;A href="http://slack.belch.io/" target="_blank"&gt;on slack&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 12:30:03 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-an-image-source-from-a-blog-post-s-banner-module-into-the/m-p/203015#M7760</guid>
      <dc:creator>tjoyce</dc:creator>
      <dc:date>2018-08-22T12:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Get an image source from a blog post's banner module into the listing template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-an-image-source-from-a-blog-post-s-banner-module-into-the/m-p/203023#M7763</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately it's not added to the module via HubL so I can't add in that attribute it seems, I've attached some screenshots. The image field is added to a custom module and it's then just displayed via HubL language. It's not implemented purely through HubL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So we have a custom module acting as a blog posts banner. We then wanted a method of uploading a thumbnail image to be used as a mobile version of the featured image as the desktop versions aren't suitable for the mobile layout due to featured images have a landscape orientation and no amount of positions or cropping will make those suitable for a 1;1 ratio square on mobile. So I implemented an additional 'mobile_thumb' field within the custom banner module. I was hoping we could pull the field from the custom module and display in the listing view.&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="Banner Module Template" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/11299iC6D8D3734DFECBF4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-08-22 at 13.40.17.png" alt="Banner Module Template" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Banner Module Template&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Image Field options" style="width: 439px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/11298iAB5D6A3980CD49C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-08-22 at 13.37.52.png" alt="Image Field options" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Image Field options&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 12:46:41 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-an-image-source-from-a-blog-post-s-banner-module-into-the/m-p/203023#M7763</guid>
      <dc:creator>benji_thecroc</dc:creator>
      <dc:date>2018-08-22T12:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Get an image source from a blog post's banner module into the listing template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-an-image-source-from-a-blog-post-s-banner-module-into-the/m-p/203025#M7764</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/54367"&gt;@benji_thecroc&lt;/a&gt;&amp;nbsp;- ahh, you can't really share context between modules. Your best bet is to bake the banner right into the blog template with HUBL instead of using the custom module.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 12:46:42 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-an-image-source-from-a-blog-post-s-banner-module-into-the/m-p/203025#M7764</guid>
      <dc:creator>tjoyce</dc:creator>
      <dc:date>2018-08-22T12:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get an image source from a blog post's banner module into the listing template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-an-image-source-from-a-blog-post-s-banner-module-into-the/m-p/203026#M7765</link>
      <description>&lt;P&gt;But the banner needs to have different images based on the blog post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All we really need is a way to upload a thumbnail to a blog post that isn't the featured image and only show that image on the listing template.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 12:48:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-an-image-source-from-a-blog-post-s-banner-module-into-the/m-p/203026#M7765</guid>
      <dc:creator>benji_thecroc</dc:creator>
      <dc:date>2018-08-22T12:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Get an image source from a blog post's banner module into the listing template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-an-image-source-from-a-blog-post-s-banner-module-into-the/m-p/203027#M7766</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/54367"&gt;@benji_thecroc&lt;/a&gt;&amp;nbsp;- Right, you can do that using the &lt;A href="https://designers.hubspot.com/docs/hubl/hubl-supported-tags#image-src" target="_self"&gt;image src HUBL tag&lt;/A&gt;. Put it right into your blog template code. Then read that value in your listing template.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a similar question with a solution I have to this question:&amp;nbsp;&lt;A href="https://community.hubspot.com/t5/Content-Design-Questions/Pulling-Article-Snippets/td-p/198249" target="_blank"&gt;https://community.hubspot.com/t5/Content-Design-Questions/Pulling-Article-Snippets/td-p/198249&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 12:53:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-an-image-source-from-a-blog-post-s-banner-module-into-the/m-p/203027#M7766</guid>
      <dc:creator>tjoyce</dc:creator>
      <dc:date>2018-08-22T12:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Get an image source from a blog post's banner module into the listing template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-an-image-source-from-a-blog-post-s-banner-module-into-the/m-p/203028#M7767</link>
      <description>&lt;P&gt;The blog post template is built using the template builder. I'm assuming I would I clone the template to HTML then add in the image src HUBL tag.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only issue I can see here is how would a user then add this image in when creating a post if this image is hidden/not viewable on the post page itself. This image is used purely for the post listing template but should be specific to each blog post.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 12:59:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-an-image-source-from-a-blog-post-s-banner-module-into-the/m-p/203028#M7767</guid>
      <dc:creator>benji_thecroc</dc:creator>
      <dc:date>2018-08-22T12:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get an image source from a blog post's banner module into the listing template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-an-image-source-from-a-blog-post-s-banner-module-into-the/m-p/203030#M7769</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/54367"&gt;@benji_thecroc&lt;/a&gt;&amp;nbsp;- You could actually add that HUBL code to the head or footer of your template and when the blog creator is creating a post, there will be a module in the left column where they can change this image.&lt;/P&gt;&lt;P&gt;Then, in your blog listing template, just add the extra info in the loop to find that HUBL widget data.&lt;/P&gt;&lt;P&gt;Hope that makes sense.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 13:05:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-an-image-source-from-a-blog-post-s-banner-module-into-the/m-p/203030#M7769</guid>
      <dc:creator>tjoyce</dc:creator>
      <dc:date>2018-08-22T13:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get an image source from a blog post's banner module into the listing template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-an-image-source-from-a-blog-post-s-banner-module-into-the/m-p/203031#M7770</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/2450"&gt;@tjoyce&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not to worry, I've checked out the related issue and that's put me on the right track. Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 13:06:14 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-an-image-source-from-a-blog-post-s-banner-module-into-the/m-p/203031#M7770</guid>
      <dc:creator>benji_thecroc</dc:creator>
      <dc:date>2018-08-22T13:06:14Z</dc:date>
    </item>
  </channel>
</rss>

