<?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: How to add button to custom HTML + HUBL module in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/How-to-add-button-to-custom-HTML-HUBL-module/m-p/577581#M27423</link>
    <description>&lt;P&gt;Just tested this in my portal (obviously lacking your styles other html) and it is working.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% for item in module.button %}
&amp;lt;button class="test"&amp;gt;
	{% set href = item.link_field.url.href %}
	{% if item.link_field.url.type is equalto "EMAIL_ADDRESS" %}
		{% set href = "mailto:" + href %}
	{% endif %}
	&amp;lt;a href="{{ href }}"
		{% if item.link_field.open_in_new_tab %}target="_blank"{% endif %}
		{% if item.link_field.rel %}rel="{{ item.link_field.rel }}"{% endif %}
		&amp;gt;
      {% inline_text field="text_field" value="{{ item.text_field }}" %}
	&amp;lt;/a&amp;gt;
&amp;lt;/button&amp;gt;
	
{% endfor %}&lt;/LI-CODE&gt;
&lt;P&gt;and here is a screengrab of the design manager with the fields on the right for reference &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Design_Manager___HubSpot.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/59722iD69261889A1C62F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Design_Manager___HubSpot.png" alt="Design_Manager___HubSpot.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Wed, 16 Feb 2022 19:15:28 GMT</pubDate>
    <dc:creator>dennisedson</dc:creator>
    <dc:date>2022-02-16T19:15:28Z</dc:date>
    <item>
      <title>How to add button to custom HTML + HUBL module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-add-button-to-custom-HTML-HUBL-module/m-p/335055#M16349</link>
      <description>&lt;P&gt;I am starting work on creating custom modules for a landing page that will reuse a certain layout quite a bit. The layout is fairly simple, a header, content, and button.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far I've been able to create the module, add the header and text section but for some reason I dont see&amp;nbsp; `button` as an option under Fields to add to the page. There is link and I guess I could style it as a button but wasnt sure if thats the right way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 15:53:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-add-button-to-custom-HTML-HUBL-module/m-p/335055#M16349</guid>
      <dc:creator>walkabout</dc:creator>
      <dc:date>2020-04-28T15:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to add button to custom HTML + HUBL module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-add-button-to-custom-HTML-HUBL-module/m-p/335078#M16351</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/129176"&gt;@walkabout&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's exactly how I would go about that - use a the link option in the module fields and your own HTML/CSS to create and style the actual button.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 16:19:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-add-button-to-custom-HTML-HUBL-module/m-p/335078#M16351</guid>
      <dc:creator>BenSBM</dc:creator>
      <dc:date>2020-04-28T16:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to add button to custom HTML + HUBL module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-add-button-to-custom-HTML-HUBL-module/m-p/335109#M16352</link>
      <description>&lt;P&gt;Thanks for the quick response, one other thing I noticed is when using the module I cannot change the link/button text. Shouldnt this be editable from the Drag and Drop custimization tool?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Heres a screenshot of options for link.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/s/7j0eovw8e94b5eg/Screenshot%202020-04-28%2013.36.09.png?dl=0" target="_blank"&gt;https://www.dropbox.com/s/7j0eovw8e94b5eg/Screenshot%202020-04-28%2013.36.09.png?dl=0&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 17:37:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-add-button-to-custom-HTML-HUBL-module/m-p/335109#M16352</guid>
      <dc:creator>walkabout</dc:creator>
      <dc:date>2020-04-28T17:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to add button to custom HTML + HUBL module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-add-button-to-custom-HTML-HUBL-module/m-p/335114#M16354</link>
      <description>&lt;P&gt;The link field is just for what content to link to - page, external URL, etc. To customize the actual button text, you would need an additional text field and insert that as your button text.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 17:44:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-add-button-to-custom-HTML-HUBL-module/m-p/335114#M16354</guid>
      <dc:creator>BenSBM</dc:creator>
      <dc:date>2020-04-28T17:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to add button to custom HTML + HUBL module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-add-button-to-custom-HTML-HUBL-module/m-p/576804#M27402</link>
      <description>&lt;P&gt;I am working on this issue right now and cannot figure out how to do this. This is what I have so far (but it isnt working):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SP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lt;SPAN&gt;button_text&lt;/SPAN&gt;&lt;SPAN&gt; }}"&lt;/SPAN&gt;&lt;SPAN&gt; %}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;a&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;button&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-02-15 at 3.50.56 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/59624iD6037EF84320B18E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-02-15 at 3.50.56 PM.png" alt="Screen Shot 2022-02-15 at 3.50.56 PM.png" /&gt;&lt;/span&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Any help/assistance would be greatly appreciated!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 15 Feb 2022 20:51:17 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-add-button-to-custom-HTML-HUBL-module/m-p/576804#M27402</guid>
      <dc:creator>bholsey</dc:creator>
      <dc:date>2022-02-15T20:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to add button to custom HTML + HUBL module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-add-button-to-custom-HTML-HUBL-module/m-p/577505#M27417</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/328244"&gt;@bholsey&lt;/a&gt; , any warnings or errors?&amp;nbsp; &lt;/P&gt;
&lt;P&gt;What is happening?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 18:09:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-add-button-to-custom-HTML-HUBL-module/m-p/577505#M27417</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2022-02-16T18:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to add button to custom HTML + HUBL module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-add-button-to-custom-HTML-HUBL-module/m-p/577560#M27422</link>
      <description>&lt;P&gt;No errors. Nothing renders on the page.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 18:56:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-add-button-to-custom-HTML-HUBL-module/m-p/577560#M27422</guid>
      <dc:creator>bholsey</dc:creator>
      <dc:date>2022-02-16T18:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to add button to custom HTML + HUBL module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-add-button-to-custom-HTML-HUBL-module/m-p/577581#M27423</link>
      <description>&lt;P&gt;Just tested this in my portal (obviously lacking your styles other html) and it is working.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% for item in module.button %}
&amp;lt;button class="test"&amp;gt;
	{% set href = item.link_field.url.href %}
	{% if item.link_field.url.type is equalto "EMAIL_ADDRESS" %}
		{% set href = "mailto:" + href %}
	{% endif %}
	&amp;lt;a href="{{ href }}"
		{% if item.link_field.open_in_new_tab %}target="_blank"{% endif %}
		{% if item.link_field.rel %}rel="{{ item.link_field.rel }}"{% endif %}
		&amp;gt;
      {% inline_text field="text_field" value="{{ item.text_field }}" %}
	&amp;lt;/a&amp;gt;
&amp;lt;/button&amp;gt;
	
{% endfor %}&lt;/LI-CODE&gt;
&lt;P&gt;and here is a screengrab of the design manager with the fields on the right for reference &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Design_Manager___HubSpot.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/59722iD69261889A1C62F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Design_Manager___HubSpot.png" alt="Design_Manager___HubSpot.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 19:15:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-add-button-to-custom-HTML-HUBL-module/m-p/577581#M27423</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2022-02-16T19:15:28Z</dc:date>
    </item>
  </channel>
</rss>

