<?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: Can i use values of fields in custom module to customize css file out of module? in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Can-i-use-values-of-fields-in-custom-module-to-customize-css/m-p/305139#M14482</link>
    <description>&lt;P&gt;You can't even add custom module values into the styles section of the custom module itself so I don't think&amp;nbsp;it's possible to add custom modules values into a stylesheet either. Hubl in a stylesheet is rendered and minified once the sheet is published so it wouldn't be able to grab variables from the template.&lt;BR /&gt;&lt;BR /&gt;The best we can do is limit the customization and just create classes in the module based on the options. (Ex: a choice field named bacground_color with 'dark, light, alpha, beta, etc' and in the HTML of the module put :&lt;BR /&gt;class="background-{{ module.background_color }}")&lt;BR /&gt;&lt;BR /&gt;Alyssa Wilie&lt;BR /&gt;&lt;EM&gt;Web Developer&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LyntonWeb&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Dec 2019 23:16:15 GMT</pubDate>
    <dc:creator>alyssamwilie</dc:creator>
    <dc:date>2019-12-02T23:16:15Z</dc:date>
    <item>
      <title>Can i use values of fields in custom module to customize css file out of module?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-i-use-values-of-fields-in-custom-module-to-customize-css/m-p/304849#M14461</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I create my custom modules with fields customizating the inline style of this modules.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But not is good insert inline styles for each customization i will create in my module.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is possible i use the value of one field in custom module to customization my stylesheet out of the module,&amp;nbsp;so not including CSS sheets and inline CSS to each module?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 18:18:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-i-use-values-of-fields-in-custom-module-to-customize-css/m-p/304849#M14461</guid>
      <dc:creator>DanielSanchez</dc:creator>
      <dc:date>2019-11-29T18:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can i use values of fields in custom module to customize css file out of module?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-i-use-values-of-fields-in-custom-module-to-customize-css/m-p/304975#M14468</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/76319"&gt;@DanielSanchez&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will tag a few devs that can share with you some tips about this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/91608"&gt;@alyssamwilie&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/6365"&gt;@Jon_McLaren&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/103583"&gt;@AlexanderData&lt;/a&gt;&amp;nbsp;could you please advise&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/76319"&gt;@DanielSanchez&lt;/a&gt;&amp;nbsp;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;Happy Monday&lt;/P&gt;
&lt;P&gt;Sharon&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2019 11:26:46 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-i-use-values-of-fields-in-custom-module-to-customize-css/m-p/304975#M14468</guid>
      <dc:creator>sharonlicari</dc:creator>
      <dc:date>2019-12-02T11:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can i use values of fields in custom module to customize css file out of module?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-i-use-values-of-fields-in-custom-module-to-customize-css/m-p/305139#M14482</link>
      <description>&lt;P&gt;You can't even add custom module values into the styles section of the custom module itself so I don't think&amp;nbsp;it's possible to add custom modules values into a stylesheet either. Hubl in a stylesheet is rendered and minified once the sheet is published so it wouldn't be able to grab variables from the template.&lt;BR /&gt;&lt;BR /&gt;The best we can do is limit the customization and just create classes in the module based on the options. (Ex: a choice field named bacground_color with 'dark, light, alpha, beta, etc' and in the HTML of the module put :&lt;BR /&gt;class="background-{{ module.background_color }}")&lt;BR /&gt;&lt;BR /&gt;Alyssa Wilie&lt;BR /&gt;&lt;EM&gt;Web Developer&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LyntonWeb&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2019 23:16:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-i-use-values-of-fields-in-custom-module-to-customize-css/m-p/305139#M14482</guid>
      <dc:creator>alyssamwilie</dc:creator>
      <dc:date>2019-12-02T23:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can i use values of fields in custom module to customize css file out of module?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-i-use-values-of-fields-in-custom-module-to-customize-css/m-p/305161#M14486</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/91608"&gt;@alyssamwilie&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Really a great idea !! Use fields to create classes instead of customizing. Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 02:29:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-i-use-values-of-fields-in-custom-module-to-customize-css/m-p/305161#M14486</guid>
      <dc:creator>DanielSanchez</dc:creator>
      <dc:date>2019-12-03T02:29:58Z</dc:date>
    </item>
  </channel>
</rss>

