hello ... in the past I've implemented something similar to the solution in the following post to allow the client to have a central list of reviews (each a cloned page) which are then selectable using a dropdown in a repeatable region across different pages in the site.
http://www.couchcms.com/forum/viewtopic.php?f=4&t=8032&p=15209&hilit=dropdown+cloned+pages#p15209
It works a treat and allows them a level of flexibility which they like!
I wanted to do something similar on a new site but with an extra level of granularity. I want to set up testimonials as cloned pages and allow them to be selected via a dropdown list in a repeatable region. BUT I would also like to categorise the testimonials so that on different pages within the site the dropdown list is filtered to those testimonials relevant to that page. So on the Weddings page they only get a list of wedding related testimonials and on the Food & Drink page only those relevant to that etc etc A single testimonial may fall into more than one category e.g. Weddings and Food & Drink.
My plan is to add a checkbox editable field (testimonial_category) to the testimonials.php clonable template holding all the different categories. Then, for example, on the Weddings page I would want to code "is the checkbox ticked for weddings for this cloned page?"
I know the above won't work as testimonial_category is an array of values in a checkbox editable field. This is all at the planning stage right now so I haven't been able to experiment.
Is this do-able? Thanks in advance!
http://www.couchcms.com/forum/viewtopic.php?f=4&t=8032&p=15209&hilit=dropdown+cloned+pages#p15209
It works a treat and allows them a level of flexibility which they like!
I wanted to do something similar on a new site but with an extra level of granularity. I want to set up testimonials as cloned pages and allow them to be selected via a dropdown list in a repeatable region. BUT I would also like to categorise the testimonials so that on different pages within the site the dropdown list is filtered to those testimonials relevant to that page. So on the Weddings page they only get a list of wedding related testimonials and on the Food & Drink page only those relevant to that etc etc A single testimonial may fall into more than one category e.g. Weddings and Food & Drink.
My plan is to add a checkbox editable field (testimonial_category) to the testimonials.php clonable template holding all the different categories. Then, for example, on the Weddings page I would want to code "is the checkbox ticked for weddings for this cloned page?"
- Code: Select all
Please Select=-
<cms:pages masterpage='testimonials.php' custom_field='testimonial_category==weddings'>
| <cms:show k_page_title />=<cms:show k_page_id />
</cms:pages>
I know the above won't work as testimonial_category is an array of values in a checkbox editable field. This is all at the planning stage right now so I haven't been able to experiment.
Is this do-able? Thanks in advance!