Problems, need help? Have a tip or advice? Post it here.
5 posts Page 1 of 1
Hi all,
I am trying to add a small Recent Work image set ( of 5-6 images) thumbnails with colorbox to enlarge..
I cannot get past this error:
ERROR! Closing tag "show_repeatable" has no matching opening tag
I have searched and read 6-7 post related to this but couldn't rectify it.

I am attaching my code, please take a look.. thanks.
Code: Select all
<?php require_once ('couch/cms.php'); ?>

<cms:template title='Test' >
    <cms:editable name='page_title' label='title' type='text' />
    <cms:repeatable name='recent_work' label='Recent Work' >
        <cms:editable type='image' name='work_image' label='Work Image' width='550' height='413' show_preview='1' preview_width='150' col_width='200' />
        <cms:editable type='text' name='work_caption' label='Work Caption' />
    </cms:repeatable>   
</cms:template>
<!DOCTYPE html>
<html lang="en">
<head>
   <meta charset="UTF-8">
   <title>Services</title>
   <link href='http://fonts.googleapis.com/css?family=Roboto:300,400,400italic,700,700italic|Chivo:900,900italic' rel='stylesheet' type='text/css'>
    <link href="css/grid.css" rel="stylesheet" type="text/css" media="all" />
    <link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
    <script src="js/jquery.js"></script>
    <link type="text/css" media="screen" rel="stylesheet" href="css/colorbox.css" />
    <script type="text/javascript" src="js/jquery.colorbox.js"></script>
    <script type="text/javascript">
        $(document).ready(function(){
            $("a[rel='cobo']").colorbox();
         });
    </script>
</head>

<body>
<!-- header -->
   <div id="header">
        <div class="container_12">
           <div class="grid_12">
                <cms:embed 'header.html' />
           </div>
            <div class="clear"></div>
        </div>
    </div>

    <!-- content -->
    <div id="content">
    <!-- Recent Work Gallery -->
            <div class="container_12">
                <div class="grid_12">
                    <h3>Latest Work</h3>
                   <p>
                       Check out some of our recent work..
                   </p>
                   <div class="galdiv">
                       <p>
                         <cms:show_repeatable 'recent_work' >
                           <a href="<cms:show work_image />" rel="cobo" title="<cms:show work_caption>" <img src="<cms:thumbnail work_image width='146' height='111' />" /></a>
                       </cms:show_repeatable>
                       </p>
                   </div>
                   <p class="norm"><a href="worksgallery.php" class="gbutton">view more work</a></p>
                </div>     
            </div>
        <!-- end gallery -->
    </div>

    <!-- footer -->
    <div id="footer">
        <div class="container_12">
           <div class="grid_12">
                     <cms:embed 'footer.html' />
                </div>
        </div>
    </div>

</body>
</html>

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

Maybe I am missing something.. Please help. Thanks a lot in advance.
Hi @couchusr, see below for the problematic unclosed tag -
<a href="<cms:show work_image />" rel="cobo" title="<cms:show work_caption>" <img src="<cms:thumbnail work_image width='146' height='111' />" /></a>
Thanks a lot, @cheesypoof.
:oops: Really embarassed for overlooking that.

But the thumbnails are not displaying.
Do I have to create an editable region for thumbnail or
wont cms:thumbnail tag do it.
Please let me know.. Thanks again.
The thumbnail tag is what you should be using in this case. I think the problem is that you have an HTML syntax error -
<a href="<cms:show work_image />" rel="cobo" title="<cms:show work_caption/>"><img src="<cms:thumbnail work_image width='146' height='111' />" /></a>
Yikes, post 666 for me :twisted:
:oops: :oops:
Thanks again @cheesypoof.
It's ok now. 8-)
5 posts Page 1 of 1