Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
I have 2 repeating regions set up at the top of my page: 'my_buttons' and 'my_buttons2'

Is there any way I can separate them in the CMS so that they don't appear on the same page, it currently has one above the other and when there's loads of content in the repeaters then it makes for one really long page.

I tried searching, but I didn't know what to search without fully explaining what I need to do, sorry if this is an easy one

Thanks
Hello and welcome, MattXXI :)

One way to handle this would be to use the 'group' option (http://www.couchcms.com/docs/tags-refer ... group.html). Place both the repeatable regions in separate groups. This way only one of them would be visible at any given time.

You have not mentioned this so I presume that the template containing the repeatable regions is not clonable. If so, as the second method, you can try using another template for the second repeatable region (i.e. the two regions will reside in two different templates).

This way they'll appear separately in the admin-panel.

On the front-end (as you'd perhaps be knowing) we can show regions belonging to any arbitrary template on any other template. So, for example, to display the second repeatable region on the first template we can use the following (I am assuming the name of the second template is 'second.php')
Code: Select all
<cms:pages masterpage='second.php'>
   <cms:show_repeatable 'name_of_region'>
      ..
   </cms:show_repeatable>
</cms:pages>

If you pick the second method, perhaps you'd also want to set the second template as non-executable (by placing executable='0' in its cms:template block) as this template would be used only for defining editable regions and not for displaying them on the front-end.

Hope this helps.
2 posts Page 1 of 1