Skip to main content
Mark_Kalamaridi
Level 2
4月 1, 2020 9:40 午後 UTC
解決済み

Is there a way to show/hide html in an email based on dynamic content?

I am creating an html email with a few rows of table cells containing an image and a piece of dynamic content (text).
Is there a way to hide one or more cells if the dynamic content is blank to avoid displaying empty cells?

このトピックへの返信は締め切られました。
SanfordWhiteman
User Group Leader
4月 1, 2020 10:38 午後 UTC

Is it truly Dynamic Content™, as in explicitly segmented content? That isn't going to be suppressible: if it's inside a <td> then the <td> itself will exist even if it's empty.

 

If you use Velocity to output the table (or just the <td>) however, every row and cell are under your control. Some advanced techniques here: https://nation.marketo.com/t5/Product-Blogs/Alternating-table-row-colors-in-Velocity/ba-p/243564

1 の返信

SanfordWhiteman
User Group Leader
User Group Leader
4月 1, 2020 10:38 午後 UTC

Is it truly Dynamic Content™, as in explicitly segmented content? That isn't going to be suppressible: if it's inside a <td> then the <td> itself will exist even if it's empty.

 

If you use Velocity to output the table (or just the <td>) however, every row and cell are under your control. Some advanced techniques here: https://nation.marketo.com/t5/Product-Blogs/Alternating-table-row-colors-in-Velocity/ba-p/243564

翻訳