<?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: Default value with custom module in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Default-value-with-custom-module/m-p/260097#M11530</link>
    <description>&lt;P&gt;Thank you. Resolved with that.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Mar 2019 01:40:31 GMT</pubDate>
    <dc:creator>spacee</dc:creator>
    <dc:date>2019-03-20T01:40:31Z</dc:date>
    <item>
      <title>Default value with custom module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Default-value-with-custom-module/m-p/259840#M11516</link>
      <description>&lt;P&gt;I made custom module on Design manager. It uses contact property and replace with default value property is not set (blank). Tried 2 implementation case but could not work.&lt;/P&gt;&lt;P&gt;output of code is blank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;case 1&lt;/P&gt;&lt;PRE&gt;       &amp;lt;td style="width: 50%; padding-right: 14px; text-align: left; font-size: 12px; padding-bottom: 30px; line-height: 1.5em;" valign=top class="k-480-col mk-padding"&amp;gt;
         &amp;lt;a href="{{ contact.booking_recomended_listing_1_url|default('example.com') }}"&amp;gt;
           &amp;lt;img src="{{ contact.booking_recomended_listing_1_image|default('example.jpg', true) }}" style="width: 296px; height: 180; object-fit: contain; border: none;" width="{{ widget.image_left.width }}"  alt="{{ widget.image_left.alt }}"&amp;gt;
           &amp;lt;h2 style="font-size: 14px; margin-top: 15px;"&amp;gt;{{ contact.booking_recomended_listing_1_name|default('example name', true) }}&amp;lt;/h2&amp;gt;  
           {{ contact.booking_recomended_listing_1_access|default('example text', true) }}  
         &amp;lt;/a&amp;gt;
      &amp;lt;/td&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;case 2&lt;/P&gt;&lt;PRE&gt;         &amp;lt;td style="width: 50%; padding-left: 14px; text-align: left; font-size: 12px; padding-bottom: 30px; line-height: 1.5em;" valign=top class="k-480-col k-480-padding"&amp;gt;
        {% if contact.booking_recomended_listing_2_url != "CONTACT.BOOKING_RECOMENDED_LISTING_2_URL" %}
        &amp;lt;a href="{{contact.booking_recomended_listing_2_url}}"&amp;gt;
          &amp;lt;img src="{{contact.booking_recomended_listing_2_image}}" style="width: 296px; height: 180; object-fit: contain; border: none;" width="{{ widget.image_left.width }}"  alt="{{ widget.image_right.alt }}"&amp;gt;
        &amp;lt;/a&amp;gt;
        &amp;lt;h2 style="font-size: 14px; margin-top: 15px;"&amp;gt;&amp;lt;a href="{{contact.booking_recomended_listing_1_url}}"&amp;gt;{{ contact.booking_recomended_listing_2_name }}&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt;  
        {{ contact.booking_recomended_listing_2_access }}
        {% else %}
        &amp;lt;a href="example.com"&amp;gt;
          &amp;lt;img src="example.JPG" style="width: 296px; height: 180; object-fit: contain; border: none;" width="{{ widget.image_left.width }}"  alt="{{ widget.image_left.alt }}"&amp;gt;
        &amp;lt;/a&amp;gt;
        &amp;lt;h2 style="font-size: 14px; margin-top: 15px;"&amp;gt;&amp;lt;a href="example.com"&amp;gt;example name&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt;
        example text
        {% endif %}
      &amp;lt;/td&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 02:57:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Default-value-with-custom-module/m-p/259840#M11516</guid>
      <dc:creator>spacee</dc:creator>
      <dc:date>2019-03-19T02:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Default value with custom module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Default-value-with-custom-module/m-p/260037#M11525</link>
      <description>&lt;P&gt;Hey there!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you're dealing with contact properties, I think your best best is to set up personalization token defaults rather than setting defaults in the HubL markup&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an knowledge base article that will walk you through setting those up:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://knowledge.hubspot.com/articles/kcs_article/email/how-do-i-create-default-values-for-my-personalization-tokens" target="_blank"&gt;https://knowledge.hubspot.com/articles/kcs_article/email/how-do-i-create-default-values-for-my-personalization-tokens&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 20:55:43 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Default-value-with-custom-module/m-p/260037#M11525</guid>
      <dc:creator>DaniellePeters</dc:creator>
      <dc:date>2019-03-19T20:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Default value with custom module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Default-value-with-custom-module/m-p/260097#M11530</link>
      <description>&lt;P&gt;Thank you. Resolved with that.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 01:40:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Default-value-with-custom-module/m-p/260097#M11530</guid>
      <dc:creator>spacee</dc:creator>
      <dc:date>2019-03-20T01:40:31Z</dc:date>
    </item>
  </channel>
</rss>

