# dnd\_module divider width

**URL:** <https://community.hubspot.com/t/dnd-module-divider-width/31233>\
**Category:** CMS Development\
**Created:** [February 3, 2021, 9:23pm UTC](https://community.hubspot.com/t/dnd-module-divider-width/31233 "2021-02-03T21:23:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cory-blackbird](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cory-blackbird/32/65713_2.png) [@cory-blackbird](https://community.hubspot.com/u/cory-blackbird)\
**Post date:** [February 3, 2021, 9:23pm UTC](https://community.hubspot.com/t/dnd-module-divider-width/31233/1 "2021-02-03T21:23:44Z")

</div>

Maybe I’m missing something here, but I’ve added the “@hubspot/divider” to a template as a `dnd_module`. It works fine, except I can’t actually use the `width` parameter, because the `width` parameter of a `dnd_module` corresponds to the column width (1–12). Is there a way to get at the underlying module’s `width` parameter when using it as a `dnd_module`?

```lia-code-sample
{% dnd_section %}
 {% dnd_row %}
 {% dnd_module path="@hubspot/divider",
 width=100 # does not work
 %}
 {% end_dnd_module %}
 {% end_dnd_row %}
{% end_dnd_section %}

```

Are there other module property overlaps with dnd\_module-specific parameters?

---

<div class="post-metadata">

**Author:** ![alyssamwilie](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/alyssamwilie/32/2072_2.png) [@alyssamwilie](https://community.hubspot.com/u/alyssamwilie)\
**Post date:** [February 3, 2021, 9:55pm UTC](https://community.hubspot.com/t/dnd-module-divider-width/31233/2 "2021-02-03T21:55:16Z")

</div>

@cory-blackbird This is an issue I’ve brought up in the Hubspot slack that they’re hopefully going to look into fixing. In the meantime you would need to clone the module and change the name of the width field to be able to use it and set a width. I haven’t run into any other modules with an issue like this, so hopefully it’s just the one.

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [February 3, 2021, 10:22pm UTC](https://community.hubspot.com/t/dnd-module-divider-width/31233/3 "2021-02-03T22:22:13Z")

</div>

Hey @alyssamwilie,  
Could you send me a link to that slack thread?

---

<div class="post-metadata">

**Author:** ![alyssamwilie](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/alyssamwilie/32/2072_2.png) [@alyssamwilie](https://community.hubspot.com/u/alyssamwilie)\
**Post date:** [February 3, 2021, 10:23pm UTC](https://community.hubspot.com/t/dnd-module-divider-width/31233/4 "2021-02-03T22:23:43Z")

</div>

> **[Slack](https://hubspotdev.slack.com/?redir=%2Farchives%2FCFPRTEGTX%2Fp1610118824371500%3Fname%3DCFPRTEGTX%26perma%3D1610118824371500)**

---

<div class="post-metadata">

**Author:** ![jmclaren](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jmclaren/32/38449_2.png) [@jmclaren](https://community.hubspot.com/u/jmclaren)\
**Post date:** [February 4, 2021, 1:22am UTC](https://community.hubspot.com/t/dnd-module-divider-width/31233/5 "2021-02-04T01:22:06Z")

</div>

Hey there, we recently discovered this issue.  
The solution for now is that we’ve added a fields parameter. For any situations where a dnd\_area style parameter is the same as a module field you would be able to use this. Thankfully, this is pretty rare.

```lia-code-sample
{% dnd_area "main_content"%}
 {% dnd_section %}
 {% dnd_column %}
 {% dnd_row %}
 {% dnd_module path="@hubspot/divider",
 fields={width: "90"}
 %}
 {% end_dnd_module %}
 {% end_dnd_row %}
 {%end_dnd_column%}
 {% end_dnd_section %}
 {% end_dnd_area %}

```

This obviously isn’t the long term solution but it’s not as simple on our end as just updating the module. Doing so would break websites that are not using the module within a dnd\_area. Because when it’s not in a dnd\_area width works as you expect.  
Thank you for reporting, and sorry this issue occured. We’re thinking through more permanent solutions. Understand though when I say that, I’m not meaning that the fields parameter is temporary. It will be sticking around so feel free to use it.

---

<div class="post-metadata">

**Author:** ![cory-blackbird](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cory-blackbird/32/65713_2.png) [@cory-blackbird](https://community.hubspot.com/u/cory-blackbird)\
**Post date:** [February 4, 2021, 2:50pm UTC](https://community.hubspot.com/t/dnd-module-divider-width/31233/6 "2021-02-04T14:50:22Z")

</div>

Thanks @jmclaren! The fields parameter makes a lot of sense in this context. I may end up using it more often than not to separate what are parameters for the dnd layout vs the underlying module.
