Problems, need help? Have a tip or advice? Post it here.
11 posts Page 1 of 2
if i add row:

1
2
3
4
5

and then save..

and add new row 6 , 7

then save. outcome will be:

1
6
7
4
5
6
7

Please advice.. thank you
That is strange.

Could you please post the exact definition of your repeatable-regions?
I'll try to use it on my system and see if the issue can be duplicated.

Thanks.

P.S. Do also mention which version of Couch you are using.
Hello @KK

Thanks for reply btw.

Im using the couch v2.0

template:
Code: Select all
<cms:template title='Meet the Team > Competitors' clonable='1'>

<cms:editable name='competitors_desc_men_u19' label='Description > Men > U19' type='richtext' />
   <cms:repeatable name='men_u19'  label="Men > U19">
      <cms:editable name='team_image' quality='100' show_preview='1' type='image' />
      <cms:editable name='team_info' height='100' maxheight='110' type='nicedit' buttons='italic, bold, image, forecolor, underline, left, center, right, justify, hr, fontsize, ol, ul, source, removeformat'/>
   </cms:repeatable>
   
   <cms:editable name='competitors_desc_men_u23' label='Description > Men  U23' type='richtext' />
   <cms:repeatable name='men_u23'  label="Men > U23">
      <cms:editable name='team_image' quality='100' show_preview='1' type='image' />
      <cms:editable name='team_info' height='100' maxheight='110' type='nicedit' buttons='italic, bold, image, forecolor, underline, left, center, right, justify, hr, fontsize, ol, ul, source, removeformat'/>
   </cms:repeatable>

</cms:template>


display:
Code: Select all

<cms:show competitors_desc_men_u19 />
<cms:show_repeatable 'men_u19' >
       <img src="<cms:show team_image />" style="width: auto; max-width: 100%; border: 1px solid #0018fd;">
       <cms:show team_info />
</cms:show_repeatable>    

<cms:show competitors_desc_men_u23 />
<cms:show_repeatable 'men_u23' >
       <img src="<cms:show team_image />" style="width: auto; max-width: 100%; border: 1px solid #0018fd;">
       <cms:show team_info />
</cms:show_repeatable>    


and also if you save with at least 5 rows. and then try to add another row again, the 'browse server' button for image doesnt work. you need to delete the 5th rows for it to work again..

please advice, thanks
Thanks.

I tested and I think I can see what is going wrong.

In your definition, two editable regions of type 'nicedit' have the *same* name -
<cms:editable name='competitors_desc_men_u19' label='Description > Men > U19' type='richtext' />
<cms:repeatable name='men_u19' label="Men > U19">
<cms:editable name='team_image' quality='100' show_preview='1' type='image' />
<cms:editable name='team_info' height='100' maxheight='110' type='nicedit' buttons='italic, bold, image, forecolor, underline, left, center, right, justify, hr, fontsize, ol, ul, source, removeformat'/>
</cms:repeatable>

<cms:editable name='competitors_desc_men_u23' label='Description > Men U23' type='richtext' />
<cms:repeatable name='men_u23' label="Men > U23">
<cms:editable name='team_image' quality='100' show_preview='1' type='image' />
<cms:editable name='team_info' height='100' maxheight='110' type='nicedit' buttons='italic, bold, image, forecolor, underline, left, center, right, justify, hr, fontsize, ol, ul, source, removeformat'/>
</cms:repeatable>

With other types of editable regions, this shouldn't be a problem but types 'nicedit' and 'richtext' seem to get confused if the name is repeated (as in your case).

As a solution, please rename one of the two regions to something else (e.g. make the second one 'team_info_2') and that should solve the problem.
Do make sure to visit the modified template as super-admin for the change to take effect.

Hope it helps.
Hi @kk

thanks for reply,

I tried replacing names 'team_info' but still have the issue, i tried replacing team_image too but same issue..
Code: Select all
<cms:template title='Meet the Team > Competitors' clonable='1'>
   
   <cms:editable name='competitors_image' quality='100' show_preview='1' type='image' />

   <cms:editable name='competitors_desc_men_u19' label='Description > Men > U19' type='richtext' />
   <cms:repeatable name='men_u19'  label="Men > U19">
      <cms:editable name='team_image1' quality='100' show_preview='1' type='image' />
      <cms:editable name='team_info1' height='100' maxheight='110' type='nicedit' buttons='italic, bold, image, forecolor, underline, left, center, right, justify, hr, fontsize, ol, ul, source, removeformat'/>
   </cms:repeatable>
   
   <cms:editable name='competitors_desc_men_u23' label='Description > Men  U23' type='richtext' />
   <cms:repeatable name='men_u23'  label="Men > U23">
      <cms:editable name='team_image2' quality='100' show_preview='1' type='image' />
      <cms:editable name='team_info2' height='100' maxheight='110' type='nicedit' buttons='italic, bold, image, forecolor, underline, left, center, right, justify, hr, fontsize, ol, ul, source, removeformat'/>
   </cms:repeatable>

</cms:template>

if i have rows 1,2,3,4,5 and save. then add 6, the browse server button dont work so i'll just put the image dir and save. result will be 1,6,3,4,5,6 .

it always starts at the second row and replace 3,4,5,6 onwards as i add more rows..

repeatable works fine on non-clonable page.. does it has something to do with it? as the issue was on clonenable page..

Please advice.
I think you failed to visit the modified template as super-admin for the changes to take effect.

