TomRed.net

  • Increase font size
  • Default font size
  • Decrease font size
Subscribe Bookmark and Share
Home Tutorials CSS FatWire Output HTML or XHTML Compliant Images

FatWire Output HTML or XHTML Compliant Images

User Rating: / 0
PoorBest 

There are only two edits necessary to make this work firstly you need to change the <%=ics.GetVar("Image")%> in the render:getbloburl tag to get the variable holding your image list output. The same is necessary for the ImageAltText in the alt attribute of the <img> tag.
Note:

  • HTML 4.01 compliance there is no / at the end of the <img> tag.
  • XHTML 1.x compliance there is a / at the end of the <img tag.

It is necessary to have an alt attribute in either case. If the image is a graph/map etc then it is also advised to have a longdesc attribute which is a URL to a page describing the Image in detail.

	<render:getbloburl outstr="SRC_URL" blobtable="MungoBlobs" blobkey="id" blobcol="urldata" 
	blobwhere='<%=ics.GetVar("Image")%>' blobnocache="false" />

<%-- HTML 4.01 no closing / --%>
<img src='<%=ics.GetVar("SRC_URL").replaceAll("&","&amp;")%>' 
	alt='<%=ics.GetVar("ImageAltText")%>'
	class="infoicons">

<%-- XHTML 1.0 with closing / --%>
<img src='<%=ics.GetVar("SRC_URL").replaceAll("&","&amp;")%>' 
	alt='<%=ics.GetVar("ImageAltText")%>' 
	class="infoicons" />