Click here to Skip to main content
Click here to Skip to main content

Silverlight Slide Show in SharePoint

, 13 Feb 2009
Rate this:
Please Sign up or sign in to vote.
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> 
  <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.

<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)

About the Author

Zabiullah Sheik Ismail
Architect
India India
Zabiullah SI is working for an MNC in Chennai.
 
Blog : http://zabistop.blogspot.com

Comments and Discussions

 
GeneralError when the page is loaded Pinmembersweetpotatop21-Sep-09 8:05 
QuestionHow can I link to a new url when click the photo? Pinmemberwhalelover25-Jun-09 22:44 
QuestionPossibility of make this into a customized web part Pinmembersurya kiran4-May-09 4:32 
QuestionHard code your slides? PinmemberSkully102216-Feb-09 4:39 
AnswerRe: Hard code your slides? PinmemberZabiullah Sheik Ismail16-Feb-09 17:58 
GeneralRe: Hard code your slides? PinmemberSike Mullivan19-Feb-09 12:44 
GeneralRe: Hard code your slides? Pinmembersweetpotatop21-Sep-09 6:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web01 | 2.8.140709.1 | Last Updated 13 Feb 2009
Article Copyright 2009 by Zabiullah Sheik Ismail
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid