Help with image on template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ashuk38
    Junior Member
    • Nov 2019
    • 18

    Help with image on template

    Hi Guys

    Been scratching my head all evening with this and hope that someone can help. I am creating a template from my contact which has an image of the person, when i go to print to pdf and then select the template i want it to display the picture on the page. After looking at the documentation for espoCRM i can see that i have to put:-

    ​​
    <img src="{{file imageId}}"> The image field name in my contacts is "driverPhotoName". When i use the following string and then print to pdf and select the template it shows

    <img src="filename.jpg" as text in the body of text

    I want it to display the photo. however i think its the way im typing this, i have tried putting the word file in front of it but getting no joy. If my fieldname is "driverPhotoName" how would you type this in?

    I'm assuming there is a really simple explanation but can't seem to get it right. I have also tried <img src="{{file driverPhotoName}}">

    Any help would be appreciated

    Thanks
  • yuri
    Member
    • Mar 2014
    • 8440

    #2
    Hi,

    Did you insert a tag in code view mode (you need to switch editor to code view, the button at the right).
    Last edited by yuri; 11-26-2019, 07:06 AM.
    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

    • ashuk38
      Junior Member
      • Nov 2019
      • 18

      #3
      Hi Yurlkuzn, Yep all sorted thanks.. I was having one of those senior moments lol...

      Comment

      Working...