Announcement

Collapse
No announcement yet.

PDF Generation with custom image fields

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

  • PDF Generation with custom image fields

    Hey all,

    I have a modded product section. It includes impression pictures and material pictures. All is working fine within relations to other fields. I get stuck when it comes down to PDF generation, for the life of me I cannot get the impression images to display.

    I've tried a lot of {{#each whatever}} combinations to get the PDF to display anything. My single-image field "example" (voorbeeld) is rendering just fine.

    Does anybody know how to do this?

    Failing code example:
    Code:
    <p>{{imageTag cVoorbeeldId}}</p>
    {{#each cImpressieIds}}
    <p>{{imageTag cImpressieIds}}</p>
    {{/each}}​
    Attached Files

  • #2
    Hey,

    try replacing
    HTML Code:
    {{imageTag cImpressieIds}}
    by
    HTML Code:
    {{imageTag this}}
    Documentation reference : https://docs.espocrm.com/development...emplates/#each

    Comment


    • Machiel
      Machiel commented
      Editing a comment
      Worked like a charm. I knew it was something simple/stupid I overlooked
Working...
X