Web Part: CMS Image Rotator

Modified on 2011/09/04 17:26 by Charles — Categorized as: CMS, Web Parts


CMS Image Rotator Web Part

The CMS Image Rotator Web Part displays a random image on a web page. Images can be displayed using two options:
An alternative Rotator Web Part is RAD Rotator for Workflows used with Jetfire Workflows.

Access

The Web Part is accessed from the CMS Designer Web Parts Library.

Image Rotator Features


Image Rotator Editor

Image Rotator Editor

Editing the Image Rotator Part

The figure shows the editor for the Image Rotator Web Part. This is shown to the user, when the Image Rotator is edited.

Edit properties

Custom Edit properties include:

Image Rotator Sample XML file

The Image Rotator Xml file is based on the Image Rotator XML file. The XML file has the following elements: Advertisements – The Advertisements block contains one or more Ad sections. Each Ad describes an Image. Properties for each Ad include:

Sample XML file

The following xml snippet is a sample of the XML file used with the CMS Image Rotator. To use the XML file for your application, download Image Rotator sample xml file and modify it accordingly.
<?xml version="1.0" encoding="utf-8" ?>
<Advertisements xmlns="http://schemas.microsoft.com/AspNet/SmartRotator">
	<Ad>
		<ImageUrl>~/images/WebTasks.jpg</ImageUrl>
		<Height>400</Height>
		<Width></Width>
		<NavigateUrl>http://TrackerRealm.ca</NavigateUrl>
		<AlternateText>Check out Tracker Tasks</AlternateText>
		<Target></Target>
		<Keyword>Workers</Keyword>
		<Impressions>1</Impressions>
	</Ad>
	<Ad>
		<ImageUrl>~/images/WebBlog.jpg</ImageUrl>
		<Height>200</Height>
		<Width></Width>
		<NavigateUrl>http://TrackerRealm.ca</NavigateUrl>
		<AlternateText>Check out the Tracker Blog</AlternateText>
		<Target></Target>
		<Keyword>Power Users</Keyword>
		<Impressions>1</Impressions>
	</Ad>
	<Ad>
		<ImageUrl>~/images/WebCalendar.jpg</ImageUrl>
		<Height>300</Height>
		<Width></Width>
		<NavigateUrl>http://TrackerRealm.ca</NavigateUrl>
		<AlternateText>Check out the Tracker Calendar</AlternateText>
		<Target></Target>
		<Keyword>Users</Keyword>
		<Impressions>1</Impressions>
	</Ad>
</Advertisements>