<?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: Show Customized CTA on Specific Blog Post in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Show-Customized-CTA-on-Specific-Blog-Post/m-p/223748#M2644</link>
    <description>&lt;P&gt;Whoops! That's my fault &lt;A class="mention" href="https://community.hubspot.com/u/marj_martinez"&gt;@Marj_Martinez&lt;/A&gt; - I assumed you were within the blog contents object already. Heeding my own advice, I took a look at the developer info and found you do not need to specify the content object. Here's what your if statement should look like:&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;{% if slug == "9-unique-event-spaces-in-singapore" %}&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;Everything else should stay the same.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Nov 2018 15:37:30 GMT</pubDate>
    <dc:creator>cbarley</dc:creator>
    <dc:date>2018-11-05T15:37:30Z</dc:date>
    <item>
      <title>Show Customized CTA on Specific Blog Post</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Show-Customized-CTA-on-Specific-Blog-Post/m-p/223745#M2641</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;
&lt;P&gt;I'm new on the Hubspot Technology and I have this task, I need to show the customize CTA that I made on the specific blog post. But I'm having a problem doing it. I tried to use the Hubtl Tags but It's not working maybe because I'm using it wrong,&lt;/P&gt;
&lt;P&gt;You can see the attached image I made. I hope you guys can help me.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;A class="lightbox" href="https://community.hubspot.com/legacyfs/online/uploads/default/original/2X/6/6e3c3a17077c1ec67a0e5525a18edab4db885898.png" data-download-href="/legacyfs/online/uploads/default/6e3c3a17077c1ec67a0e5525a18edab4db885898" title="screenshot-app.hubspot.com-2018.10.31-15-31-09.png" rel="nofollow noopener"&gt;&lt;IMG src="https://community.hubspot.com/legacyfs/online/uploads/default/original/2X/6/6e3c3a17077c1ec67a0e5525a18edab4db885898.png" alt="31-15-31-09" width="690" height="227" /&gt;&lt;DIV class="meta"&gt;
&lt;SPAN class="filename"&gt;screenshot-app.hubspot.com-2018.10.31-15-31-09.png&lt;/SPAN&gt;&lt;SPAN class="informations"&gt;858x283 82.9 KB&lt;/SPAN&gt;&lt;SPAN class="expand"&gt;&lt;/SPAN&gt;
&lt;/DIV&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 07:32:46 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Show-Customized-CTA-on-Specific-Blog-Post/m-p/223745#M2641</guid>
      <dc:creator>marjmartinez</dc:creator>
      <dc:date>2018-10-31T07:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Show Customized CTA on Specific Blog Post</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Show-Customized-CTA-on-Specific-Blog-Post/m-p/223746#M2642</link>
      <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hubspot.com/u/marj_martinez"&gt;@Marj_Martinez&lt;/A&gt;, one thing I'd highly recommend checking out is the &lt;A href="https://designers.hubspot.com/docs/hubl/how-to-use-developer-info-on-cos-pages"&gt;Developer Info&lt;/A&gt; you can access on any HubSpot hosted page whose portal you're a user in. Just click on the Sprocket icon in the top right corner of any page and go to "Developer Info". This will show you a JSON representation of the page, and you can use the objects you find in the dev info to create conditional logic or print out certain values.&lt;/P&gt;
&lt;P&gt;In your case, you may want to try using &lt;CODE&gt;content.slug&lt;/CODE&gt; to show the CTA only on that one blog post. It would be something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;{% if content.slug = "9-unique-event-spaces-in-singapore" %}

// do something

{% endif %}&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 Oct 2018 16:54:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Show-Customized-CTA-on-Specific-Blog-Post/m-p/223746#M2642</guid>
      <dc:creator>cbarley</dc:creator>
      <dc:date>2018-10-31T16:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Show Customized CTA on Specific Blog Post</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Show-Customized-CTA-on-Specific-Blog-Post/m-p/223747#M2643</link>
      <description>&lt;ASIDE class="quote group-HubSpotters" data-post="3" data-topic="13728"&gt;
