# Dnd area causing modules disappear

**URL:** <https://community.hubspot.com/t/dnd-area-causing-modules-disappear/49854>\
**Category:** CMS Development\
**Created:** [January 16, 2022, 3:57pm UTC](https://community.hubspot.com/t/dnd-area-causing-modules-disappear/49854 "2022-01-16T15:57:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![WGwardjak](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wgwardjak/32/43872_2.png) [@WGwardjak](https://community.hubspot.com/u/WGwardjak)\
**Post date:** [January 16, 2022, 3:57pm UTC](https://community.hubspot.com/t/dnd-area-causing-modules-disappear/49854/1 "2022-01-16T15:57:58Z")

</div>

Hello,

my client wants to be able to add more modules to Blog Post and Blog Listing templates after clicking “Edit”.

I added dnd\_area to my template, but my custom modules disappeared because of that.

What might be the possible problem?  
I did that in another project and it worked - customer was able to add more modules.

 ![57449i53EA8E5A39C91BFA.PNG](https://d2qpr2jzcazej7.cloudfront.net/original/3X/8/8/88884b380c0d4f4ce7e8f16f9f6f5a4545846526.png)

 ![57450iBC242F1162E554E6.PNG.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/8/4/84411f18b4b1a59f0300d5b9cb9862f9d2379725.jpeg)

 ![57454iA5C70612B9E43E71.PNG](https://d2qpr2jzcazej7.cloudfront.net/original/3X/8/7/87b8e52e65276f6595880a2fc58eb22bf85c17dc.png)

---

<div class="post-metadata">

**Author:** ![Oezcan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/oezcan/32/53959_2.png) [@Oezcan](https://community.hubspot.com/u/Oezcan)\
**Post date:** [January 17, 2022, 8:24am UTC](https://community.hubspot.com/t/dnd-area-causing-modules-disappear/49854/2 "2022-01-17T08:24:48Z")

</div>

Hello @WGwardjak ,

Can you please show us your code?

Best regards,

Özcan

---

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [January 17, 2022, 2:35pm UTC](https://community.hubspot.com/t/dnd-area-causing-modules-disappear/49854/3 "2022-01-17T14:35:55Z")

</div>

Hi @WGwardjak,

first of all:

- there is unfortunatly no drag&drop" for blog posts for now - but you can upvote this in the[ideas board.](https://community.hubspot.com/t5/HubSpot-Ideas/Drag-amp-Drop-functionality-for-Blog-Posts/idi-p/408909)

To get things right:  
unless the client edit the template your custom module gets displayed. As soon as the client edits it - it disappears. Right? Do those projects/clients have different “software”? Like does project A has CMS Hub Pro and project B only Marketing Hub Pro. Things like this. I’ve came accross some similar behavior in the past.

Also: there are few things that you shouold check/do:

1. change {% module\_block %}… {% end\_module\_block %} to {% dnd\_module %}…{% end\_dnd\_module %} for all modules that are inside of the dnd\_area
2. If your module shouldn’t be removable - place it outside of the dnd\_area
3. check if your module(s) is/are enabled for blog listing

hope this helps,

best

Anton

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [January 17, 2022, 8:26am UTC](https://community.hubspot.com/t/dnd-area-causing-modules-disappear/49854/4 "2022-01-17T08:26:51Z")

</div>

Hi @WGwardjak ,

You have to follow the proper sequence then only dnd area will work also you have to define a different unique class for your every dnd area , through which you can give css as per your requirement as shown in below example

\<!-----------------------------Homepage Blog Section Start Here -----------------------------\>

{% dnd\_area ‘home-blog-module’ class=’home-blog-section’, label=‘Blog Section’ %}

{% dnd\_section

```
padding={

'default': { 'top': '100', 'bottom': '100', 'right': '20', 'left': '20' },

'mobile': { 'top':'60', 'bottom': '60', 'right': '20', 'left': '20' }

},

max\_width=1170

```

%}

```
{% dnd\_column %}

  {% dnd\_row %}

    {% dnd\_module path='../modules/CarouselNew.module',label="CarouselNew Module" %}

    {% end\_dnd\_module %}

  {% end\_dnd\_row %}

{% end\_dnd\_column %}

```

{% end\_dnd\_section %}

{% end\_dnd\_area %}

\<!----------------------------- Homepagel Blog Section Ends Here -----------------------------\>

\<!-----------------------------Homepage other Section Start Here -----------------------------\>

{% dnd\_area ‘home-other-module’ class=’home-other-section’, label=‘Other Section’ %}

{% dnd\_section

………

{% end\_dnd\_section %}

{% end\_dnd\_area %}

\<!----------------------------- Homepagel Other Section Ends Here -----------------------------\>

For More details please read this article:- [Drag and Drop Areas HubL Tags - HubSpot docs](https://developers.hubspot.com/docs/cms/hubl/tags/dnd-areas)  
Hope this helps!  
If we were able to answer your query, kindly help the community by marking it as a solution.  
Thanks and Regard.

---

<div class="post-metadata">

**Author:** ![MiaSrebrnjak](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/miasrebrnjak/32/10_2.png) [@MiaSrebrnjak](https://community.hubspot.com/u/MiaSrebrnjak)\
**Post date:** [January 17, 2022, 2:14pm UTC](https://community.hubspot.com/t/dnd-area-causing-modules-disappear/49854/5 "2022-01-17T14:14:06Z")

</div>

Hi @WGwardjak,

Thank you for reaching out to the Community! I’ve moved this to our CMS board to make sure it gets seen by the right experts, I hope you don’t mind.

I noticed that you’ve also posted your question in a comment under [this Community post](https://community.hubspot.com/t5/CMS-Development/Adding-modules-is-turned-off-in-this-post-s-template/td-p/322050), I’ll leave it here for additional context.

I want to tag a couple of experts to see if they can help out here:

hi @alyssamwilie, @Anton, @prosa, @albertsg, do you have any tips for @WGwardjak? Thank you!

**\*EDIT: I’ve just seen you posted your question in the CMS board as well and already got help by the wonderful [@webdew](https://community.hubspot.com/t5/user/viewprofilepage/user-id/131510) and @Oezcan. I’ll merge these two posts to avoid duplicate content.**

Cheers  
Mia, Community Team

---

<div class="post-metadata">

**Author:** ![WGwardjak](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wgwardjak/32/43872_2.png) [@WGwardjak](https://community.hubspot.com/u/WGwardjak)\
**Post date:** [February 21, 2022, 8:01pm UTC](https://community.hubspot.com/t/dnd-area-causing-modules-disappear/49854/6 "2022-02-21T20:01:40Z")

</div>

Thank you all for your contribution! [@webdew](https://community.hubspot.com/t5/user/viewprofilepage/user-id/131510) response was the solution!

If there is anything I can do for you - let me know 🙂
