# module\_block module unique name

**URL:** <https://community.hubspot.com/t/module-block-module-unique-name/81278>\
**Category:** CMS Development\
**Tags:** professional\
**Created:** [May 16, 2023, 10:07am UTC](https://community.hubspot.com/t/module-block-module-unique-name/81278 "2023-05-16T10:07:00Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaximeGourgues](https://avatars.discourse-cdn.com/v4/letter/m/ce73a5/32.png) [@MaximeGourgues](https://community.hubspot.com/u/MaximeGourgues)\
**Post date:** [May 16, 2023, 10:07am UTC](https://community.hubspot.com/t/module-block-module-unique-name/81278/1 "2023-05-16T10:07:00Z")

</div>

Hi everyone 👋,

I’m switching custom modules from an old instance to a new instance.  
The module\_id is different from the old instance to the new instance but the name is still the same.

Because of that, the custom module cannot render properly.

I will give you some examples below.

This is the old instance

![Capture d’écran 2023-05-16 à 11.56.09.png](https://d2qpr2jzcazej7.cloudfront.net/optimized/3X/c/5/c52600487efe91ef4f188bd9a8d70e8217f51569_2_690x37.png)

And this is the new instance

![Capture d’écran 2023-05-16 à 12.00.37.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/9/a/9ae816aa54262e2efcd6d9d92e20538f95b6020d.png)

We can see that the module\_id is different but the module just before is the same and to me, that’s why the custom module cannot render.

Do you know how to retrieve the module name of the current instance?

Thank you very much and have a nice day!

BTW, sorry for my bad English 🙂🇫🇷🥖

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [May 17, 2023, 5:41pm UTC](https://community.hubspot.com/t/module-block-module-unique-name/81278/2 "2023-05-17T17:41:37Z")

</div>

Hi, @MaximeGourgues 👋 No apologies needed. Thank you very much for posting in our community!

Hey, @Anton @Indra @JonPayne, do you have any insight here? How do you deal with this in your project work?

Thank you very much for taking a look! — Jaycee

---

<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:** [May 18, 2023, 1:16pm UTC](https://community.hubspot.com/t/module-block-module-unique-name/81278/3 "2023-05-18T13:16:41Z")

</div>

@MaximeGourgues The name isn’t specifically tied to the module. You can just change it to whatever you want as long as it’s unique.

---

<div class="post-metadata">

**Author:** ![MaximeGourgues](https://avatars.discourse-cdn.com/v4/letter/m/ce73a5/32.png) [@MaximeGourgues](https://community.hubspot.com/u/MaximeGourgues)\
**Post date:** [May 22, 2023, 6:55am UTC](https://community.hubspot.com/t/module-block-module-unique-name/81278/4 "2023-05-22T06:55:42Z")

</div>

Okay, I will try this today! thank you for helping me 🙂

---

<div class="post-metadata">

**Author:** ![Indra](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/indra/32/98381_2.png) [@Indra](https://community.hubspot.com/u/Indra)\
**Post date:** [May 22, 2023, 6:27am UTC](https://community.hubspot.com/t/module-block-module-unique-name/81278/5 "2023-05-22T06:27:40Z")

</div>

Thanks for mentioning [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074)

Hi @MaximeGourgues,

So, your telling you switched instance. What do you meen by that? You changed from portal?

At the bottom right of each custom module there is a embed code. Here it will automatically generate the name ‘module\_XXXXXXXXXXX’. But this can be anything as @alyssamwilie.

What’s inportant is to check if the `module_id` is correct. Insead of the module\_id you can also use the `path`. Check out this article: [Using Modules in Templates](https://developers.hubspot.com/docs/cms/reference/modules/using-modules-in-templates)

_Moderator note: While this solution may not address the original poster’s specific situation, it could be helpful for other community members facing similar challenges._

---

<div class="post-metadata">

**Author:** ![MaximeGourgues](https://avatars.discourse-cdn.com/v4/letter/m/ce73a5/32.png) [@MaximeGourgues](https://community.hubspot.com/u/MaximeGourgues)\
**Post date:** [May 22, 2023, 7:03am UTC](https://community.hubspot.com/t/module-block-module-unique-name/81278/6 "2023-05-22T07:03:49Z")

</div>

Hello @Indra,  
Yes I copied a custom module from the old client portal to the new portal.

The ID of the two modules are different but there is no render on the page.

As I said just below, I will try @alyssamwilie suggestion and yours.

If it works or not, you will have some news.

Once again thank you 🙂 🙏

---

<div class="post-metadata">

**Author:** ![MaximeGourgues](https://avatars.discourse-cdn.com/v4/letter/m/ce73a5/32.png) [@MaximeGourgues](https://community.hubspot.com/u/MaximeGourgues)\
**Post date:** [May 22, 2023, 8:12am UTC](https://community.hubspot.com/t/module-block-module-unique-name/81278/7 "2023-05-22T08:12:27Z")

</div>

Hey, I tried some of your solutions but I’m still stuck 😞.

Maybe a **page** screenshot will help you:

 ![Capture d’écran 2023-05-22 à 09.31.12.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/c/0/c0243207cb57684df766606758b500e26de249e0.png)

These are errors highlighted in the custom module.

To me, It can be a path error, or an undefined name somewhere when I try to call that module because, inside the custom module, everything is written a good way.

I will try to share some links to the **custom module** to give you a more explicit example.

In the third screenshot, you will see some error messages that stuck me to display the module.

 ![796896_1_Capture d’écran 2023-05-22 à 10.08.04.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/4/9/4928f69b6817022a9b7de843b6530cd5fe23179c.png)

 ![796896_2_Capture d’écran 2023-05-22 à 10.09.32.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/6/615b261c3e1ea9031a5f311c4128d6189f254060.png)

 ![796896_3_Capture d’écran 2023-05-22 à 10.09.22.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/3/c/3c1ae516a2fc6d4b16631d73831aae06d2c8b9a8.png)

---

<div class="post-metadata">

**Author:** ![Indra](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/indra/32/98381_2.png) [@Indra](https://community.hubspot.com/u/Indra)\
**Post date:** [May 22, 2023, 9:25am UTC](https://community.hubspot.com/t/module-block-module-unique-name/81278/8 "2023-05-22T09:25:40Z")

</div>

Hi @MaximeGourgues,

You have included a ‘module\_id’ and ‘path’. But the path is set to a HubSpot module. So, try to remove `path='@hubspot/module_type'`.

I see your working locally. When importing the theme, modules or assets did you run into errors?

A custom module exist out or a few files:

- module.html
- module.css
- module.js
- meta.json
- fields.json

If you still having issues, check if the fields.json has any value.

---

<div class="post-metadata">

**Author:** ![MaximeGourgues](https://avatars.discourse-cdn.com/v4/letter/m/ce73a5/32.png) [@MaximeGourgues](https://community.hubspot.com/u/MaximeGourgues)\
**Post date:** [May 22, 2023, 12:05pm UTC](https://community.hubspot.com/t/module-block-module-unique-name/81278/9 "2023-05-22T12:05:07Z")

</div>

Hey @Indra 👋,

I removed the path but the module still did not render.

I’m actually not working locally but from the cms, and working from a ‘copy.html’.

I don’t know if it changes a lot.

If it’s too hard to understand maybe we could have a call and share my screen?

---

<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:** [May 23, 2023, 1:09am UTC](https://community.hubspot.com/t/module-block-module-unique-name/81278/10 "2023-05-23T01:09:53Z")

</div>

Hey @MaximeGourgues ,

In the Design Manager, in your module, can you scroll all the way down in the right sidebar to “Template Usage” and copy the exact snippet there into your template? If the ‘module\_####’ bit is the same as your other modules you can change _that,_ but nothing else. Does it render then?

 ![template-usage.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/0/094b8cb3cbac8187da1276356080383fe5626a91.png)

---

<div class="post-metadata">

**Author:** ![MaximeGourgues](https://avatars.discourse-cdn.com/v4/letter/m/ce73a5/32.png) [@MaximeGourgues](https://community.hubspot.com/u/MaximeGourgues)\
**Post date:** [May 23, 2023, 9:17am UTC](https://community.hubspot.com/t/module-block-module-unique-name/81278/11 "2023-05-23T09:17:52Z")

</div>

Hey @alyssamwilie 👋,

I think we are in a good way.  
I see no warnings or errors on the page and in the custom module.

But the custom module still does not display on the web page.

We can see the module when you open the dev tools but nothing more…

Below I will give you two screenshots with opened dev tools.

The first screenshot is what we are supposed to see.

And the second is what we see inside the new portal.

 ![797513_1_Capture d’écran 2023-05-23 à 10.58.36.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/e/8/e8139e265bd112e1488b09b46a3ef0b1d8c9278e.jpeg)

 ![797513_2_Capture d’écran 2023-05-23 à 11.00.29.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/5/6/56a4e5cb710e7e873a270ad684bd06245600708c.jpeg)

---

<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:** [May 23, 2023, 1:24pm UTC](https://community.hubspot.com/t/module-block-module-unique-name/81278/12 "2023-05-23T13:24:58Z")

</div>

Hm, so the module is being placed now, just not showing any content. May be a dumb question - but have you made sure all of your changes to the module have been Published and have default content set in the fields?

---

<div class="post-metadata">

**Author:** ![MaximeGourgues](https://avatars.discourse-cdn.com/v4/letter/m/ce73a5/32.png) [@MaximeGourgues](https://community.hubspot.com/u/MaximeGourgues)\
**Post date:** [May 25, 2023, 8:10am UTC](https://community.hubspot.com/t/module-block-module-unique-name/81278/13 "2023-05-25T08:10:16Z")

</div>

hello @alyssamwilie,

Yes, everything is published and I have only dynamic content inside this module.  
But even the box doesn’t show like the CSS and dynamic content are not recognized.

And I don’t see any error message 😞