&lt;DIV class="title"&gt;
&lt;DIV class="quote-controls"&gt;&lt;/DIV&gt;
&lt;IMG alt="" width="20" height="20" src="https://discourse-cdn-sjc1.com/hubspot/user_avatar/integrate.hubspot.com/connor_barley/40/1471_1.png" class="avatar" /&gt; Connor_Barley:&lt;/DIV&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;content.slug&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/ASIDE&gt;
&lt;P&gt;Hi Connor,&lt;/P&gt;
&lt;P&gt;Thanks for reply and suggestion. but I tried it and it's throwing some error on my end  &lt;EM&gt;see the image attached&lt;/EM&gt;  I hope you can help me.&lt;/P&gt;
&lt;P&gt;The error says:&lt;/P&gt;
&lt;OL start="2"&gt;
&lt;LI&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Error:Syntax error in " content.slug = &amp;amp;quot;9-unique-event-spaces-in-singapore&amp;amp;quot; "&lt;/P&gt;
&lt;P&gt;warning3.&lt;/P&gt;
&lt;P&gt;Error: &lt;CODE&gt;10:0&lt;/CODE&gt; &lt;CODE&gt;TemplateSyntaxException: Expected IDENTIFIER, found . slug&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;A class="lightbox" href="https://community.hubspot.com/legacyfs/online/uploads/default/original/2X/f/f7bf2afd901107e6c7752f86a933b0a51c7f14f4.png" data-download-href="/legacyfs/online/uploads/default/f7bf2afd901107e6c7752f86a933b0a51c7f14f4" title="hubl.PNG" rel="nofollow noopener"&gt;&lt;IMG src="https://community.hubspot.com/legacyfs/online/uploads/default/original/2X/f/f7bf2afd901107e6c7752f86a933b0a51c7f14f4.png" alt="hubl" width="690" height="248" /&gt;&lt;DIV class="meta"&gt;
&lt;SPAN class="filename"&gt;hubl.PNG&lt;/SPAN&gt;&lt;SPAN class="informations"&gt;945x340 34.7 KB&lt;/SPAN&gt;&lt;SPAN class="expand"&gt;&lt;/SPAN&gt;
&lt;/DIV&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 07:24:26 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Show-Customized-CTA-on-Specific-Blog-Post/m-p/223747#M2643</guid>
      <dc:creator>marjmartinez</dc:creator>
      <dc:date>2018-11-05T07:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Show Customized CTA on Specific Blog Post</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Show-Customized-CTA-on-Specific-Blog-Post/m-p/223748#M2644</link>
      <description>&lt;P&gt;Whoops! That's my fault &lt;A class="mention" href="https://community.hubspot.com/u/marj_martinez"&gt;@Marj_Martinez&lt;/A&gt; - I assumed you were within the blog contents object already. Heeding my own advice, I took a look at the developer info and found you do not need to specify the content object. Here's what your if statement should look like:&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;{% if slug == "9-unique-event-spaces-in-singapore" %}&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;Everything else should stay the same.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 15:37:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Show-Customized-CTA-on-Specific-Blog-Post/m-p/223748#M2644</guid>
      <dc:creator>cbarley</dc:creator>
      <dc:date>2018-11-05T15:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Show Customized CTA on Specific Blog Post</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Show-Customized-CTA-on-Specific-Blog-Post/m-p/1059917#M77645</link>
      <description>&lt;P&gt;I know this is an old post, but in case someone finds it, looking for help with the error "Expected IDENTIFIER, found . " -- it's likely because the HubL code is wrongly attempting to assign, not evaluate.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Line in red above should be {% if content.slug == '9-......&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 15:19:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Show-Customized-CTA-on-Specific-Blog-Post/m-p/1059917#M77645</guid>
      <dc:creator>melindagreen</dc:creator>
      <dc:date>2024-10-24T15:19:38Z</dc:date>
    </item>
  </channel>
</rss>

