- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
User selectable background Image for E-Mail not working
Mar 21, 2017 10:03 AM - edited Mar 21, 2017 10:05 AM
Hi,
We want to implement background images for emails. (And we know, it's not supported for all clients, but gives them a goodie, who are using the latest technology).
Anyways, we've followed your guidelines as suggested here:
http://designers.hubspot.com/docs/hubl/export-to-template-context
(User selectable backgrounds)
http://cdn2.hubspot.net/hub/428357/file-2117441560-jpg/img/dev-bg-compressed.jpg
Our code is the following:
{% image "stage_header_1_background_image" label='Select a background image', src='http://cdn2.hubspot.net/hub/428357/file-2117441560-jpg/img/dev-bg-compressed.jpg', export_to_template_context=True %} <table align="center" bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" class="backgroundTable dark stage_header_1" style="background:url('{{ widget_data.stage_header_1_background_image.src }}');"> <tr> ....
Basically, we want to pull in the src from the image widget data in the inline style tag (background-image).
The option to edit will appear in the email editor, but doesn't show any image. When inspecting the fallback online archive, the src tag is empty.
Is there any solution for this?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content