Sure I can; First you need to create an area intended to hold your new slider
component. Here is the component template script:
[code][#if model.images?has_content]
<div class="slider-wrapper" >
<div id="slides">
[#list model.images as image]
[#if image_index < maxImages]
[#if image.link?has_content]
<img src="${stkfn.getAssetVariation(image,
'gallery-thumbnail').link}"/>
[/#if]
[/#if]
[/#list]
</div>
</div><!-- end photo-index -->
[#else]
<div id="photo-index">
${i18n['imageGallery.noImages']}
</div><!-- end photo-index -->
[/#if]
<style>
.nivoSlider {
position:relative;
background:url(images/loading.gif) no-repeat 50% 50%;
}
.nivoSlider img {
position:absolute;
top:0px;
left:0px;
display:none;
}
.nivoSlider a {
border:0;
display:block;
}
</style>
<script type="text/javascript">
var $ = jQuery.noConflict();
jQuery(window).load(function() {
$('#slides').nivoSlider({
effect:"fade",
slices:15,
boxCols:8,
boxRows:4,
animSpeed:500,
pauseTime:3000,
startSlide:0,
directionNav:true,
controlNav:true,
controlNavThumbs:false,
pauseOnHover:true,
manualAdvance:false
});
});
</script>[/code]
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=a296b0f2-5b0f-47e3-90da-4a57788f51b2
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------