Forum for discussing general topics related to Couch.
2 posts Page 1 of 1
Hi all,

if I place the following in the php file :

<cms:editable
name="chk_gang4"
label="Extra Gang 4? "
opt_values='Ja=1'
type='checkbox'
group='Menu'
/>

I get an number 1 at the left top of the web page. If I place it 3 times I get
111 at the left top.

Any suggestions?

thx in advance...
Hello and welcome to our forums, mobifix :)

Sorry for the delay in my reply but I had to be out of office for most of the day today.

Answering your query -
there are two solutions
1. Add a 'hidden' parameter to the cms:editable e.g. as follows
<cms:editable
name="chk_gang4"
label="Extra Gang 4? "
opt_values='Ja=1'
type='checkbox'
group='Menu'
hidden='1'
/>

2. Or define all your regions with a cms:template block e.g. as follows
Code: Select all
<cms:template title='Contact'>
   <cms:editable
      name="chk_gang4"
      label="Extra Gang 4? "
      opt_values='Ja=1'
      type='checkbox'
      group='Menu'
   />
   .. similarly put other editable regions also here ..
</cms:template>

The second method is preferable as you can see all your regions defined at a single place.
If you take a look at our tutorial, you'll find the blog and portfolio templates using the same method.

Hope this helps.
2 posts Page 1 of 1