Home content top
 
 
 Help and Support 

Creating a slideshow

A slideshow is a great way of adding interest to your frontpage, displaying images from an event, or creating adverts that draw attention to particular content.

 

Loading...


You can create a slideshow that is easy to update by combining some javacript code, in an article, and our Media XML Feed as follows:

 

Step 1 - Create a folder to store your images

First you'll need to create a usergroup group or mediafolder media flder to contain the images you wish to display. Next upload your images to the folder you've created. Note:Size your images before uploading to the dimensions you require and make a note of their width and height.

 

Step 2 - Create a Media feed

Next you want to create a Media feed in the Media RSS format for the slideshow folder you created. You can accomplish this as follows:

  • Select the Settings tab from the navigation tabs at the top of the Web Office.
  • Next select the API category from the options in the navigation on the left-hand side. This will reveal futher options, select the Media XML option.
  • Select the Add a new media feed task to begin creating your feed, give your feed a name e.g.frontpage slideshow, and click the Add button.
  • The properties of your new feed will now be displayed. Now make the following changes to the feed properties:
    The XML format should be set to to Format 4 - Media RSS
    Change the feed root group to the slideshow folder you uploaded your images to.
    In the Media types area select the image types you wish to display e.g.JPEG, GIF and PNG.
  • Make a record of the feed's url e.g.http://shareinsight.co.uk/Media/MediaXML.xml?fid=165
  • Once you have made these changes click the Save button in the top-right corner to commit your changes.

Step 3 - Add an article to display the Slideshow

Finally you need to create and article in the normal way. Once the document editor has opened to display the contents pane you can insert the relevant javascript code to create a slideshow as follows:

  • select the Source button to reveal the HTML code of the article.
  • Paste the following code into the article source:

    <script type="text/javascript" src="http://www.google.com/jsapi"></script>
    <script type="text/javascript" src="http://www.google.com/uds/solutions/slideshow/gfslideshow.js"></script>
    <style type="text/css">
    .gss a img {border : none;}
    .gss {
    width: 400px;
    height: 300px;
    color: #dddddd;
    background-color: #000000;
    padding: 0px;
    } </style>
    <script type="text/javascript">
    function load() {
    var samples = "http://shareinsight.org/Media/MediaXML.xml?fid=165";
    var options = {
    displayTime: 3000,
    transistionTime: 600,
    thumbnailTag : 'content',
    linkTarget : google.feeds.LINK_TARGET_SELF,
    pauseOnHover : true
    };
    new GFslideShow(samples, "slideshow", options);
    }
    google.load("feeds", "1");
    google.setOnLoadCallback(load);
    </script>
    <div align="center">
    <div id="slideshow" class="gss">
    <div align="left">Loading...</div>
    </div>
    </div>
  • Change the url in the following line:var samples = "http://shareinsight.org.uk/Media/MediaXML.xml?fid=1"; to contain the url of the feed you created.
  • Modify the dimensions, highlighted in red in the code above, to be the dimensions that you wish your slideshow to display at.

Finally publish your article and your slideshow should be visible.

Using a slideshow for adverts

It's possible to link the images in a slideshow to other content. This means you could use it for displaying adverts. Link your images as follows:

  1. Locate your image and select it to display its properties.
  2. Under 'Extra link' click the 'Set link' button; the 'link' browser will open in a new window.
  3. Select the content you want to link to.  
  4. Click Save to commit your changes.

If you've published your slideshow in the past you'll notice your images don't link to your content. This is because it's stored in memory so takes awhile to update.

Troubleshooting

If your slideshow doesn't display check the following:

  • Make sure the feed url is identical to the feed on your site and is surrounded by quotes.
  • Check your feed is set to format 4 - Media RSS.
  • Copy and paste the feed url into your browser's address bar and hit enter to view the feed. It should list the images you've uploaded. If no images are displayed check you have uploaded images to the specified folder and that their format matches the image types you selected to be displayed in your feed.

The changes I make to my slideshow don't display? Once you've published your slideshow successfully it is stored in memory so any updates take a while to display.

Feedback: (page   1   2)
Justin Ruffell-Ward - Insight Support (shareinsight.co.uk)12/08/2009 15:10
Malcolm, I've taken a look and I'm not sure the reason why your slideshow isn't displaying correctly. I thought it might be because the images are located in a media folder below a group that is only visible to group members but from my testing this should work ok but isn't in your case.

My only other thought was that it was a caching issue e.g.you viewed the article yesterday but then only added the images today. When did you add your images to the media folder.

Any one else had similar problems with this and managed to solve it.
Malcolm Brown (citychurchdundee.org)13/08/2009 10:11
Hi Justin,

Got it working.

I had created the slide show folder first but after what you said I moved it to the top level on the site where it is visible to everyone deleted the RSS feed and made a new one. It now works fine in public and members only pages.

I suspect I had done something wrong somewhere along the line.

Thanks this is great.
Marcel Lenormand (www.rock.gg)20/11/2009 17:18
We're having frequent issues with the delay it takes to update with changes made to the pictures folder.

It also seems to behave differently (showing OLD content) in Internet Explorer.
David Wallace (www.wharfedale-vineyard.org)15/01/2010 13:09
Our frontpage slideshow randomises the sequence of the photos for added interest. wharfedale-vineyard.org To achieve this I had to modify the google javascript - ask if you want a copy of the code. It's been working for 15 months now, with only occasional glitches. Time to update our set of photos I think.
Tony Ingall (www.chasefamilychurch.com)25/02/2010 16:20
what's the best way to contect you? would like a copy of the code
Kevin King (Guest)08/03/2010 11:25
Hi, Justin and Malcolm

When I first tried to create a feed in my sandbox area I had a similar problem to Malcolm's; so since the site was not yet live I tried inserting the same feed into my top level home page. After that it worked fine in both the sandbox area and the top level page. However, I had forgotten to delete it from the front page. When I went back later to delete it, it disappeared from my sandbox also. Only then did I realise that, although I was using different themes for the sandbox and front page, they were using the same template. So I made a fresh copy of the template with a different name for my sandbox, re-inserted the code and all was well.

I have since set up a different feed in the sandbox area using a template that wasn't used anywhere else, and that worked first time.

So I'm wondering if the original problem may have been to do with permissions for setting up the feed, as I was originally trying to define a feed that would affect the top level template, but doing so from the sandbox template level, if you see what I mean.
Lee Hopper (www.chcc.org.uk)08/04/2010 23:01
Just wondering what I am doing wrong. I thought the images would be resized to fit in the window that you define, but it does not seem that way. I am only getting the top corner of the image.

Do you know of a way to change this so the all of the image is in the window? Here is an example on my site: http://bit.ly/cAHMRG

I have flicked through the code from Google, but there is a heck of a lot there and thought I would ask you guys first. Thanks
Justin Ruffell-Ward - Insight Support (shareinsight.co.uk)09/04/2010 12:01
Your images need to be created at the dimensions that you've set in the code listed above.
Lee Hopper (www.chcc.org.uk)10/04/2010 10:50
Oh well, looks like I'm going to have to have multiple versions of all images. I am using Flickr as well, but on some parts of the site, it's good to just have a continually changing set of images.
Justin Ruffell-Ward - Insight Support (shareinsight.co.uk)23/07/2010 14:46
For some reason the images don't seem to display when in a media folder that is below a group that has limited visibility i.e.isn't visible to everyone. If you need to display your slideshow in a secure area of the site you'll need to therefore place the media folder containing the images in a none secure area e.g.off the root group but keep the article they are placed in secure or place then directly into the secure user group folder , rather than a sub media folder.
(page   1   2)