Announcement

Collapse
No announcement yet.

TIP: Using dynamic content in Mail-Merge Template

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • TIP: Using dynamic content in Mail-Merge Template

    I wanted to make a general-purpose Lead PDF Template that would have my letter-head and dynamic content. Instead of making a template for each campaign, I added a cMailMergeMessage entity under Campaign, and then inserted {{{campaign.cMailMergeMessage}}} into the template.

    Caveats:
    1. Image-Markdown does not work (such as ![QR Code](./images/qrcode.png) ), so instead, I first uploaded image into the Template-editor, then copy-pasted the resulting html into the entity field.
      Code:
      <img style="width: 122px; height: 122px;" src="?entryPoint=attachment&id=66c4f0a85550bca21">
    2. Make sure the triple-{{{ the placeholder. If you only use two {{, the inserted text will contain <br>
    Happy Espo'ing

  • #2
    Does that also mean all of your Campaign have this hidden field or duplicate data as well?

    Comment


    • #3
      Yes. I thought it was best to store the information there, rather than have 1 PDF Template per Mailing Campaign.

      Obviously if I have like a 'New Customer Letter', I wouldn't need dynamic information.

      So in the campaign I have:
      Click image for larger version

Name:	image.png
Views:	63
Size:	18.6 KB
ID:	109695
      I type in my custom message, and then the template looks like:
      Click image for larger version

Name:	image.png
Views:	35
Size:	18.6 KB
ID:	109696

      Comment

      Working...
      X