Views for Mashups and Mashables : Built-in Presto Views : Template View : Use Images in Template Code
Use Images in Template Code
To use images in a custom view or template, they must be hosted outside of Presto at a fully-qualified URL or a Presto administrator must upload the image file to Presto. Image files may be in any commonly-used format for web pages, such as GIF, PNG or JPEG.
You can add images to a custom view or template using CSS styles or using an <img> tag in the view or template HTML code. This is an example using CSS and an external image:
...
<div style="height: 180px; width: 250px;
background:url('http://myOrg.com/images/logo.png"></div>
...
With images that have been uploaded to Presto you simply use the Presto URL. The full path for this URL is defined when the resource is uploaded, but is generally in the form http:app-server:port/presto/files/filename. This example uses an <img> tag and a Presto URL:
...
<img src="http://localhost:8080/presto/files/myHeader.png"/>
...
Copyright © 2013-2015 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback