Hi
I have made a client a website and on index.php at the top is a slideshow using nivoslider and I have put the following code in
It has made the slideshow disappear on the website as am guessing is because no images for it have been uploaded via the admin side but I can't see anywhere on the admin side to upload the images for the slideshow
Is that code all ok above?
Thank you in advance
Kind regards
Ian
I have made a client a website and on index.php at the top is a slideshow using nivoslider and I have put the following code in
- Code: Select all
<?php require_once( 'couch/cms.php' ); ?>
<cms:template title='Home'>
<cms:editable name='page_title' label='title' type='text' />
</cms:template>
<cms:template>
<cms:template title='Slideshow'>
<cms:repeatable name="slider" label='slider' >
<cms:editable name='slider_image'
label="Slideshow Image"
width="960"
height="300"
show_preview='1'
preview_width="150"
type="image" />
<cms:editable name='slider_text'
label="Text"
type="text" />
<cms:editable name='slider_caption'
label="Caption"
type="text" />
</cms:repeatable>
</cms:template>
</cms:template>
<title><cms:show page_title/></title>
<?php
$title = "";
$pgDesc="";
$pgKeywords="";
include ( 'includes/header.php' );
?>
<!--CONTENT-->
<div id="column-top-whole">
<div class="slider-wrapper theme-default">
<div id="slider" class="nivoSlider">
<cms:show_repeatable 'slider' >
<img src="<cms:show slider_image />" />
</cms:show_repeatable>
<!--<img src="images/slideshow/slide-one.jpg" alt="" />
<img src="images/slideshow/slide-two.jpg" alt="" title="" /></a>
<img src="images/slideshow/slide-three.jpg" alt="" title="" />
<img src="images/slideshow/slide-four.jpg" alt="" />
<img src="images/slideshow/slide-five.jpg" alt="" />
<img src="images/slideshow/slide-six.jpg" alt="" />
<img src="images/slideshow/slide-seven.jpg" alt="" />-->
</div>
</div>
</div>
<script type="text/javascript">
$(window).load(function() {
$('#slider').nivoSlider({
effect: 'random', // Specify sets like: 'fold,fade,sliceDown'
slices: 15, // For slice animations
boxCols: 8, // For box animations
boxRows: 4, // For box animations
animSpeed: 500, // Slide transition speed
pauseTime: 3000, // How long each slide will show
startSlide: 0, // Set starting Slide (0 index)
directionNav: true, // Next & Prev navigation
controlNav: true, // 1,2,3... navigation
controlNavThumbs: false, // Use thumbnails for Control Nav
pauseOnHover: true, // Stop animation while hovering
manualAdvance: false, // Force manual transitions
prevText: 'Prev', // Prev directionNav text
nextText: 'Next', // Next directionNav text
randomStart: false, // Start on a random slide
beforeChange: function(){}, // Triggers before a slide transition
afterChange: function(){}, // Triggers after a slide transition
slideshowEnd: function(){}, // Triggers after all slides have been shown
lastSlide: function(){}, // Triggers when last slide is shown
afterLoad: function(){} // Triggers when slider has loaded
});
});
</script>
<?php include( 'includes/footer.php' ); ?>
<?php COUCH::invoke(); ?>
It has made the slideshow disappear on the website as am guessing is because no images for it have been uploaded via the admin side but I can't see anywhere on the admin side to upload the images for the slideshow
Is that code all ok above?
Thank you in advance
Kind regards
Ian