What's the difference between dnd area and dnd section

I’m trying to figure out the difference between the two.I’ve read the documentation but still can’t figure out.

Someone to bring the point home.

Hey, @DOchieng5 :waving_hand: Thanks for reaching out. The area is the overall container and the section is the specific space within the area that you can place content. Did I explain that correctly @BarryGrennan?

I feel like this section of the guide hints at this difference, but doesn’t explicitly call it out — Getting started with drag and drop areas

Can you tell us more about the roadblock you are facing with distinguishing between, or utilizing, areas and sections in this context?

Have fun building! — Jaycee

Not quite satisfied

I think @Jaycee_Lewis has described it well. A dnd_area is a top level container. A dnd_area can contain multiple dnd_section’s

The best thing to do is to get some hands on experince of it.

I put together this very quick demo, put it in a template then create a page from it. When you’re editing the page, click on the Contents tab and examine the structure there and how it corresponds to the template layout.

{% dnd_area 'unique_dnd_area_name'
 label='Name of Area',
 class='body-container body-container--home'
%}

{% dnd_section %}
 {% dnd_module "richt_text_1" path="@hubspot/rich_text", label="Top Text" %}
{% end_dnd_module %}
{% end_dnd_section %}

 {% dnd_section %}

{% dnd_column %}

{% dnd_row %}

 {% dnd_module "richt_text_2" path="@hubspot/rich_text", label="Second Text",
 html='<h2>Second Text</h2>' %}
 {% end_dnd_module %}

{% end_dnd_row %}

{% dnd_row %}

{% dnd_module "richt_text_3" path="@hubspot/rich_text", label="Third Text",
 html='<h2>Third Text</h2>' %}
{% end_dnd_module %}

{% end_dnd_row %}

{% end_dnd_column %}

{% end_dnd_section %}

 {% dnd_section %}

{% dnd_column %}

{% dnd_row %}

{% dnd_module "richt_text_4" path="@hubspot/rich_text", label="Fourth Text",
html='<h2>Fourth Text</h2>' %}
{% end_dnd_module %}

{% end_dnd_row %}

{% end_dnd_column %}

{% end_dnd_section %}

{% end_dnd_area %} 

Barry Grennan

Freelance HubSpot CMS Developer

Website | Contact | LinkedIn