Forum for discussing general topics related to Couch.
2 posts Page 1 of 1
Hi there, I posted earlier - http://www.couchcms.com/forum/viewtopic.php?t=9305

For some reason I'm getting a 1 or a 0 printed at the top of my page, which reflects whether my checkbox is ticked or unticked. Why is this happening?

I've not used the cms:show tag anywhere.

Any advice appreciated...

code is

Code: Select all
<?php require_once('cmsadmin/cms.php');?>
<cms:template title="title" />
<cms:editable
  name="open_day"
  label="Open Day"
  desc="Is Open Day Enabled or Disabled?"
  opt_values='Enable=1'
  type='checkbox'
/>
Editable regions defined outside of the cms:template tag are shown automatically (no need for cms:show), your template tag is self closing, so the editable is outside of it.

please wrap the editable region in a </cms:template> tag and alter the cms:template tag to be non-closing. :)
Image
2 posts Page 1 of 1
cron