Click here to Skip to main content
1,837 members
Articles / Security / HTML
Article

Silverlight Slide Show in SharePoint

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
12 Apr 2012CPOL 6.2K  
This article explains how to display Silverlight powered slide show in SharePoint using Slide.Show.

Introduction

This article explains how to display Silverlight powered slide show in SharePoint using Slide.Show. Vertigo Software has released this full-featured interactive open source Silverlight 1.0 control for publishing photo slides on the web. Slide.Show version 2 is also available in CodePlex which is a Silverlight 2.0 control.

Download Slide.Show from CodePlex.

This article uses Slide.Show – Version 1 to display silverlight powered slide show in a SharePoint page.

image001.jpg

HTML Page


Create a basic html page and add the following HTML source. Upload this HTML file to the document library/ Pages Library.

HTML
<html> 
  <head> 
    <title>Silverlight slide show in SharePoint using Slide.Show</title> 
    <script type="text/javascript" src="Silverlight.js"></script> 
    <script type="text/javascript" src="SlideShow.js"></script> 
  </head> 
<body> 
<script type="text/javascript"> 
  new SlideShow.Control(new SlideShow.XmlConfigProvider()); 
</script> 
</body> 
</html>

If you want to display the slide show in your home site then add a “Page Viewer WebPart” and point the created html from document library.

Document Library / Pages Library

Create a folder in document library of SharePoint site to store HTML and other files and also created two XML files Configuration.xml and Data.xml in the same location. I have used the Pages Library of my publishing site.

image002.jpg

Configuration.xml

This file holds all configuration details like width, height, background, modules and transition information.

Please refer the Quick Start Guide from CodePlex for understanding the schema of Configuration.xml and Data.xml.

Data.xml

Use Data.xml to create albums and slides. Use SharePoint site’s Image Library to hold all the images. This file refers the images from Image Library. See the following sample Data.xml.

HTML
<data transition="CrossFadeTransition"> 
  <album 
    title="Album Title #1" 
    description="Album Description #1" 
    image="http://YourSite/ImageLibrary/Album1.jpg"> 
    <slide 
        title="Slide Title #1" 
        description="Slide Description #1" 
        image="http://YourSite/ImageLibrary/Album1/Image1.jpg"
        thumbnail="http://YourSite/ImageLibrary/Album1/Image1.jpg"/> 

    <slide 
        title="Slide Title #2" 
        description="Slide Description #2" 
        image="http://YourSite/ImageLibrary/Album1/Image2.jpg"
        thumbnail="http://YourSite/ImageLibrary/Album1/Image2.jpg"/>

    <slide 
        title="Slide Title #3" 
        description="Slide Description #3" 
        image="http://YourSite/ImageLibrary/Album1/Image3.jpg"
        thumbnail="http://YourSite/ImageLibrary/Album1/Image3.jpg"/>       

        ...
</album> 
...
</data>

Use ssgenerator for resizing image and Data.xml file generation from CodePlex.

image003.jpg

Slide.Show supports 300 configurable options. Now it is very easy to play with Silverlight with the use of Slide.Show in your SharePoint site.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
India India
Zabiullah SI is working for an MNC in Chennai.

Blog : http://zabistop.blogspot.com

Comments and Discussions

 
-- There are no messages in this forum --