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
And this is the new instance
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?
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
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.
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.
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?
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?
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.