Justin Ruffell-Ward - Insight Support
posted this on December 31, 2010 16:31
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.
You can create a slideshow that is easy to update by combining some javascript 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
group or
media folder 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:
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:
Finally publish your article and your slideshow should be visible.
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:
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.
If your slideshow doesn't display check the following:
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.
Comments
Can i get the image captions to display in the slide show? i can't work out how
No, it's not possible to display the captions using this code.
Hi Justin, How do you add extra images to the slide show once it is set up?
Add the new images to the folder that holds the images already included in the slideshow and they'll automatically appear. If they don't appear immediately they will do within a few hours.
Want to get rid of the black background when your slideshow is loading?
Simply insert this code above the slideshow code, where #FFF is the colour of your background (#FFF is a shortcut for #FFFFFF = white)
<style type="text/css">
.gss {
background-color: #FFF !important;
}
</style>
Image ordering
If you want to control the order of images in the slideshow, simply name them 1-family, 2-youth, 3-picnic etc, whatever the subjects are.
As long as "Item ordering:" is set to "Alphabetic - ascending" in the Slideshow media feed (which it is by default), your slides will order by the numbers you've inserted.
NB Once you've made a change like this or to the actual images in the folder, it can take a little while for the slideshow to update as the XML feed is cached once read and not re-read immediately a change is made.
Add links to your slideshow
Again, this is easy - go to each image in your slideshow media folder and add a link to the image. This will then provide a link when the image is displayed in the slideshow. See the note above re waiting for this change to update.
Is it possible to remove the bar at the bottom of the slideshow when hovering over it (the 'previous', 'pause/play' and 'next picture' buttons)? Thanks.
Hi James
You can experiment with the following settings in the code - change the first instance of 'true' in the following line to 'false' as below:
var options = { fullControlPanel: false, fullControlPanelSmallIcons: true,
That will remove the controls, but it will still allow you to pause the slideshow if you hover your mouse over the image. To get rid of this as well - amend the following line as shown:
pauseOnHover : false
Be careful you don't delete any of the punctuation as you edit these lines, otherwise they may not work.
I have created the slideshow as described above and linked to content within the site. Thank you for the instructions! Can you tell me how long it should take for the links to work, please? I created the slideshow last night and this morning (c12 hours later) it was still not working. I have now relinked each of the pages. How long should I wait?
Regards
Catherine
I have created this and all works well but are you able to have it not as the home page, so the slide show shows up on another page, i have tried this but all i seem to get is a link to the page
Paul
Hi Paul
The slideshow will work on any page - it sounds that you do not have a layout applied to the group the article is in or you have not set the article as the group home page. If you cannot get it to work please email support@endis.com
Paul
Is it possible to make use of the thumbnails so users can see in advance the images to be displayed and click on them as required? Perhaps in place of the 'previous' and 'next' icons...
Hi Gregor
I would suggest looking at other javascript slideshows that are freely available on the web. The customization options for the Google Slideshow are available at:-
http://www.google.com/uds/solutions/slideshow/reference.html
Paul
Hi there,
I have one slideshow already in operation on a page but want to add a second - where specifically do I have to add the number '2' to the source code?
Thanks,
James.
P.S. The first slideshow I created works great - thanks for the assistance!
Hi,
Above, a comment says "Is it possible to remove the bar at the bottom of the slideshow when hovering over it (the 'previous', 'pause/play' and 'next picture' buttons)?" -
But I would like to HAVE the previous/next buttons! How do I create this??
Thanks,
Jennie
Hello,
I have a functioning slideshow on my website which looks fantastic and works fantastic, I just want to know if there is anyway of linking the images to other pages on the website when you click on them.
Thank you in advance
A link can be set on the image by selecting the image under the media tab to go into the image properties and clicking on the 'Set Link' button
James, check the code underneath the "var samples" line where you enter the feed address has the following settings – it should have if you've copied the code correctly.
var options = { fullControlPanel: true, fullControlPanelSmallIcons: true,
If the items don't appear, try viewing in a different browser.
Al