Please do so. Returning to the admin-panel, you should find Couch informing you (in red) that the older fields are missing and whether you wish to remove them completely. Do that and now you'd be working on the new fields (i.e. those with the new names).
hello,

I did modified the templates with super admin.. but i still have same issue..

here's my full code:
Code: Select all
<cms:template title='Meet the Team > Competitors' clonable='1'>
   
   <cms:editable name='competitors_image' quality='100' show_preview='1' type='image' />

<!-- ------------------------------------------------------MEN-------------------------------------------------------------------- -->   
   <cms:editable name='competitors_desc_men_u19' label='Description > Men > U19' type='richtext' />
   <cms:repeatable name='men_u19'  label="Men > U19">
      <cms:editable name='team_image1' quality='100' show_preview='1' type='image' />
      <cms:editable name='team_info1' height='100' maxheight='110' type='nicedit' buttons='italic, bold, image, forecolor, underline, left, center, right, justify, hr, fontsize, ol, ul, source, removeformat'/>
   </cms:repeatable>
   
   <cms:editable name='competitors_desc_men_u23' label='Description > Men  U23' type='richtext' />
   <cms:repeatable name='men_u23'  label="Men > U23">
      <cms:editable name='team_image2' quality='100' show_preview='1' type='image' />
      <cms:editable name='team_info2' height='100' maxheight='110' type='nicedit' buttons='italic, bold, image, forecolor, underline, left, center, right, justify, hr, fontsize, ol, ul, source, removeformat'/>
   </cms:repeatable>
   
   <cms:editable name='competitors_desc_men_open' label='Description > Men > Open' type='richtext' />
   <cms:repeatable name='men_open'  label="Men > Open">
      <cms:editable name='team_image3' quality='100' show_preview='1' type='image' />
      <cms:editable name='team_info3' height='100' maxheight='110' type='nicedit' buttons='italic, bold, image, forecolor, underline, left, center, right, justify, hr, fontsize, ol, ul, source, removeformat'/>
   </cms:repeatable>
   
   <cms:editable name='competitors_desc_men_masters' label='Description > Men > Masters' type='richtext' />
   <cms:repeatable name='men_masters'  label="Men > Masters">
      <cms:editable name='team_image4' quality='100' show_preview='1' type='image' />
      <cms:editable name='team_info4' height='100' maxheight='110' type='nicedit' buttons='italic, bold, image, forecolor, underline, left, center, right, justify, hr, fontsize, ol, ul, source, removeformat'/>
   </cms:repeatable>
   
<!-- ------------------------------------------------------WOMEN-------------------------------------------------------------------- -->
   <cms:editable name='competitors_desc_women_u19' label='Description > Women > U19' type='richtext' />
   <cms:repeatable name='women_u19'  label="Women > U19">
      <cms:editable name='team_image5' quality='100' show_preview='1' type='image' />
      <cms:editable name='team_info5' height='100' maxheight='110' type='nicedit' buttons='italic, bold, image, forecolor, underline, left, center, right, justify, hr, fontsize, ol, ul, source, removeformat'/>
   </cms:repeatable>
   
   <cms:editable name='competitors_desc_women_u23' label='Description > Women > U23' type='richtext' />
   <cms:repeatable name='women_u23'  label="Women > U23">
      <cms:editable name='team_image6' quality='100' show_preview='1' type='image' />
      <cms:editable name='team_info6' height='100' maxheight='110' type='nicedit' buttons='italic, bold, image, forecolor, underline, left, center, right, justify, hr, fontsize, ol, ul, source, removeformat'/>
   </cms:repeatable>
   
   <cms:editable name='competitors_desc_women_open' label='Description > Women > Open' type='richtext' />
   <cms:repeatable name='women_open'  label="Women > Open">
      <cms:editable name='team_image7' quality='100' show_preview='1' type='image' />
      <cms:editable name='team_info7' height='100' maxheight='110' type='nicedit' buttons='italic, bold, image, forecolor, underline, left, center, right, justify, hr, fontsize, ol, ul, source, removeformat'/>
   </cms:repeatable>
   
   <cms:editable name='competitors_desc_women_masters' label='Description > Women > Masters' type='richtext' />
   <cms:repeatable name='women_masters'  label="Women > Masters">
      <cms:editable name='team_image8' quality='100' show_preview='1' type='image' />
      <cms:editable name='team_info8' height='100' maxheight='110' type='nicedit' buttons='italic, bold, image, forecolor, underline, left, center, right, justify, hr, fontsize, ol, ul, source, removeformat'/>
   </cms:repeatable>
   
</cms:template>

<cms:if k_is_page>


please advice :)

Thanks you
I tested your new code again and it is working just fine for me, trust me.
I don't quite understand what is happening in your case.

I suggest you please start with a blank slate by *deleting* all repeatable-regions first.
To do that remove their definitions from the template and visit the template as super-admin.
Remove all regions from the admin-panel (this is *important*. You need to see the warning messages in red informing that the regions are missing and then really delete them).

Once your admin-panel is clear, place back the removed definitions to recreate the regions.

Hope it helps.
Hello,

Uhmm I downloaded new couchv2, create new database, create new files, but i still have same issue..

try add 5 rows then save.. and try adding 6th rows will generate the issue..

Please see my attached files.

Thank you for reply your patience :P

Attachments

Is your installation online?
I'd like to take a look at the issue first-hand. Please PM me the FTP+Couch access creds if that is ok with you.

Thanks.
11 posts Page 1 of 2