Forum for discussing general topics related to Couch.
4 posts Page 1 of 1
Hi

I am trying to make a site with a slideshow that the client can control and add/edit images their selves, I have gallery.php in the main root of the site and the coding is below

Code: Select all
<?php require_once( 'cms/cms.php' ); ?>

<cms:template title='Gallery'>
<cms:repeatable name="slider" label='slider' >
   <cms:editable name='slider_image'
      label="Slideshow Image"
      width="640"
      height="430"
      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>

<title><cms:show page_title/></title>

<?php
$title = "Gallery";

$pgDesc="";

$pgKeywords="";

include ( 'includes/header.php' );
?>

<div class="clear"></div>

<div id="column-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>
    </div>
</div>

</div>

<?php include( 'includes/footer.php' ); ?>

<?php COUCH::invoke(); ?>


when I go the gallery on the back end and click the plus icon to add a slideshow image, it just keeps loading and nothing else, can't see where I gone wrong or I do need to create a php file in the snippets folder?

Kind regards

Ian
Hi Ian,

I can't see anything wrong with the code.

Perhaps it is a JS issue. Please take a look at Chrome's developer console or FireBug to see if any errors are being reported.
Hi KK

Is working now, is my fault I was clicking the wrong thing, instead of clicking browse server, I was clicking on the + icon but is all working perfect now

Sorry to post again, am learning a lot with this and well enjoying it
Happens :lol:
4 posts Page 1 of 1
cron