Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hello All,

I am very new to CouchCMS and I am a student finishing up my degree and have an interesting question.

I have made an accordion that has nested lists inside of it, much like below:
Screen Shot 2017-04-25 at 9.50.13 PM.png
Accordion_List
Screen Shot 2017-04-25 at 9.50.13 PM.png (196.5 KiB) Viewed 1912 times


I have the repeatable region within the 2009, 2010, 2011 awards and so on but then it ends at 2016. I want my client to be able to add a year with the repeatable region inside of it. So in all, I want a repeatable year with the repeatable tables inside of it, is this possible?

please let me know ASAP if you can, i'm on a little bit of a time crunch.

Thanks!
Hi,

Suppose your template (where you have placed all those repeatable-regions) is named 'awards.php'.
You should define this template as 'clonable' and define only a *single* repeatable-region within it -
Code: Select all
<cms:template title='Awards' clonable='1'>
    .. define repeatable region here ..
</cms:template>

Since this template has been declared clonable, you will now be able to create multiple 'pages' out of it and each of those pages will have that repeatable-region within.

So basically now you can create each 'year' as a new page and that page will have a blank set of repeatable-region to fill.
For example, for adding 2016, click 'Add new' to get a new page, set its 'title' field (every page automatically has this) to '2016' and then add the year's awards in the repeatable-regions.

When the year ends, the client can repeat the same fro adding a new year without you having to do any coding.

Hope it helps.
So it will clone the years on the main page and what you mean by the 'page' is that it will add another accordion option below?
Screen Shot 2017-04-26 at 10.57.04 AM.png
Accordion_example
Screen Shot 2017-04-26 at 10.57.04 AM.png (26.26 KiB) Viewed 1908 times


So another year will show below, underneath the '2016' accordion section I have and give the user the option to keep on adding more years through the back end part of Couch?
3 posts Page 1 of 1