Forum for discussing general topics related to Couch.
2 posts Page 1 of 1
Hi! I m starting with couch cms. First of all, this cms its GREAT!
I have a problem with editable type source. I need group my fields but group dont work for me.
Following this example:
Code: Select all
<cms:editable name='prop_uploads' label='Uploads' desc='Your main uploads' type='group' />
<cms:editable name='prop_image' label='Image' desc='Upload main image here' show_preview='1'
  group='prop_uploads'
   type='image' />

<cms:editable name='prop_image_thumb' label='Image Thumbnail' desc='Thumbnail of main image'
   width='100'
   height='80'
   assoc_field='prop_image'
   group='prop_uploads'
   type='thumbnail' />

<cms:editable name='prop_code' label='Area Code' desc='Enter area code here'
  maxlength='20'
  type='text' />   

<cms:editable name='prop_document' label='Downloadable File' desc='Upload the file here'
   group='prop_uploads'
   type='file' />

I need add another group, in this case i have prop_uploads group but i need, for example, prop_uploads2 group. What i have to do??
Thanks!!
Hello and welcome.
but i need, for example, prop_uploads2 group. What i have to do??
Create another group :)

As an example, in the code below we have two groups containing two editable regions each.
Please notice that the factor connecting a region to its group is the name of the group
Code: Select all
<cms:editable name='prop_uploads' label='Uploads' desc='Your main uploads' type='group' />
    <cms:editable name='prop_image' label='Image' desc='Upload main image here' show_preview='1'
      group='prop_uploads'
       type='image' />

    <cms:editable name='prop_image_thumb' label='Image Thumbnail' desc='Thumbnail of main image'
       width='100'
       height='80'
       assoc_field='prop_image'
       group='prop_uploads'
       type='thumbnail' />

<cms:editable name='prop_uploads2' label='Uploads 2' type='group' />
    <cms:editable name='prop_document' label='Downloadable File' desc='Upload the file here'
       group='prop_uploads2'
       type='file' />
       

    <cms:editable name='prop_code' label='Area Code' desc='Enter area code here'
      maxlength='20'
      group='prop_uploads2'
      type='text' /> 

Does this help?
2 posts Page 1 of 1