Translations of this page:

Image Gallery Slide Show

You may want to display images from certain gallery as slide show on the intranet homepage to spice things up a little.

This guide use Image Gallery component which is only available from Claromentis 5.6

Step1 Embed Component Code

Copy this code below to area where you want it displayed, usualy:

/interface_{custom}/main/right_column.html

or

/interface_{custom}/main/intranethome.html
<!-- IMAGE SLIDE SHOW -->
<!--@head@
 
<script type="text/javascript" src="/interface_{custom}/js/jquery.js"></script>
<script type="text/javascript" src="/interface_{custom}/js/jquery.cycle.all.pack.js"></script>
 
<script type="text/javascript">
$(document).ready(function() {
    $('.slideshow').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
});
</script>
-->
<div class="infobox" style="height:224px;">
<div class="slideshow">
<component class_key="gallery_last_images" album_id="12" thumb_width="330" thumb_height="500" count="10" layout="custom" template="gallery/includes/component_slideshow.html">
</div>
</div>
<!-- //IMAGE SLIDE SHOW -->
You can replace album_id=”1” with album ID you wish to show. Replace interface_{custom} with the name of the main customized interface for example interface_mycompany

Step2 Create Slide Show Component Template

Create file called

component_slideshow.html

containing this code:

<txt name="images_list_dsrc" datasrc="">
  <a name="image_details_href">
    <!-- div wrapper below is optional, it is used to crop portrait images to 200px height -->
    <div style="height:200px; overflow:hidden;">
     <img name="image">
    </div>
    <strong><txt name="title">image title</txt></strong>
  </a>
</txt>

upload it to

/interface{custom}/gallery/includes/
If the folder doesn’t exist, please create

Step3 Upload JQuery and call the script

Download this these javascript file:

Extract them to:

/interface_{custom}/js

Example:

 
customisation/image_gallery/slideshow.txt · Last modified: 07/06/2011 04:49 by admin
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki