display image on templates

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MrThiemann
    Member
    • Jan 2022
    • 32

    display image on templates

    Hey =)
    I would like to add my logo to the templates.
    Unfortunately, this is not printed / displayed.

    I'm trying to add it "quite normally" via the mask. It is then also displayed in the "Template Designer".
    I go to print, but then no image is displayed?
    Am I forgetting something?

    I then see the following HTML code:
    <div style="text-align: right; line-height: 0.1;"><img src="https://www.espocrm.com/images/espocrm-logo.png" style="width: 25%;"></div>
  • emillod
    Active Community Member
    • Apr 2017
    • 1405

    #2
    It's possible, you should upload logo to your EspoCRM and use link inside your template. Here you have example:
    <p style="text-align: right; "><img src="?entryPoint=attachment&id=60d04b950c076c6f2" width="200px" style="float: right;" class="note-float-right"><br></p>

    Comment

    • MrThiemann
      Member
      • Jan 2022
      • 32

      #3
      Originally posted by emillod
      It's possible, you should upload logo to your EspoCRM and use link inside your template. Here you have example:
      <p style="text-align: right; "><img src="?entryPoint=attachment&id=60d04b950c076c6f2" width="200px" style="float: right;" class="note-float-right"><br></p>
      i found the problem why no images are displayed!
      For example, if I change the size and work with "%" for "width", it doesn't work. However, if I write "width: 200px", then I also see the image
      Maybe a bug?

      doesn't work:
      Code:
      <div style="text-align: right; line-height: 0.1;"><img src="https://www.espocrm.com/images/espocrm-logo.png" style="width: 25%;"></div>
      it works:
      Code:
      <div style="text-align: right; line-height: 0.1;"><img src="https://www.espocrm.com/images/espocrm-logo.png" style="width: 200px;"></div>

      Comment

      Working...