Consequences for converting existing module to global?

tmcmillan99
Top Contributor | Gold Partner
Top Contributor | Gold Partner

Client has a gallery module that they would like to convert to be global. I know I can download it to my local dev environment and convert it to be global.

However, when I upload it back to the client's portal, will it keep all of the images/info being currently used in the module? 

 

I was hoping to test it in a sandbox but I don't think website pages and content get copied over to a sandbox account. They have a large number of images being used in the module so I don't want to risk losing them by not somehow testing it first. Any suggestions would be greatly appreciated.

 

Thanks,

Terry McMillan

0 Upvotes
5 Replies 5
helloteichner
Member

@tmcmillan99 @Jnix284 
I ran into the same issue many times and decided to build a small tool to make the process easier. It’s called Hub Module Convert – and as the name suggests, it does just that 😄

It’s just launched and currently in public beta. If you'd like to give it a try (and maybe share some feedback), feel free to email me at chris@hubmoduleconvert.com and I’ll set you up with a free account.


Thanks,
Chris

Jnix284
HubSpot Employee
HubSpot Employee

Thanks for sharing @helloteichner, this looks like a promising option. 

 

side note - your website font color is black on a navy background, I couldn't read the text and thought there might've been something that got mixed up in the CSS. 


replies and solutions prior to May 2025 were as a member of the community and are not an official response as an employee of HubSpot


Jennifer Nixon
0 Upvotes
Jnix284
HubSpot Employee
HubSpot Employee

Hi @tmcmillan99 we typically create global modules with a unique name from the original module and upload as a new global module to avoid any issues with the current module/pages - for example, if it is used on two different pages with different content. The content would have to be rebuilt in the global module this way, but it gives them access to a global version and they still have the regular module to use for other pages as needed.

 

I have never tested what happens if you replace a module that already exists, have you @Anton ?


replies and solutions prior to May 2025 were as a member of the community and are not an official response as an employee of HubSpot


Jennifer Nixon
tmcmillan99
Top Contributor | Gold Partner
Top Contributor | Gold Partner

@Jnix284 
Thanks for the reply. Generally, I would follow that same procedure and create a new seperate module to be global. However, the client is wanting to use the existing module on other pages and retain the images that have already been added. Re-adding all of the images in a new global module would be a significant lift.  However, that might be the only solution available. Unfortunately, there doesn't seem to be a good way to test it without being in the live environment and taking a chance the module resets when I step on it with the new global version.
I wish we could include content when creating a sandbox to cover these types of scenarios. 

 

Terry

0 Upvotes
Jnix284
HubSpot Employee
HubSpot Employee

@tmcmillan99 until HubSpot makes creating global modules easier (at least via design tools and not the CLI, but better if non-devs can create in the page editor), I think having to rebuild content is somewhat par for the course unfortunately...


replies and solutions prior to May 2025 were as a member of the community and are not an official response as an employee of HubSpot


Jennifer Nixon