<?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 Adding blog tag to recent blog Hubl module in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Adding-blog-tag-to-recent-blog-Hubl-module/m-p/223895#M2791</link>
    <description>&lt;P&gt;I'm trying to use Hubl to create a recent blog posts module, where the user can choose which tag/topic of blogs to show.&lt;/P&gt;
&lt;P&gt;I'm having trouble with the line below - if I simply type in the topic slug (eg. 'press-release') it works, but if I try and add a snippet for fields it doesn't work.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;{% set topic_posts = blog_recent_topic_posts('default', 'press-release', 3) %}&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;eg. the below doesn't work for me - however if I put {{ module.tag_field }} into &lt;CODE&gt;&amp;lt;p&amp;gt;&lt;/CODE&gt; it outputs the slug fine.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;{% set topic_posts = blog_recent_topic_posts('default', '{{ module.tag_field }}', 3) %}&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Any help greatly appreciated!&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jul 2018 11:46:53 GMT</pubDate>
    <dc:creator>simon2</dc:creator>
    <dc:date>2018-07-31T11:46:53Z</dc:date>
    <item>
      <title>Adding blog tag to recent blog Hubl module</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Adding-blog-tag-to-recent-blog-Hubl-module/m-p/223895#M2791</link>
      <description>&lt;P&gt;I'm trying to use Hubl to create a recent blog posts module, where the user can choose which tag/topic of blogs to show.&lt;/P&gt;
&lt;P&gt;I'm having trouble with the line below - if I simply type in the topic slug (eg. 'press-release') it works, but if I try and add a snippet for fields it doesn't work.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;{% set topic_posts = blog_recent_topic_posts('default', 'press-release', 3) %}&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;eg. the below doesn't work for me - however if I put {{ module.tag_field }} into &lt;CODE&gt;&amp;lt;p&amp;gt;&lt;/CODE&gt; it outputs the slug fine.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;{% set topic_posts = blog_recent_topic_posts('default', '{{ module.tag_field }}', 3) %}&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Any help greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 11:46:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Adding-blog-tag-to-recent-blog-Hubl-module/m-p/223895#M2791</guid>
      <dc:creator>simon2</dc:creator>
      <dc:date>2018-07-31T11:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Adding blog tag to recent blog Hubl module</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Adding-blog-tag-to-recent-blog-Hubl-module/m-p/223896#M2792</link>
      <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hubspot.com/u/simon"&gt;@simon&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;Are you getting any errors? Could you give me a link to an example page in HubSpot so that I can take a closer look?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Aug 2018 15:44:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Adding-blog-tag-to-recent-blog-Hubl-module/m-p/223896#M2792</guid>
      <dc:creator>Derek_Gervais</dc:creator>
      <dc:date>2018-08-03T15:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Adding blog tag to recent blog Hubl module</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Adding-blog-tag-to-recent-blog-Hubl-module/m-p/223897#M2793</link>
      <description>&lt;P&gt;Sure, thanks for helping. Here's the preview page but the HTML is not rendering for the blog images, links etc: &lt;A href="https://www.whiteoakuk.com/agriculture-tractor-asset-finance?hs_preview=jwdcNxej-6024505628" rel="nofollow noopener"&gt;https://www.whiteoakuk.com/agriculture-tractor-asset-finance?hs_preview=jwdcNxej-6024505628&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Pasting the full code in here doesnt seem to work so i've shared it here:&lt;BR /&gt;
&lt;A href="https://jsfiddle.net/uv70ynp3" class="onebox" target="_blank" rel="nofollow noopener"&gt;https://jsfiddle.net/uv70ynp3&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 09:25:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Adding-blog-tag-to-recent-blog-Hubl-module/m-p/223897#M2793</guid>
      <dc:creator>simon2</dc:creator>
      <dc:date>2018-08-15T09:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Adding blog tag to recent blog Hubl module</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Adding-blog-tag-to-recent-blog-Hubl-module/m-p/223898#M2794</link>
      <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hubspot.com/u/simon"&gt;@simon&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;So after testing a bit in my own portal, I was able to get a basic proof of concept working like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="lang-auto"&gt;{% set topic_posts = blog_recent_topic_posts('default', module.my_choice, 3) %}
{% for topic_post in topic_posts %}
&amp;lt;div&amp;gt;
    {{topic_post.name}}
&amp;lt;/div&amp;gt;
{% endfor %}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I think the issue you were encountering was due to the use of nested HubL statement delimiters (i.e. having {{}} inside of {%%}). Can you try removing the handlebars around &lt;CODE&gt;module.tag_field&lt;/CODE&gt;? I don't want to make changes to your templates/modules myself.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 22:37:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Adding-blog-tag-to-recent-blog-Hubl-module/m-p/223898#M2794</guid>
      <dc:creator>Derek_Gervais</dc:creator>
      <dc:date>2018-08-20T22:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Adding blog tag to recent blog Hubl module</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Adding-blog-tag-to-recent-blog-Hubl-module/m-p/223899#M2795</link>
      <description>&lt;P&gt;Thanks so much for this &lt;A class="mention" href="https://community.hubspot.com/u/derek_gervais"&gt;@Derek_Gervais&lt;/A&gt; - that's worked perfectly. &lt;IMG src="https://community.hubspot.com/legacyfs/online/emojis/twitter/+1.png?v=5" title=":+1:" class="emoji" alt=":+1:" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 13:16:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Adding-blog-tag-to-recent-blog-Hubl-module/m-p/223899#M2795</guid>
      <dc:creator>simon2</dc:creator>
      <dc:date>2018-08-21T13:16:23Z</dc:date>
    </item>
  </channel>
</rss>

