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

Silverlight Slide Show in SharePoint

By , 13 Feb 2009
 

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
Member
Zabiullah SI is working for an MNC in Chennai.
 
Blog : http://zabistop.blogspot.com

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralError when the page is loadedmembersweetpotatop21 Sep '09 - 8:05 
QuestionHow can I link to a new url when click the photo?memberwhalelover25 Jun '09 - 22:44 
QuestionPossibility of make this into a customized web partmembersurya kiran4 May '09 - 4:32 
QuestionHard code your slides?memberSkully102216 Feb '09 - 4:39 
AnswerRe: Hard code your slides?memberZabiullah Sheik Ismail16 Feb '09 - 17:58 
GeneralRe: Hard code your slides?memberSike Mullivan19 Feb '09 - 12:44 
GeneralRe: Hard code your slides?membersweetpotatop21 Sep '09 - 6:52 

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

Permalink | Advertise | Privacy | Mobile
Web02 | 2.6.130516.1 | Last Updated 13 Feb 2009
Article Copyright 2009 by Zabiullah Sheik Ismail
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid