<?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: Getting value of blog post custom variable on blog index in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Getting-value-of-blog-post-custom-variable-on-blog-index/m-p/161959#M4365</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/9030"&gt;@InciteJoe&lt;/a&gt;&amp;nbsp;got it! It looks like the post variable isn't set to export to template context = True (detailed information on this here:&amp;nbsp;&lt;A href="http://designers.hubspot.com/docs/hubl/export-to-template-context" target="_blank"&gt;http://designers.hubspot.com/docs/hubl/export-to-template-context&lt;/A&gt;). Try switching the post to:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{% text "landing-page-url" label="Landing Page URL", value="&lt;A href="http://www.google.com" target="_blank"&gt;www.google.com&lt;/A&gt;", export_to_template_context=True %}&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then on the listing page try this again:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{{ content.widgets.landing-page-url.body.value }}&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jan 2018 13:26:27 GMT</pubDate>
    <dc:creator>JasonRosa</dc:creator>
    <dc:date>2018-01-09T13:26:27Z</dc:date>
    <item>
      <title>Getting value of blog post custom variable on blog index</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Getting-value-of-blog-post-custom-variable-on-blog-index/m-p/147487#M4324</link>
      <description>&lt;P&gt;I have put a custom variable into a blog post template&lt;/P&gt;&lt;PRE&gt;{% text "landing-page-url" label='Landing Page URL', value='www.google.com' %}&lt;/PRE&gt;&lt;P&gt;And on the blog index page I am trying to get the value of the landing page set in the blog post.&lt;/P&gt;&lt;PRE&gt;&amp;lt;a class="cta-primary-outline" href="{{ widgets.landing-page-url.body.value }}"&amp;gt;Continue Reading&amp;lt;/a&amp;gt;&lt;/PRE&gt;&lt;P&gt;I have looked in the Developer Info tab and the landing-page-url is in here. Which is inside of contents.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-01-04 at 14.07.29.png" style="width: 297px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/7209i62967DE86274F557/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-01-04 at 14.07.29.png" alt="Screen Shot 2018-01-04 at 14.07.29.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I attempt to print the value it returns "0".&lt;/P&gt;&lt;P&gt;Any help would be appreciated&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 14:09:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Getting-value-of-blog-post-custom-variable-on-blog-index/m-p/147487#M4324</guid>
      <dc:creator>InciteJoe</dc:creator>
      <dc:date>2018-01-04T14:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Getting value of blog post custom variable on blog index</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Getting-value-of-blog-post-custom-variable-on-blog-index/m-p/150450#M4328</link>
      <description>&lt;P&gt;I'd try using {{ content.widgets.landing-page-url.body.value }} on the listing page and that should work. Let me know if you're having any trouble after trying that!&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 18:48:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Getting-value-of-blog-post-custom-variable-on-blog-index/m-p/150450#M4328</guid>
      <dc:creator>JasonRosa</dc:creator>
      <dc:date>2018-01-04T18:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Getting value of blog post custom variable on blog index</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Getting-value-of-blog-post-custom-variable-on-blog-index/m-p/161922#M4364</link>
      <description>&lt;P&gt;Thanks for your response Jason, it still seems to be returning 0 as the value&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 10:45:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Getting-value-of-blog-post-custom-variable-on-blog-index/m-p/161922#M4364</guid>
      <dc:creator>InciteJoe</dc:creator>
      <dc:date>2018-01-09T10:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Getting value of blog post custom variable on blog index</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Getting-value-of-blog-post-custom-variable-on-blog-index/m-p/161959#M4365</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/9030"&gt;@InciteJoe&lt;/a&gt;&amp;nbsp;got it! It looks like the post variable isn't set to export to template context = True (detailed information on this here:&amp;nbsp;&lt;A href="http://designers.hubspot.com/docs/hubl/export-to-template-context" target="_blank"&gt;http://designers.hubspot.com/docs/hubl/export-to-template-context&lt;/A&gt;). Try switching the post to:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{% text "landing-page-url" label="Landing Page URL", value="&lt;A href="http://www.google.com" target="_blank"&gt;www.google.com&lt;/A&gt;", export_to_template_context=True %}&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then on the listing page try this again:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{{ content.widgets.landing-page-url.body.value }}&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 13:26:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Getting-value-of-blog-post-custom-variable-on-blog-index/m-p/161959#M4365</guid>
      <dc:creator>JasonRosa</dc:creator>
      <dc:date>2018-01-09T13:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Getting value of blog post custom variable on blog index</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Getting-value-of-blog-post-custom-variable-on-blog-index/m-p/161979#M4366</link>
      <description>&lt;P&gt;Thanks! This makes a lot of sense&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 13:41:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Getting-value-of-blog-post-custom-variable-on-blog-index/m-p/161979#M4366</guid>
      <dc:creator>InciteJoe</dc:creator>
      <dc:date>2018-01-09T13:41:52Z</dc:date>
    </item>
  </channel>
</rss>

