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

I have built a website for a client and they have asked for a CMS to put in so straight away thought of couch cms cause of how good it is, I know it can work with a gallery but need to know if can work with a pure CSS image gallery, the CSS gallery is from the link below

[url]
http://www.cssplay.co.uk/menu/lightbox.html
[/url]

The coding from ny current gallery.php file is below

Code: Select all
<ul class="topic">
   <li class="active"><a class="set" href="#Ladies">Ladies<!--[if gte IE 7]><!--></a><!--<![endif]-->
   <!--[if lte IE 6]><table><tr><td><![endif]-->
      <ul>
         <li><a href="images/gallery/ladies-1.jpg"><img src="images/gallery/ladies-1.jpg" alt="" title="" /></a></li>
         <li><a href="images/gallery/ladies-2.jpg"><img src="images/gallery/ladies-2.jpg" alt="" title="" /></a></li>
         <li><a href="images/gallery/ladies-3.jpg"><img src="images/gallery/ladies-3.jpg" alt="" title="" /></a></li>
            <li><a href="images/gallery/ladies-4.jpg"><img src="images/gallery/ladies-4.jpg" alt="" title="" /></a></li>
            <li><a href="images/gallery/ladies-5.jpg"><img src="images/gallery/ladies-5.jpg" alt="" title="" /></a></li>
            <li><a href="images/gallery/ladies-6.jpg"><img src="images/gallery/ladies-6.jpg" alt="" title="" /></a></li>
            <li><a href="images/gallery/ladies-7.jpg"><img src="images/gallery/ladies-7.jpg" alt="" title="" /></a></li>
            <li><a href="images/gallery/ladies-8.jpg"><img src="images/gallery/ladies-8.jpg" alt="" title="" /></a></li>
            <li><a href="images/gallery/ladies-9.jpg"><img src="images/gallery/ladies-9.jpg" alt="" title="" /></a></li>
            <li><a href="images/gallery/ladies-10.jpg"><img src="images/gallery/ladies-10.jpg" alt="" title="" /></a></li>
            <li><a href="images/gallery/ladies-11.jpg"><img src="images/gallery/ladies-11.jpg" alt="" title="" /></a></li>
      </ul>
   <!--[if lte IE 6]></td></tr></table></a><![endif]-->
   </li>
</ul>
Hi Ian,

It should be a straightforward thing to implement this kind of gallery in Couch.

Do let us know if you need help with any specific problem in doing so.
I tried with the following but did not as the admin side just keep loading

Code: Select all
<?php require_once'couch/cms.php'; ?>
<cms:template title='Gallery' clonable='1' gallery='1'>
   <cms:editable
      name='gg_image'
      label='Image'
      desc='Upload your main image here'
      show_preview='1'
      preview_height='200'
      type='image'
      order='1'
      required='1'
   />
   
   <cms:editable
      name='gg_thumb'
      label='Image Thumbnail'
      desc='Thumbnail of the main image above'
      width='200'
      height='150'
      enforce_max='1'
      assoc_field='gg_image'
      show_preview='1'
      type='thumbnail'
      order='2'
   />
   
   </cms:template>

<?php
$title = "Gallery";

$pgDesc="";

$pgKeywords="";

include ( 'includes/header.php' );
?>
<!--CONTENT-->

   <cms:if "<cms:not k_is_home/>">
   <cms:redirect url=k_template_link/>
</cms:if>

<div id="column-top">

<cms:pages masterpage="gallery.php" include_subfolders='0' >   

    <div class="photo">
<ul class="topic">
  <li>
   <a href="<cms:show gg_image />" <cms:if my_desc>title="<cms:show my_desc/>"</cms:if>>
      <img src="<cms:show gg_thumb />" title="<cms:show k_page_title />" />
   </a>
</li>
</ul>
   </cms:pages>

   
<!--CONTENT-->

<?php include( 'includes/footer.php' ); ?>
<?php COUCH::invoke(); ?>
the admin side just keep loading
Sorry couldn't get you. I tried your code on my setup and is working as expected.
Oh right weird

I'll try it again now, one sec
Just tried it again and is still doing the same thing, I have added a screenshot of what is happening on the admin side

Below is the coding I have in gallery.php

Code: Select all
<?php require_once'couch/cms.php'; ?>
<cms:template title='Gallery' clonable='1' gallery='1'>
   <cms:editable
      name='gg_image'
      label='Image'
      desc='Upload your main image here'
      show_preview='1'
      preview_height='200'
      type='image'
      order='1'
      required='1'
   />
   
   <cms:editable
      name='gg_thumb'
      label='Image Thumbnail'
      desc='Thumbnail of the main image above'
      width='200'
      height='150'
      enforce_max='1'
      assoc_field='gg_image'
      show_preview='1'
      type='thumbnail'
      order='2'
   />
   
   </cms:template>

<?php
$title = "Gallery - Gifts &amp; Treats";

$pgDesc="";

$pgKeywords="";

include ( 'includes/header.php' );
?>
<!--CONTENT-->

<cms:if "<cms:not k_is_home/>">
   <cms:redirect url=k_template_link/>
</cms:if>

   <div id="column-top">
   
    <cms:pages masterpage="gallery.php" include_subfolders='0' >
   
    <div class="photo">
    <ul class="topic">
  <li>
   <a href="<cms:show gg_image />" <cms:if my_desc>title="<cms:show my_desc/>"</cms:if>>
      <img src="<cms:show gg_thumb />" title="<cms:show k_page_title />" />
   </a>
</li>
</ul>
   </cms:pages>
   
<br class="clear" />
</div>
   
    </div>
   
<!--CONTENT-->

<div class="clearfooter"></div>

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

Attachments

Weird. It must be some local issue as it is working just fine for me.
If your setup is online you can get me access to it and I'll try to see if I can find the reason.
No problem, yeah is online, I'll PM you the FTP info now if ok
just sent you a PM KK with the info
Thanks Ian.

I tested and had no trouble in getting the multi-file uploader displayed.
However, I found that selecting some files within it and hitting upload did not always succeed - it worked sometimes and failed sometimes (it *did* wok though as seen in the attached image).
Untitled-1.jpg
Untitled-1.jpg (23.19 KiB) Viewed 2284 times

The problem is that your server is terminating the connections randomly.
So this appears to be a server related issue and not a Couch or coding problem per se.

Maybe you should contact your web host.
20 posts Page 1 of 2
cron