<?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 Create Layout of image , text section on Adjacent sides using Dnd areas blockbody. in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/How-to-Create-Layout-of-image-text-section-on-Adjacent-sides/m-p/1037513#M40578</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/807214"&gt;@ShyamVikaas&lt;/a&gt;,&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;create a custom module&lt;/LI&gt;
&lt;LI&gt;write your desired HTML layout with the tailwind classes you like to use&lt;/LI&gt;
&lt;LI&gt;add following fields
&lt;OL&gt;
&lt;LI&gt;image field&lt;/LI&gt;
&lt;LI&gt;text field&lt;/LI&gt;
&lt;LI&gt;(rich-)text fiel&lt;/LI&gt;
&lt;/OL&gt;
to it&lt;/LI&gt;
&lt;LI&gt;add the fields to the layout&lt;/LI&gt;
&lt;LI&gt;save/publish the module&lt;/LI&gt;
&lt;LI&gt;replace the whole dnd-layout in your template with this one module&lt;/LI&gt;
&lt;LI&gt;done&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for styling you have "unlimited" options.&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;wrapping the whole module code in a div with a class and add your custom styling to an already existing CSS file which is getting loaded&lt;/LI&gt;
&lt;LI&gt;add static CSS to the module.css&lt;/LI&gt;
&lt;LI&gt;add static CSS to the module.html wrapped inside &lt;A href="https://developers.hubspot.com/beta-docs/reference/cms/modules/files#require_css-block" target="_blank" rel="noopener"&gt;a {% require_css %} function&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;add styling fields to the module fields and add them inside &lt;A href="https://developers.hubspot.com/beta-docs/guides/cms/content/fields/overview#generated-css" target="_blank" rel="noopener"&gt;a {% scope_css %} function&lt;/A&gt; in the module.html&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Use booleans to toggle between classes&lt;/LI&gt;
&lt;LI&gt;Use choices to switch between classes&lt;/LI&gt;
&lt;LI&gt;...&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anton&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Sep 2024 12:57:55 GMT</pubDate>
    <dc:creator>Anton</dc:creator>
    <dc:date>2024-09-06T12:57:55Z</dc:date>
    <item>
      <title>How to Create Layout of image , text section on Adjacent sides using Dnd areas blockbody.</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-Create-Layout-of-image-text-section-on-Adjacent-sides/m-p/1036719#M40558</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;My sole intention is to create a layout of image , text inside a section which should be editable in Hubspot Website Pages from CLI Boilplate code. Seeking right approach to style this modules of image, text. if Tailwind is applicable to Style this HUBL Dnd_module. Hope I will be Happy to do so&lt;/P&gt;&lt;P&gt;Thanks in Advance&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;Shyam Vikaas D&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 05:02:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-Create-Layout-of-image-text-section-on-Adjacent-sides/m-p/1036719#M40558</guid>
      <dc:creator>ShyamVikaas</dc:creator>
      <dc:date>2024-09-05T05:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to Create Layout of image , text section on Adjacent sides using Dnd areas blockbody.</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-Create-Layout-of-image-text-section-on-Adjacent-sides/m-p/1036743#M40560</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/807214"&gt;@ShyamVikaas&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can create a section template or a custom module for this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Section templates look something like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;!--
 templateType: section
 label: My saved section
 description: Lorem ipsum
 isAvailableForNewContent: true
