Hello
Can you tell my why my gallery photos disappear as soon as I've uploaded them please?
Can you tell my why my gallery photos disappear as soon as I've uploaded them please?
- Code: Select all
<?php require_once( 'admin/cms.php' ); ?>
<cms:template title='Venue Database' clonable ='1'>
<cms:editable type='reverse_relation' name='product_photos' masterpage='gallery.php' field='photo_product' anchor_text='View images' label='Gallery' />
<cms:editable name='venue_name' label='Venue Name' type='richtext' />
<cms:editable name='venue_address' label='Venue Address' type='richtext' />
<cms:editable name='contact_telephone' label='Contact Telephone' type='richtext' />
<cms:editable name='contact_website' label='Contact Website' type='richtext' />
<cms:editable name='contact_email' label='Contact Email' type='richtext' />
<cms:editable name='main_content' label='Main Content' type='richtext' />
</cms:template>
<cms:if k_is_page >
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title><cms:show k_page_title /> | <cms:get_custom_field 'site_name' masterpage='globals.php' /></title>
<meta name="description" content="<cms:get_custom_field 'site_desc' masterpage='globals.php' />">
<!-- fancybox start -->
<script type="text/javascript" src="http://www.burrettcreative.com/fancybox/lib/jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="http://www.burrettcreative.com/fancybox/source/jquery.fancybox.pack.js"></script>
<link rel="stylesheet" href="http://www.burrettcreative.com/fancybox/source/jquery.fancybox.css" type="text/css" media="screen" />
<script type="text/javascript">
$(document).ready(function() {
$('.fancybox').fancybox();
});
</script>
<style type="text/css">
.fancybox-custom .fancybox-skin { box-shadow: 0 0 50px #222; }
.gallery { text-align: center; }
.gallery img { margin: 0 3px 3px 0; padding: 4px; }
.gallery img:hover { padding: 1px; border: 3px solid #eee; }
</style>
<!-- fancybox finish -->
</head>
<body>
<!-- blog start -->
<header><h2><a href="<cms:show k_page_link />"><cms:show k_page_title /></a></h2></header>
<div><cms:show venue_name /></div>
<div><cms:show venue_address /></div>
<div><cms:show contact_telephone /></div>
<div><cms:show contact_website /></div>
<div><cms:show contact_email /></div>
<div><cms:show main_content /></div>
<div>Last updated on: <cms:date k_page_date format='jS M, y'/></div>
<!-- blog finish -->
<!-- show gallery -->
<div class="gallery">
<cms:reverse_related_pages 'photo_product' masterpage='gallery.php' >
<a class="fancybox" rel="group1" href="<cms:show gg_image />"><img alt="<cms:show k_page_title />" src="<cms:show my_thumb />" /></a>
</cms:reverse_related_pages>
</div>
<!-- -->
</body>
</html>
<cms:else />
<cms:embed 'venue_list.html' />
</cms:if>
<?php COUCH::invoke(); ?>