<?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: Module color field issue in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Module-color-field-issue/m-p/601267#M28002</link>
    <description>&lt;P&gt;would you be willing to add the full for loop block?&lt;/P&gt;
&lt;P&gt;And if you are using the Design Manager, a screenshot of the Module Group with the repeater.&amp;nbsp; If you are using local dev, could you add the Module Repeater json.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the outside, your code looks good.&amp;nbsp; you could also try adding the &lt;STRONG&gt; {{ subject.border_clr.color }}&lt;/STRONG&gt; outside of the for loop and again, in the for loop outside of the style so it should print the value on the screen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hard to see all the details from the outside &lt;span class="lia-unicode-emoji" title=":winking_face_with_tongue:"&gt;😜&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Mar 2022 21:24:57 GMT</pubDate>
    <dc:creator>dennisedson</dc:creator>
    <dc:date>2022-03-24T21:24:57Z</dc:date>
    <item>
      <title>Module color field issue</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Module-color-field-issue/m-p/601236#M27997</link>
      <description>&lt;P&gt;I added a color field in a custom module so that the user could pick the border color.&amp;nbsp; However, it is not displaying the hex code selected in the rendered html.&lt;/P&gt;
&lt;P&gt;Within the html section of the module, I have the following inline style on a li element that's within a repeatable group-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;style="20px solid {{ item.border_clr.color }};"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get a warning that states "cannot resolve property 'color' in '{{ item.border_clr }}'&lt;/P&gt;
&lt;P&gt;I can't figure out what I am doing wrong. Any help would be appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Terry McMillan&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 20:50:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Module-color-field-issue/m-p/601236#M27997</guid>
      <dc:creator>tmcmillan99</dc:creator>
      <dc:date>2022-03-24T20:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Module color field issue</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Module-color-field-issue/m-p/601246#M27998</link>
      <description>&lt;P&gt;Resolved the warning but the color is still not rendering correctly. The previous developer has changed item to subject and I wasn't catching that.&lt;/P&gt;
&lt;P&gt;Needed to be -&amp;nbsp;&lt;SPAN&gt;{{ subject.border_clr.color }}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If I inspect the code, the color hex code is not being displayed.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 20:58:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Module-color-field-issue/m-p/601246#M27998</guid>
      <dc:creator>tmcmillan99</dc:creator>
      <dc:date>2022-03-24T20:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Module color field issue</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Module-color-field-issue/m-p/601259#M27999</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13203"&gt;@tmcmillan99&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;Can you post the full code?&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;style="20px solid {{ item.border_clr.color }};"&lt;/LI-CODE&gt;
&lt;P&gt;is not valid code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;should be&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;style=" border: 20px solid {{ item.border_clr.color }};"&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 24 Mar 2022 21:14:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Module-color-field-issue/m-p/601259#M27999</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2022-03-24T21:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Module color field issue</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Module-color-field-issue/m-p/601263#M28000</link>
      <description>&lt;P&gt;Hey Dennis-&lt;/P&gt;
&lt;P&gt;My bad. That's what I get for rushing the post. I should have copied/pasted the code. Here is the full line-&lt;/P&gt;
&lt;P&gt;&amp;lt;li class="w-full lg:w-5/12 p-8 mb-8 bg-white" style="border-left:20px solid {{ subject.border_clr.color }};"&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the rendered code-&lt;/P&gt;
&lt;P&gt;&amp;lt;li class="w-full lg:w-5/12 p-8 mb-8 bg-white" style="border-left:20px solid ;"&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Terry&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 21:19:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Module-color-field-issue/m-p/601263#M28000</guid>
      <dc:creator>tmcmillan99</dc:creator>
      <dc:date>2022-03-24T21:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Module color field issue</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Module-color-field-issue/m-p/601265#M28001</link>
      <description>&lt;P&gt;One other note...a 20px border is being displayed even though there's no hex code. It's defaulting to black.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 21:22:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Module-color-field-issue/m-p/601265#M28001</guid>
      <dc:creator>tmcmillan99</dc:creator>
      <dc:date>2022-03-24T21:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Module color field issue</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Module-color-field-issue/m-p/601267#M28002</link>
      <description>&lt;P&gt;would you be willing to add the full for loop block?&lt;/P&gt;
&lt;P&gt;And if you are using the Design Manager, a screenshot of the Module Group with the repeater.&amp;nbsp; If you are using local dev, could you add the Module Repeater json.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the outside, your code looks good.&amp;nbsp; you could also try adding the &lt;STRONG&gt; {{ subject.border_clr.color }}&lt;/STRONG&gt; outside of the for loop and again, in the for loop outside of the style so it should print the value on the screen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hard to see all the details from the outside &lt;span class="lia-unicode-emoji" title=":winking_face_with_tongue:"&gt;😜&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 21:24:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Module-color-field-issue/m-p/601267#M28002</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2022-03-24T21:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Module color field issue</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Module-color-field-issue/m-p/601281#M28003</link>
      <description>&lt;P&gt;I did a |pprint outside the loop and it comes back with "null".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the for loop code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;  &amp;lt;ul class="list-none w-full md:w-9/12 mx-auto flex flex-row flex-wrap justify-between"&amp;gt;
    {% for subject in module.subjects %}
      &amp;lt;li class="w-full lg:w-5/12 p-8 mb-8 bg-white" style="border-left:20px solid {{ subject.border_clr.color }};"&amp;gt;
        &amp;lt;a class="p-2" href="{{ subject.subject_link }}"&amp;gt;
          &amp;lt;div class="flex flex-col pl-8 pr-4"&amp;gt;
            &amp;lt;div class="subject text-xl font-normal flex flex-row items-center pb-1"&amp;gt;
              {{ subject.subject_name }}
            &amp;lt;/div&amp;gt;
            &amp;lt;p class="text-sm font-medium text-gray-500 py-4"&amp;gt;
              {{ subject.subject_description }}
            &amp;lt;/p&amp;gt;
            &amp;lt;div class="link-text pt-4 flex flex-row items-center"&amp;gt;
              {{ subject.link_text }} &amp;lt;span class="material-icons" style="color:#02ACD6;margin-left:10px;font-size:18px;"&amp;gt;arrow_circle_right&amp;lt;/span&amp;gt;
            &amp;lt;/div&amp;gt;
          &amp;lt;/div&amp;gt;
        &amp;lt;/a&amp;gt;
      &amp;lt;/li&amp;gt;
    {% endfor %}
  &amp;lt;/ul&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tmcmillan99_0-1648157597839.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/62526i5F20B1347B43006A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tmcmillan99_0-1648157597839.png" alt="tmcmillan99_0-1648157597839.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Let me know if I am missing anything you requested.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Terry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 21:39:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Module-color-field-issue/m-p/601281#M28003</guid>
      <dc:creator>tmcmillan99</dc:creator>
      <dc:date>2022-03-24T21:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Module color field issue</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Module-color-field-issue/m-p/601633#M28016</link>
      <description>&lt;P&gt;Update - This issue is resolved now. Not sure what caused it to start working except maybe getting the warning corrected and some trial and error. Once I rekeyed the colors on the edit page, it started working.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 13:55:02 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Module-color-field-issue/m-p/601633#M28016</guid>
      <dc:creator>tmcmillan99</dc:creator>
      <dc:date>2022-03-25T13:55:02Z</dc:date>
    </item>
  </channel>
</rss>

