Add Logo to template?

 3 Replies
 0 Subscribed to this topic
 14 Subscribed to this forum
Sort:
Author
Messages
thummel1
Veteran Member
Posts: 121
Veteran Member
    Hi,

    I have a template that's used to display the information from a smart notification. In the template, I have html code to bring in our company logo; however, that logo is saved in one of my file folders. That's not an efficient way of getting the logo into the template. What if I change roles or leave the organization someday? Then the path to the logo would become obscolete.

    My preference would be to save the logo somewhere with the Smart Notification tool, and paste that location into the hTML code of my template whenever I need it.

    Is that possible? Thanks!
    The.Sam.Groves
    Veteran Member
    Posts: 89
    Veteran Member
      On top of that, right now unless you've got a set-up different than what you've described, you are the only one who can see that logo.

      The first and easiest way would assume that you already have a working web site outside of Lawson and have your web admin upload the logo there. Then you'd just link to it as normal. (i.e. img scr="http://www.mywebsite.com/logo.png").

      The other way would be to convert the logo into base64 and embed it as a DATA URI. Refer to here http://stackoverflow.com/...edding-base64-images for some discussion on that topic.

      The first method is what you really want. Especially if you want to reuse the logo in many notifications.
      Matthew Nye
      Veteran Member
      Posts: 514
      Veteran Member
        i was going to same the same thing as Sam.

        but to expand on his first suggestion, add the image as a file in SmartNotes, then view the file and copy URL (right click view properties). This is the URL youll use for your src in the img tag.
        If any of my answers were helpful an endorsement on LinkedIn would be much appriciated! www.linkedin.com/pub/matthew-nye/1a/886/760/
        The.Sam.Groves
        Veteran Member
        Posts: 89
        Veteran Member
          One thing to be aware of when attaching it as a file to SmartNotes is the accessiblity of the file.

          St Luke's, for instance, keeps S3 behind a firewall. Which means the image can only be seen from inside the company intranet if you attach it as a file in Smartnotes directly.

          If your system is publiclly accessible, or at least the attachement's directoy is, and/or if your notes are only going to be consumed and read while on the right side of the firewall, then the issue is moot.

          But if you have folk who will be accessing the notification from the public side of the firewall, then the image needs to be stored in a publiclly accessible location to be viewable.

          That IMO is about the only real strong point about converting the logo to base64 and embeding it in a master template, with the rest of your templates using the master template. As long as the viewer is capable of displaying DATA URI images, it doesn't matter where they are, since you are handing the image over to them with the email.