I am using the code below for a clonable template. When a template doesn't have an image nothing seems to display. If it has at least one image then everything displays how it should. Not sure where I am going wrong:
- Code: Select all
<cms:capture into='my_buffer'>
<cms:show_repeatable 'menu'>
<div class="menu-details cute-6-tablet min-248">
<h2><cms:show item_name /> - <cms:show item_price /> <span></span></h2>
<p>
<cms:show item_desc />
</p>
<cms:if "<cms:not_empty item_img />">
<a href="<cms:show item_img />" class="menu-link mag-pop" title="<cms:show item_name />">
<i class="fa fa-camera"></i> SEE WHAT IT LOOKS LIKE!
</a>
<cms:set show_buffer='1' 'global' />
</cms:if>
</div>
</cms:show_repeatable>
</cms:capture>
<cms:if show_buffer ><cms:show my_buffer /></cms:if>