Inserts an image in a frame with a title and a caption
Parameters- src - The location of the image file
- title - The title to display
- description
Usage[{Photograph src="image name" title="title" description="description"}]
Example: [{Photograph src="/OpenForum/Images/index_abc.png" title="The Title" description="A caption here"}] renders as The Title A caption here |
renderer.sjssrc = extension.getAttributeValueByName("src");
title = extension.getAttributeValueByName("title");
description = extension.getAttributeValueByName("description");
if(src!=null)
{
src = new String(src);
if( src.indexOf('/')!=0 )
{
src = "/"+pageName+"/"+src;
}
parts = src.split(".");
thumbnail = parts[0]+".thumbnail.png";
data = ""+title+" "+description+" | ";
return data;
}
else
{
return "Invalid Image. No src attribute given.";
}by Admin on 21/04/2008 at 10:08 PM |
|