--&amp;gt;
{% dnd_section, class="first-cssClass second-cssClass" %}
{# your section layout goes here #}
{% end_dnd_section %}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;a custom module layout with an image,(rich-)text option and a "should the image be on the left or on the right" option could look something like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;div class="myModule-wrapper"&amp;gt;
   {% if module.image_position == "left" %}
   &amp;lt;div class="leftArea image-wrapper"&amp;gt;
      {% if module.image.src %}
         &amp;lt;img src="{{ module.image.src }}" alt="{{ module.image.alt }}" class="image-class"&amp;gt;
      {% endif %}
   &amp;lt;/div&amp;gt;
   &amp;lt;div class="rightArea text-wrapper"&amp;gt;
      {{ module.custom_text }}
   &amp;lt;/div&amp;gt;
   {% else %}
   &amp;lt;div class="leftArea image-wrapper"&amp;gt;
      {{ module.custom_text }}
   &amp;lt;/div&amp;gt;
   &amp;lt;div class="rightArea text-wrapper"&amp;gt;
      {% if module.image.src %}
         &amp;lt;img src="{{ module.image.src }}" alt="{{ module.image.alt }}" class="image-class"&amp;gt;
      {% endif %}
   &amp;lt;/div&amp;gt;
   {% endif %}
&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are some more information about sections and modules:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://developers.hubspot.com/beta-docs/guides/cms/content/templates/drag-and-drop/sections#section-template-files" target="_blank" rel="noopener"&gt;reusable sections&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://developers.hubspot.com/beta-docs/reference/cms/modules/configuration" target="_blank" rel="noopener"&gt;(custom) module configuration&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;My personal recommendation would be to go with the custom module approach since it will give you more flexibility but it has some drawbacks since modules are considered the smallest possible element for dnd. Therefore they don't support dnd(you can't place other dnd elements inside of them) and you can use them only in columns, sections and rows but not the other way round - unless you recreate the layout and functionality inside the module.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anton&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 06:38:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-Create-Layout-of-image-text-section-on-Adjacent-sides/m-p/1036743#M40560</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2024-09-05T06:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to Create Layout of image , text section on Adjacent sides using Dnd areas blockbody.</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-Create-Layout-of-image-text-section-on-Adjacent-sides/m-p/1036747#M40561</link>
      <description>&lt;P&gt;How to implement the tailwind css to it and what will be the right approach for styling&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HUbl.PNG" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/126291i123A96CF81030897/image-size/large?v=v2&amp;amp;px=999" role="button" title="HUbl.PNG" alt="HUbl.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 06:47:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-Create-Layout-of-image-text-section-on-Adjacent-sides/m-p/1036747#M40561</guid>
      <dc:creator>ShyamVikaas</dc:creator>
      <dc:date>2024-09-05T06:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to Create Layout of image , text section on Adjacent sides using Dnd areas blockbody.</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-Create-Layout-of-image-text-section-on-Adjacent-sides/m-p/1037513#M40578</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/807214"&gt;@ShyamVikaas&lt;/a&gt;,&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;create a custom module&lt;/LI&gt;
&lt;LI&gt;write your desired HTML layout with the tailwind classes you like to use&lt;/LI&gt;
&lt;LI&gt;add following fields
&lt;OL&gt;
&lt;LI&gt;image field&lt;/LI&gt;
&lt;LI&gt;text field&lt;/LI&gt;
&lt;LI&gt;(rich-)text fiel&lt;/LI&gt;
&lt;/OL&gt;
to it&lt;/LI&gt;
&lt;LI&gt;add the fields to the layout&lt;/LI&gt;
&lt;LI&gt;save/publish the module&lt;/LI&gt;
&lt;LI&gt;replace the whole dnd-layout in your template with this one module&lt;/LI&gt;
&lt;LI&gt;done&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for styling you have "unlimited" options.&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;wrapping the whole module code in a div with a class and add your custom styling to an already existing CSS file which is getting loaded&lt;/LI&gt;
&lt;LI&gt;add static CSS to the module.css&lt;/LI&gt;
&lt;LI&gt;add static CSS to the module.html wrapped inside &lt;A href="https://developers.hubspot.com/beta-docs/reference/cms/modules/files#require_css-block" target="_blank" rel="noopener"&gt;a {% require_css %} function&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;add styling fields to the module fields and add them inside &lt;A href="https://developers.hubspot.com/beta-docs/guides/cms/content/fields/overview#generated-css" target="_blank" rel="noopener"&gt;a {% scope_css %} function&lt;/A&gt; in the module.html&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Use booleans to toggle between classes&lt;/LI&gt;
&lt;LI&gt;Use choices to switch between classes&lt;/LI&gt;
&lt;LI&gt;...&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anton&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 12:57:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-Create-Layout-of-image-text-section-on-Adjacent-sides/m-p/1037513#M40578</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2024-09-06T12:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to Create Layout of image , text section on Adjacent sides using Dnd areas blockbody.</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-Create-Layout-of-image-text-section-on-Adjacent-sides/m-p/1042570#M40701</link>
      <description>&lt;P&gt;where can i get better understanding of&amp;nbsp;&lt;SPAN&gt;custom module approach. i couldnt get resource, sample code for its implementation with tailwind css. could you please me in implementation of custom module in Hubspot&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 11:57:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-Create-Layout-of-image-text-section-on-Adjacent-sides/m-p/1042570#M40701</guid>
      <dc:creator>ShyamVikaas</dc:creator>
      <dc:date>2024-09-18T11:57:59Z</dc:date>
    </item>
  </channel>
</rss>

