CMS Development

tmcmillan99
Contributor | Elite Partner
Contributor | Elite Partner

Any way to keep custom module data when using a new template?

SOLVE

Client is on a custom Hubspot site that was developed before themes became the standard. We are in the early stages of a site redesign and want to take this opportunity to switch their site to a theme. They have quite a few custom gallery type modules with large amounts of entries. 

 

Is there any way not to lose the current data in the module so that they don't have to rekey everything when each module is used in the new theme page templates? Is there a way to export/import the module data?

Having to rekey all of the entries for each custom module will be a major undertaking and obviously not ideal. 

 

Thanks,

Terry McMillan

0 Upvotes
1 Accepted solution
Anton
Solution
Thought Leader | Partner
Thought Leader | Partner

Any way to keep custom module data when using a new template?

SOLVE

Hey @tmcmillan99

first thing I'd do:

Move all the pages to staging environment. This should make the transition to themes easier. 

Also - I'm not 100% sure but you could try to move(or clone) the modules from the template to the theme. 

Could work. Cloning the module might work aswell but most likely HubSpot won't recognize it as "the same module" which would lead to rekeying. 

 

Also you could try to use the pages API like "fetching the template data - changing the templates, layout etc. and upload it back via the API". But I'm not 100% sure if this will work with the old templates.

 

best,

Anton

Anton Bujanowski Signature

View solution in original post

0 Upvotes
1 Reply 1
Anton
Solution
Thought Leader | Partner
Thought Leader | Partner

Any way to keep custom module data when using a new template?

SOLVE

Hey @tmcmillan99

first thing I'd do:

Move all the pages to staging environment. This should make the transition to themes easier. 

Also - I'm not 100% sure but you could try to move(or clone) the modules from the template to the theme. 

Could work. Cloning the module might work aswell but most likely HubSpot won't recognize it as "the same module" which would lead to rekeying. 

 

Also you could try to use the pages API like "fetching the template data - changing the templates, layout etc. and upload it back via the API". But I'm not 100% sure if this will work with the old templates.

 

best,

Anton

Anton Bujanowski Signature
0 Upvotes