Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hi
I have a very curious problem.
The code quoted below works perfectly on one site - the group is collapsible/expandable:
Image
But not on another site, where it is not collapsible/expandable:
Image

I'm using identical (cut and pasted) code in a test file on the non-working site - with all the js, html and css stripped.

The sites are on different versions of Couch.

Here's the code:
Code: Select all
    <cms:editable type='group' name='projects1_4' label='Uganda Projects 1- 4  -  images and text' collapsed='1' order='30' > 
   <cms:editable name='project_image1'    label='Project 1 Image '
            desc='Upload Project 1 image  here -  photo must be 539 x 372'
            type='image' order='31' />
   <cms:editable name='project_heading1' label='Project 1 Heading' type='text' toolbar='basic' order='32' />
   <cms:editable name='project_intro1' label='Project 1 Text' type='richtext' toolbar='basic' order='33' />
   <cms:editable name='project_more1' label='Project 1 More Text (optional)' type='richtext' toolbar='basic' order='34' />
   <cms:editable name='project_image2'    label='Project 2 Image '
            desc='Upload Project 2 image  here -  photo must be 539 x 372'
            type='image' order='35' />
   <cms:editable name='project_heading2' label='Project 2 Heading' type='text' toolbar='basic' order='36' />
   <cms:editable name='project_intro2' label='Project 2 Text' type='richtext' toolbar='basic' order='37' />
   <cms:editable name='project_more2' label='Project 2 More Text (optional)' type='richtext' toolbar='basic' order='38' /> 
   <cms:editable name='project_image3'    label='Project 3 Image '
            desc='Upload Project 3 image  here -  photo must be 539 x 372'
            type='image' order='39' />
   <cms:editable name='project_heading3' label='Project 3 Heading' type='text' toolbar='basic' order='40' />
   <cms:editable name='project_intro3' label='Project 3 Text' type='richtext' toolbar='basic' order='41' />
   <cms:editable name='project_more3' label='Project 3 More Text (optional)' type='richtext' toolbar='basic' order='42' /> 
   <cms:editable name='project_image4'    label='Project 4 Image '
            desc='Upload Project 4 image  here -  photo must be 539 x 372'
            type='image' order='43' />
   <cms:editable name='project_heading4' label='Project 4 Heading' type='text' toolbar='basic' order='44' />
   <cms:editable name='project_intro4' label='Project 4 Text' type='richtext' toolbar='basic' order='45' />
   <cms:editable name='project_more4' label='Project 4 More Text (optional)' type='richtext' toolbar='basic' order='46' /> 
   </cms:editable>

I am really perplexed!
Many thanks for you assistance.
Chris
Hi,

Couch v2 introduced defining child regions as being nested within the parent 'group' region e.g.
Code: Select all
<cms:editable type='group' name='projects1_4' label='Uganda Projects 1- 4 - images and text' collapsed='1' order='30' >
    <cms:editable name='project_heading1' label='Project 1 Heading' type='text' toolbar='basic' order='32' />
    <cms:editable name='project_intro1' label='Project 1 Text' type='richtext' toolbar='basic' order='33' />
</cms:editable>

Previous versions required explicitly specifying the parent group with each child e.g. following is the equivalent of the code above for v1 -
Code: Select all
<cms:editable type='group' name='projects1_4' label='Uganda Projects 1- 4 - images and text' collapsed='1' order='30' />
<cms:editable name='project_heading1' label='Project 1 Heading' type='text' toolbar='basic' order='32' group='projects1_4' />
<cms:editable name='project_intro1' label='Project 1 Text' type='richtext' toolbar='basic' order='33' group='projects1_4' />

Please note the 'group' param of the child regions.
Hope this helps.
Many thanks for your reply.
Yes I did previously try explicitly specifying the parent group.
This successfully puts a box round the group, but it does not collapse or expand.

No worries - perhaps I should update the installation.

Is there a safe way of doing this which will not adversely affect the existing live site?
Many thanks..
3 posts Page 1 of 1