EmailTemplates and PDF

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Maarten
    Member
    • Jun 2020
    • 56

    EmailTemplates and PDF

    Within email templates we use the PDF template engine quite a lot. Such as the each syntax: https://docs.espocrm.com/user-guide/...#each-iterator

    However, we regularly have that a moderator edits the emailTemplate using the WYSIWYG editor, which then creates an invalid PDF template syntax. E.g. by adding a <span> html tag within the {{each}} {{/each}} syntax.

    As a result the emailTemplate cannot be rendered anymore and the workflows fail.

    Is there a solution to this? E.g.
    1. update the editor to not create errors in the pdf templates?
    2. use markdown formatting in the emailTemplates instead of HTML?
  • yuri
    Member
    • Mar 2014
    • 8440

    #2
    As of v8.2 you can use iterate attribute. https://docs.espocrm.com/user-guide/...#each-iterator

    A special iterate attribute can be defined in an HTML tag. Allows to define iteration w/o breaking an HTML markup.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • Maarten
      Member
      • Jun 2020
      • 56

      #3
      ok, i will give that a try. I don't use tables in the HTML, but I guess this would work with any html attribute, like a span?

      Comment

      • yuri
        Member
        • Mar 2014
        • 8440

        #4
        It works with any tag.
        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

        Comment

        Working...