Click here to Skip to main content
Licence CPOL
First Posted 13 Feb 2009
Views 26,861
Bookmarked 13 times

Silverlight Slide Show in SharePoint

By Zabiullah Sheik Ismail | 13 Feb 2009
This article explains how to display Silverlight powered slide show in SharePoint using Slide.Show.

1

2

3
1 vote, 50.0%
4
1 vote, 50.0%
5
4.67/5 - 2 votes
μ 4.67, σa 1.24 [?]

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

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralError when the page is loaded Pinmembersweetpotatop9:05 21 Sep '09  
QuestionHow can I link to a new url when click the photo? Pinmemberwhalelover23:44 25 Jun '09  
QuestionPossibility of make this into a customized web part Pinmembersurya kiran5:32 4 May '09  
QuestionHard code your slides? PinmemberSkully10225:39 16 Feb '09  
AnswerRe: Hard code your slides? PinmemberZabiullah Sheik Ismail18:58 16 Feb '09  
GeneralRe: Hard code your slides? PinmemberSike Mullivan13:44 19 Feb '09  
GeneralRe: Hard code your slides? Pinmembersweetpotatop7:52 21 Sep '09  

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.

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