<?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 help with using module_block in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/help-with-using-module-block/m-p/724273#M31635</link>
    <description>&lt;P&gt;I tried looking for references in the docs but this is all I could find about it, no other documentation, no explanation on the parameters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{% module_block module "my_rich_text_module" path="/My Rich Text Field Module",
  label="My Rich Text Field Module" 
%}
    {% module_attribute "rich_text_field_variable" %}
       &amp;lt;div&amp;gt;My HTML block&amp;lt;/div&amp;gt;
    {% end_module_attribute %}
{% end_module_block %}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been using widget_block for a while, and I tried to get this new module_block to work but it wouldn't.&amp;nbsp; Is there any difference between using module_block, versus the traditional module&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/63720"&gt;@hubspot&lt;/a&gt;/rich_text?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Nov 2022 18:29:37 GMT</pubDate>
    <dc:creator>KajBob</dc:creator>
    <dc:date>2022-11-29T18:29:37Z</dc:date>
    <item>
      <title>help with using module_block</title>
      <link>https://community.hubspot.com/t5/CMS-Development/help-with-using-module-block/m-p/724273#M31635</link>
      <description>&lt;P&gt;I tried looking for references in the docs but this is all I could find about it, no other documentation, no explanation on the parameters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{% module_block module "my_rich_text_module" path="/My Rich Text Field Module",
  label="My Rich Text Field Module" 
%}
    {% module_attribute "rich_text_field_variable" %}
       &amp;lt;div&amp;gt;My HTML block&amp;lt;/div&amp;gt;
    {% end_module_attribute %}
{% end_module_block %}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been using widget_block for a while, and I tried to get this new module_block to work but it wouldn't.&amp;nbsp; Is there any difference between using module_block, versus the traditional module&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/63720"&gt;@hubspot&lt;/a&gt;/rich_text?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 18:29:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/help-with-using-module-block/m-p/724273#M31635</guid>
      <dc:creator>KajBob</dc:creator>
      <dc:date>2022-11-29T18:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: help with using module_block</title>
      <link>https://community.hubspot.com/t5/CMS-Development/help-with-using-module-block/m-p/724344#M31639</link>
      <description>&lt;P&gt;widget_block has been deprecated and module_block is basically just a version 2 of it. It uses the exact same code pattern as widget_block, only major difference to keep in mind is that the &lt;EM&gt;type_of_module&lt;/EM&gt; will usually never change from &lt;EM&gt;module&lt;/EM&gt; whereas in widget_block it would be things like &lt;EM&gt;rich_text&lt;/EM&gt; or &lt;EM&gt;raw_html&lt;/EM&gt;. You can read a slightly more in depth explination on that here -&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/cms/building-blocks/modules/using-modules-in-templates#block-syntax" target="_blank"&gt;https://developers.hubspot.com/docs/cms/building-blocks/modules/using-modules-in-templates#block-syntax&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code you've posted is more an example of if you're accessing a custom module.&amp;nbsp; You can still access default HubSpot modules with module_block same as you would with widget_block. That code would look something like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% module_block module "my_rich_text_module" path="@hubspot/rich_text.module", label="Rich Text" %}
    {% module_attribute "html" %}
        &amp;lt;div&amp;gt;My HTML block&amp;lt;/div&amp;gt;
    {% end_module_attribute %}
{% end_module_block %}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 20:41:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/help-with-using-module-block/m-p/724344#M31639</guid>
      <dc:creator>alyssamwilie</dc:creator>
      <dc:date>2022-11-29T20:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: help with using module_block</title>
      <link>https://community.hubspot.com/t5/CMS-Development/help-with-using-module-block/m-p/724367#M31643</link>
      <description>&lt;P&gt;thanks for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 21:24:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/help-with-using-module-block/m-p/724367#M31643</guid>
      <dc:creator>KajBob</dc:creator>
      <dc:date>2022-11-29T21:24:08Z</dc:date>
    </item>
  </channel>
</rss>

