voidlabs / mosaico

Mosaico - Responsive Email Template Editor
https://mosaico.io
GNU General Public License v3.0
1.7k stars 500 forks source link

Conditional Blocks with Mosaico #555

Closed preeti12 closed 4 years ago

preeti12 commented 4 years ago

Create email template with multiple blocks and the the display of those would be based on some parameter value. if(condition == true){ "display textBlock" }else if(condition2 == true){ "display imageBlock" }else{ "Display textImageBlock" }

bago commented 4 years ago

Look at versafix master template: <div data-ko-display="preheaderVisible" data-ko-wrap="false"> https://github.com/voidlabs/mosaico/wiki/Template-language#data-ko-attributes

PS: I'm not sure if this is the same of #556 or something different.