Common:Adding Images to Templates

From AgileApps Support Wiki
Revision as of 00:04, 12 December 2012 by imported>Aeric

In HTML, an image is referenced using a tag that has the form: <image src="...">, where the src attribute contains an absolute or relative path to the image. That path can be a file path like ../images/local_image_file.jpg or it can be a URL of the form http://....

When the email arrives in a recipient's inbox, file paths are obviously of little value. (They would only work if recipient happened to have all of the right images at the right locations on their local system. Small chance!) So HTTP URLs are used to access the images.

To get an image URL:

  • First upload the image to the platform as Public Documents.
    (URLs become available when files) are made public.
  • Then click the tilted "figure-8" icon on that page File:CopyShortURL.png.
    A dialog appears that has the URL selected.
  • Copy the URL.
    For example, by pressing Ctrl+c.

You can then insert the URLs into an <image src="..."> tag.

The resulting tag as the form <image src="https://{yourDomain}/networking/...">. The link then works in the recipient's email, because the image is publicly available.