I am working on integrating couchcms into a new site and just doing a page that is like a gallery that uses magnific popup when the image is clicked on it enlarges in a popup box
The page also has text content at the top of the page so got round that issue by using the textarea caption in the globals.php file but on the page itself I got the error ERROR! Closing tag "template" has no matching opening tag (line: 24 char: 619) showing but gone through the code and looks like I have the tags matched up
below is my code, I can't see what I have missed or where I have gone wrong?
Thank you in advance
The page also has text content at the top of the page so got round that issue by using the textarea caption in the globals.php file but on the page itself I got the error ERROR! Closing tag "template" has no matching opening tag (line: 24 char: 619) showing but gone through the code and looks like I have the tags matched up
below is my code, I can't see what I have missed or where I have gone wrong?
- Code: Select all
<?php require_once( 'cms/cms.php' ); ?>
<cms:template title='Anne Van Meerkerk' clonable='1' gallery='1' />
<cms:editable
name='gg_image'
label='Image'
desc='Upload your main image here'
width='500'
height='500'
show_preview='1'
preview_height='400'
type='image'
order='1'
required='1'
/>
<cms:editable
name='gg_thumb'
label='Image Thumbnail'
desc='Thumbnail of the main image above'
width='300'
height='300'
enforce_max='1'
assoc_field='gg_image'
show_preview='1'
type='thumbnail'
order='2'
/>
</cms:template>
- Code: Select all
<p>
<cms:get_custom_field 'anne_van_meerkerk_caption' masterpage='globals.php' />
</p>
- Code: Select all
<cms:pages masterpage="anne-van-meerkerk.php" include_subfolders='0' >
<div class="col-md-4 mix col-sm-6 filter-item">
<div class="single-project-item">
<div class="img-box">
<img src="<cms:show gg_thumb />"
<div class="overlay">
<div class="box">
<div class="top-box">
<div class="title">
<a href="#"><h3><cms:show k_page_title /></h3></a>
</div>
</div>
<div class="bottom-box">
<ul>
<li><a data-group="1" href="<cms:show gg_image />" class="img-popup"><i class="fa fa-picture-o"></i></a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</cms:pages>
Thank you in advance