Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
Hi all,
Can I use multiple repeatable together ?

Code: Select all
            <!-- repeatable content with Image start  -->
         <!--1st gallery start-->
            <cms:repeatable name='my_tour1' label='First Image' desc=' 1st Image Gallary 'type='group' >            
                  <cms:editable
                     name='image_1'
                     label='Image 1'                  
                     crop='1'
                     width='600'
                     height='300'
                     group='my_tour'
                     type='image'
                  />
   <cms:editable type='nicedit' label='Description' name='my_desc' />
            </cms:repeatable>   
            
            <!--2nd gallery start-->
            <cms:repeatable name='my_tour2' label='First Image' desc=' 1st Image Gallary 'type='group' >            
                  <cms:editable
                     name='image_1'
                     label='Image 1'                  
                     crop='1'
                     width='600'
                     height='300'
                     group='my_tour'
                     type='image'
                  />
   <cms:editable type='nicedit' label='Description' name='my_desc' />
            </cms:repeatable>
                     <!--3rd gallery start-->
            <cms:repeatable name='my_tour3' label='First Image' desc=' 1st Image Gallary 'type='group' >            
                  <cms:editable
                     name='image_1'
                     label='Image 1'                  
                     crop='1'
                     width='600'
                     height='300'
                     group='my_tour'
                     type='image'
                  />
   <cms:editable type='nicedit' label='Description' name='my_desc' />
            </cms:repeatable>
            
                     <!--4th gallery start-->
            <cms:repeatable name='my_tour4' label='First Image' desc=' 1st Image Gallary 'type='group' >            
                  <cms:editable
                     name='image_1'
                     label='Image 1'                  
                     crop='1'
                     width='600'
                     height='300'
                     group='my_tour'
                     type='image'
                  />
   <cms:editable type='nicedit' label='Description' name='my_desc' />
            </cms:repeatable>
            
                     <!--5th gallery start-->
            <cms:repeatable name='my_tour5' label='First Image' desc=' 1st Image Gallary 'type='group' >            
                  <cms:editable
                     name='image_1'
                     label='Image 1'                  
                     crop='1'
                     width='600'
                     height='300'
                     group='my_tour'
                     type='image'
                  />
   <cms:editable type='nicedit' label='Description' name='my_desc' />
            </cms:repeatable>
            
                     <!--6th gallery start-->
            <cms:repeatable name='my_tour6' label='First Image' desc=' 1st Image Gallary 'type='group' >            
                  <cms:editable
                     name='image_1'
                     label='Image 1'                  
                     crop='1'
                     width='600'
                     height='300'
                     group='my_tour'
                     type='image'
                  />
   <cms:editable type='nicedit' label='Description' name='my_desc' />
            </cms:repeatable>   


But I like to short them, is there any way ?

Kindly help me...
Thanks
Hi,

Can I use multiple repeatable together ?
If by that you meant having multiple repeatable-regions in the same template (like in the code you pasted) - yes, certainly.

But I like to short them, is there any way ?
Not sure what you meant by that exactly but if all the regions are similar, you can use the following to define them -
Code: Select all
<!-- repeatable content with Image start  -->
<cms:repeat '6' startcount='1'>
    <!--<cms:show k_count /> gallery start-->
    <cms:repeatable name="my_tour<cms:show k_count />" label="Image <cms:show k_count />" desc="Image Gallery <cms:show k_count />" >           
        <cms:editable
            name='image_1'
            label='Image 1'                 
            crop='1'
            width='600'
            height='300'
            type='image'
        />
        <cms:editable type='nicedit' label='Description' name='my_desc' />
    </cms:repeatable>   
</cms:repeat>

If, however, you meant 'nesting' repeatable-regions within another repeatable-region, I'm afraid that is not possible.
Hi KK,

Sorry for my poor English,

yes all the regions are similar, I used the following to define them - which provide by you.
Code: Select all
<!-- repeatable content with Image start  -->
<cms:repeat '6' startcount='1'>
    <!--<cms:show k_count /> gallery start-->
    <cms:repeatable name="my_tour<cms:show k_count />" label="Image <cms:show k_count />" desc="Image Gallery <cms:show k_count />" >           
        <cms:editable
            name='image_1'
            label='Image 1'                 
            crop='1'
            width='600'
            height='300'
            type='image'
        />
        <cms:editable type='nicedit' label='Description' name='my_desc' />
    </cms:repeatable>   
</cms:repeat>


In admin panel browser server, View image, description, and image url field is missing. take a look below screen shot.
print screen.png
print screen.png (29.41 KiB) Viewed 2036 times


What to do now?

Thanking You
Subhamoy
My apologies, Subhamay.

That is a known limitation of cms:repeatable. Please see - viewtopic.php?p=14165

I'm sorry but we won't be able to use the solution I proposed.
You'll have to explicitly define all the regions.
4 posts Page 1 of 1
cron