CMS Development

SeasideJimmy
Member

How do I add my custom module to custom coded email template?

Hello All,

I've made a custom-coded email template and I'm splitting it up into the bits that need to be editable.

I've made a custom module for an image, (all good so far), but now how do I add that module to my template so users can choose the image?

Thanks

0 Upvotes
1 Reply 1
SeasideJimmy
Member

How do I add my custom module to custom coded email template?

For anyone interested, I solved it although I can't find any documentation for email devs.

You need to get the module or 'widget' ID, which you can see in the URL when editing your custom module. To include the module/widget in your custom email template, you need this:

{% custom_widget "unique-name-of-your-choice" custom_widget_id=IDinURL, widget_name='Name you called widget when you made it', label='What you want client to see in editor' %}

It's important to get the widget_name parameter right, or it won't work.

Email devs seem to get neglected a bit in HubSpot.. (sad face)

0 Upvotes