Replacing a module - Error

Hello,

I’m trying to update our subscription preferences page, we have a custom template which uses ‘email_subscriptions.module’ this module is not editable, but I cloned it and made the required copy changes within the code. However, when i try to change to using the new version of the module in my template I get an error advising that the email_subscriptions.module needs to be in the template. Which of course we don’t want that in there as we’re trying to use the new one in it’s place.

Can anyone help us bypass this so we can use our own version?

Hi @LPietrafesa,

First of all, what kind of template do you have? A DnD template or a custom html template?

By default yout template can have an module include like this:

{% module 'subscriptions_confirmation'
 path='@hubspot/email_subscriptions_confirmation'
%}

If you want to embed a custom module, just use the code snippet that is visible on the module itself beneath ‘Template usage’.

Then your code will look like this:

{% module "module_99999999999999" 
 path="/folder/email_subscriptions_conformation", 
 label="Subscriptions confirmation"
%}

Hi @LPietrafesa ,

You can try one thing , give display none in css instead of replacing the default module and add new module which you have created and after apply changes style your new module as shown in below image

Hope this helps!

If we were able to answer your query, kindly help the community by marking it as a solution.
Thanks and Regards.