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.
Important: Limit the number of images to something like 5-6 as with such a slideshow the browser will load all of the images before it starts playing – if you've got too many, or the images haven't been correctly optimised, then there will be a pause and a blank area where the slideshow is before it starts playing.
Consequently, using .jpeg images which can be optimised/compressed rather than .png images which can't is the best option.
By default, the images will display in alphabetical order, so if you name the images in the media folder as "1", "2", "3, etc. they will display in that order.
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, (with the article referenced from within the layout in which you wish it to display). 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
Is it possible to put videos in the slideshow as well?
Hi Nick, I'm not sure about that one, I think the slideshow code (it's not ours) may only be built to handle still images, but it might it be worth digging round on the web to see what's possible – I think the key thing to include in the search is Google and gfslideshow.js from the second line of the search.
Let us know how you get on.
Al
Hi Nick - there are many different javascript slideshows that can be used on the Insight platform - one I have seen, and will probably use soon, is AnythingSlider - (http://css-tricks.com/examples/AnythingSlider/) - this includes the ability to have a 'video slide'
Paul
this is not working, slideshow remains black. website is: www.christlifecenter.com it is on the Events and Ministries page. Thanks for your help
Hi Jeremy - in the article it highlights the fact that certain lines in red need modifying - I can see that you have not updated the line
var samples = "http://shareinsight.uk.endis.com/Media/MediaXML.xml?fid=165";
Please update this with the correct URL.
If you are still having a problem please email support@endis.com with the details.
Paul
I want to add a 2nd slideshow on the main page and see from troubleshooting
To add a second slideshow to the page, change the following words in the code (e.g. by appending a number '2'): gss, samples, options, slideshow, load (except google.load).
The above doesn't make sense to me the only place I can find a number in the code is google.load("feeds", "1"); changing this to a '2' only one of the slideshows loads I can't get both to work
Please help
Hi Robert, I believe it's not existing numbers which you change but numbers you add, so instances of
gss, samples, options, slideshow, load (except google.load)
become
gss2, samples2, options2, slideshow2, load2 (except google.load).
Note there are no spaces between the name and the number.
So the line – var samples – becomes – var samples2
I think you may need to change the number 1 you changed to 2 back to 1
Hope that helps – if you get further problems, copy your original post and this reply and send to support@endis.com
Al
Followed all steps not working..Website www.highburybaptistchurch.org thanks
Hi Richard - It would be best if you send an email to support@endis.com and give details of where on the site the slideshow has been implemented and is not working as I cannot see it..
Paul
Hi Paul many thanks for the reply,, i have followed the steps created a folder for the images 'slide images' and followed all the other steps.i want to use the slide show on the front-page..its been running as 'loading for over an hour now' when i tried previewing it
As you have not saved the layout then we cannot see what changes you have made - please send an email to support@endis.com with the information.
Hi Paul,
what layout are you referring i cant seem to understand..i have saved what i created in the documents published folder as 'frontpage'.Thanks
Is there a way to get the images to display in a random order rather than in a specified order?
Hi Andy, I happened to see your comment this morning about randomizing the slides and asked one of our tech guys what he thought. He found the following via Google. Now, it's important to say that we haven't tried this and we can't support it, so I would definitely make a backup copy of your code if it al goes wrong, but it would be worth playing with – let us know how you get on : )
http://schock.net/articles/2010/05/13/how-to-make-googles-ajax-slid...