Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
Right first time using couch so sorry if I am being a little thick, and I have searched the forums but to no avail.

My code is:

Code: Select all
<cms:editable name='product_offer' crop='0' width='740' height='150' type='image' show_preview='1' /><img style="cursor:pointer" src="<cms:show product_offer />" onclick="MM_openBrWindow('spring.php','','width=460,height=650')" />


Wich works fine except when i visit the page to view it above the image is the url of the uploaded files

so it reads
http://threetwo.net/ls/couch/uploads/im ... banner.jpg
[ Image would then show here ]

am I missing something? :?

Thanks
Hi,

You can either add a hidden='1' parameter to the image editable region
<cms:editable name='product_offer' crop='0' width='740' height='150' type='image' show_preview='1' hidden='1' />

or
define the region (along with all other editable regions of your template) within the opening and closing tags of the cms:template tag e.g. here is how two editable regions of 'blog.php' in our tutorial are defined -
Code: Select all
<cms:template title='Blog' clonable='1' commentable='1'>

   <cms:editable name='blog_content' type='richtext' />

   <cms:editable name='blog_image'
      crop='1'
      width='610'
      height='150'
      type='image'
   />

</cms:template>

Hope this helps.
2 posts Page 1 of 1