Jan 24, 2023 4:53 PM - edited Jan 24, 2023 5:04 PM
I'm using a default hubspot image module in one of my hubl+html email templates and using the snippet like this:
{% module "module_167459140015211" path="@hubspot/linked_image", label="Image" class="mcnImage" %}
The problem I have is that if I use the same image module in the email template it mimics the original. Is it possible to make it separate without having to clone the module? Ideally don't want like 10 image modules.
Solved! Go to Solution.
Jan 24, 2023 11:22 PM
The "module_167459140015211" in the tag is a unique identifier for the placed module, if two {% module %} tags have the same identifier they're treated as though they're the same module. So all you need to do is give the two tags different identifiers. This identifier can be anything you want as long as it uses underscores instead of spaces or dashes. Example:
{% module "email_image_one" path="@hubspot/linked_image", label="Image" class="mcnImage" %}
{% module "email_image_two" path="@hubspot/linked_image", label="Image" class="mcnImage" %}
If this answer solved your question, please mark it as the solution!
Need custom website/integration development or help optimizing HubSpot for your organization?
Schedule a consultation with us, an award-winning HubSpot Elite Partner.
Or check out our blog to get the latest in marketing, design, integration, and HubSpot knowledge.
Jan 24, 2023 11:22 PM
The "module_167459140015211" in the tag is a unique identifier for the placed module, if two {% module %} tags have the same identifier they're treated as though they're the same module. So all you need to do is give the two tags different identifiers. This identifier can be anything you want as long as it uses underscores instead of spaces or dashes. Example:
{% module "email_image_one" path="@hubspot/linked_image", label="Image" class="mcnImage" %}
{% module "email_image_two" path="@hubspot/linked_image", label="Image" class="mcnImage" %}
If this answer solved your question, please mark it as the solution!
Need custom website/integration development or help optimizing HubSpot for your organization?
Schedule a consultation with us, an award-winning HubSpot Elite Partner.
Or check out our blog to get the latest in marketing, design, integration, and HubSpot knowledge.
Jan 25, 2023 10:08 AM
Thank you!