Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
My code looks like this:

Code: Select all
<cms:repeatable name='g_images' label='Images'>
    <cms:editable name='g_image' label='Image' type='image' hidden='1'/>
</cms:repeatable>

<cms:if g_image>
Image exists
</cms:if>


The <cms:if> tag displays as if an image does not exist, but I have verified that it does. I tried <cms:if g_images> (the repeatable name) but that doesn't work either.
You can test the contents of a repeatable region only while displaying them using cms:show_repeatable tag. So your code should be something like this -
Code: Select all
<cms:show_repeatable 'g_images' >
   <cms:if g_image>
      Image exists
   </cms:if>
</cms:show_repeatable>

Hope this helps.
2 posts Page 1 of 1