<?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 Export to template not working(?) in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Export-to-template-not-working/m-p/215617#M9524</link>
    <description>&lt;P&gt;Hi!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I've been trying to get the value from a text-field in a html-template into a &amp;lt;style&amp;gt;-tag. However when I try to retrieve the value I only get 0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;!--The text module I want to get value from.--&amp;gt;

{% text "background-opacity" label="Background Opacity", value="heihei" export_to_template_context=True %}


&amp;lt;!--How I'm trying to use the value--&amp;gt;
&amp;lt;style&amp;gt;
    	.header img{
       	opacity: {{ widget_data.background-opacity.value }} !important;
      }
    &amp;lt;/style&amp;gt;


&lt;/PRE&gt;&lt;P&gt;In inspect mode on .header img i get:&amp;nbsp;&lt;/P&gt;&lt;P&gt;opacity: 0 !important;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This happens no matter what I do. I've tried to put the value into a h1 tag as well. I only get a 0 then as well. It does'nt show up on the page in the h1 tag either. It's more like it's null and not 0.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Nov 2018 14:33:27 GMT</pubDate>
    <dc:creator>stinesandberg</dc:creator>
    <dc:date>2018-11-08T14:33:27Z</dc:date>
    <item>
      <title>Export to template not working(?)</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Export-to-template-not-working/m-p/215617#M9524</link>
      <description>&lt;P&gt;Hi!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I've been trying to get the value from a text-field in a html-template into a &amp;lt;style&amp;gt;-tag. However when I try to retrieve the value I only get 0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;!--The text module I want to get value from.--&amp;gt;

{% text "background-opacity" label="Background Opacity", value="heihei" export_to_template_context=True %}


&amp;lt;!--How I'm trying to use the value--&amp;gt;
&amp;lt;style&amp;gt;
    	.header img{
       	opacity: {{ widget_data.background-opacity.value }} !important;
      }
    &amp;lt;/style&amp;gt;


&lt;/PRE&gt;&lt;P&gt;In inspect mode on .header img i get:&amp;nbsp;&lt;/P&gt;&lt;P&gt;opacity: 0 !important;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This happens no matter what I do. I've tried to put the value into a h1 tag as well. I only get a 0 then as well. It does'nt show up on the page in the h1 tag either. It's more like it's null and not 0.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 14:33:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Export-to-template-not-working/m-p/215617#M9524</guid>
      <dc:creator>stinesandberg</dc:creator>
      <dc:date>2018-11-08T14:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Export to template not working(?)</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Export-to-template-not-working/m-p/215770#M9558</link>
      <description>&lt;P&gt;try to use Underscore on your widget name&lt;/P&gt;&lt;PRE&gt;{{ widget_data.background_opacity.value }}&lt;/PRE&gt;&lt;P&gt;or you can try to open the developer option and search for the name of your fields if it really exists in the first place.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Hope this works&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 01:17:46 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Export-to-template-not-working/m-p/215770#M9558</guid>
      <dc:creator>valerajoey</dc:creator>
      <dc:date>2018-11-09T01:17:46Z</dc:date>
    </item>
  </channel>
</rss>

