<?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 for Email Table with HREF not working with Link or URL Fields in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Module-for-Email-Table-with-HREF-not-working-with-Link-or-URL/m-p/841313#M35631</link>
    <description>&lt;P&gt;Thank you, this helped me figure out that snippet piece I was editing wrong!&lt;/P&gt;</description>
    <pubDate>Mon, 28 Aug 2023 18:25:58 GMT</pubDate>
    <dc:creator>MMcLellan</dc:creator>
    <dc:date>2023-08-28T18:25:58Z</dc:date>
    <item>
      <title>Module for Email Table with HREF not working with Link or URL Fields</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Module-for-Email-Table-with-HREF-not-working-with-Link-or-URL/m-p/804958#M34832</link>
      <description>&lt;P&gt;Not sure what I'm going wrong, but I've got a simple HTML block module to create an event table that I want to drop into an email. I will re-use this with other marketers so wanted to create it as editable using fields. I created the field for the event date, name, and URL, and used those fields in the module but when I check my module preview -- the date and name work, but the href link just gives me an error each time, like its not pullin in the URL from the field I created?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CODE:&lt;/P&gt;&lt;P&gt;&amp;lt;table role="presentation" border="1" style width="90%" style="margin-left: auto; margin-right: auto"&amp;gt;&lt;BR /&gt;&amp;lt;th style="width:40%"&amp;gt;Date of Event&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;lt;th style="width:50%"&amp;gt;Event Name/Info&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;lt;tr&amp;gt;&lt;BR /&gt;&amp;lt;td style="padding: 8px";&amp;gt;{{ module.event_1.event_1_date }}&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;td style="padding: 8px";&amp;gt;&amp;lt;a href="{{ module.event_1.link_field }}"&amp;gt;{{ module.event_1.event_1 }}&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;/tr&amp;gt;&lt;BR /&gt;&amp;lt;tr&amp;gt;&lt;BR /&gt;&amp;lt;td style="padding: 8px";&amp;gt;Date 2&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;td style="padding: 8px";&amp;gt;Event with Link 2&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;/tr&amp;gt;&lt;BR /&gt;&amp;lt;td style="padding: 8px";&amp;gt;Date 3&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;td style="padding: 8px";&amp;gt;Event with Link&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;/table&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 23:47:54 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Module-for-Email-Table-with-HREF-not-working-with-Link-or-URL/m-p/804958#M34832</guid>
      <dc:creator>MMcLellan</dc:creator>
      <dc:date>2023-06-08T23:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Module for Email Table with HREF not working with Link or URL Fields</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Module-for-Email-Table-with-HREF-not-working-with-Link-or-URL/m-p/805180#M34833</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/567074"&gt;@MMcLellan&lt;/a&gt;&amp;nbsp;It looks like you're using field values for the urls. "even_1.event_1_date" are pulling from these. Just to verify, do you have these fields set up on the right panel within the design manager?&lt;BR /&gt;If so, do the snippets you've added in here exactly match the titles within the fields you've set?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, have you set a default value or a value for these fields? What is the output HTML you're seeing from this module?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 11:50:43 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Module-for-Email-Table-with-HREF-not-working-with-Link-or-URL/m-p/805180#M34833</guid>
      <dc:creator>TomM2</dc:creator>
      <dc:date>2023-06-09T11:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Module for Email Table with HREF not working with Link or URL Fields</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Module-for-Email-Table-with-HREF-not-working-with-Link-or-URL/m-p/805240#M34834</link>
      <description>&lt;P&gt;If you're using the &lt;STRONG&gt;URL&lt;/STRONG&gt; field then you would need to add .href to the end of the value to get the link.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;module.event_1.link_field.href&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're using the&amp;nbsp;&lt;STRONG&gt;Link&amp;nbsp;&lt;/STRONG&gt;field you would add .url.href to the end of the value to get the link.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;module.event_1.link_field.url.href&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can click the "Copy" dropdown inside a field and select "Copy Snippet" to get the exact snippet needed to render the field data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="copy-snippet.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/92599iEBB00A0322ADDFF8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="copy-snippet.png" alt="copy-snippet.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 12:55:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Module-for-Email-Table-with-HREF-not-working-with-Link-or-URL/m-p/805240#M34834</guid>
      <dc:creator>alyssamwilie</dc:creator>
      <dc:date>2023-06-09T12:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Module for Email Table with HREF not working with Link or URL Fields</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Module-for-Email-Table-with-HREF-not-working-with-Link-or-URL/m-p/841313#M35631</link>
      <description>&lt;P&gt;Thank you, this helped me figure out that snippet piece I was editing wrong!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 18:25:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Module-for-Email-Table-with-HREF-not-working-with-Link-or-URL/m-p/841313#M35631</guid>
      <dc:creator>MMcLellan</dc:creator>
      <dc:date>2023-08-28T18:25:58Z</dc:date>
    </item>
  </channel>
</rss>

