Skip to main content
Jun 30, 2014 3:49 PM UTC
Duplicate

HTML 5 attribute support needed for responsive tables to work

I created a responsive data table for an email campaign in Design Studio. For this to work, the table uses the data-title attribute. Upon save and close, when I go back in the attribute is stripped out. We need the attribute to remain intact all the way through deployment, or the data table is meaningless in the responsive mobile design.

Example: <tr>
<td data-title="#1 Viewed">most viewed 1</td>
<td>&nbsp;</td>
<td data-title="#1 Post">most popular 1</td>
</tr>


Marketo needs to support HTML5 attributes for responsive tables to work! This is also important for accessibility. Let's make it happen, please!

8 replies

Justin_Cooperm2
Level 10
Jun 30, 2014 5:16 PM UTC
Did you use Email Actions > HTML Tools > Replace HTML to paste your code in? 
Translate
Jun 30, 2014 5:53 PM UTC
Hi Justin,

No, didn't know that would prevent the editor from stripping. Will try that and report back. Thanks!
Translate
Amy_Lepre
Level 6
Jul 1, 2014 2:22 PM UTC
That would negate using an email template, though, wouldn't it? That is unfortunate. It would be great to be able to use HTML5 and also use email templates.
 
Translate
Justin_Cooperm2
Level 10
Jul 1, 2014 5:21 PM UTC
@Amy - You can put his example in an email template as well. It will work if you either paste that code into a template or use the workflow I mention above. It will not work if you click the HTML button in the TinyMCE rich text editor as that will strip it out.


Translate
Aug 20, 2014 11:01 PM UTC
Thanks, Justin - that works! Is there anything to worry about with the "...will disconnect from template..." notice?
Translate
Justin_Cooperm2
Level 10
Aug 20, 2014 11:08 PM UTC
Hi Arlene - You have two options:

1. Put the code into the template itself. Thing about this is that all new emails created off of that template will have those elements pre-loaded. 

2. Choose "Replace HTML," which will allow you to edit the code for an individual email. It will disconnect it from the template, which is not problematic, as long as you don't break other things that are in your template by adding things!
Translate
Aug 21, 2014 8:54 PM UTC
HI Justin,

I tried #1, but that doesn't work for our needs because that content will be changing with each newsletter. #2 does work. Question, about breaking things ... where should I "not" add things or what things shouldn't I add?

My template is essentially this: one single giant editable region around all of the guts. Multiple editable regions breaks my responsive design. This was the only way I could build a template that our CRM folks could populate, so we don't have to do the 1:1 template to email. Is it OK to add things inside this editable region, or do you mean don't add other "template" sections/editable regions?

Sorry to get off topic here, but the word "break" freaks me out (lol). Thanks!
Translate
Feb 7, 2020 3:56 AM UTC
No text available
Translate