Forum for discussing general topics related to Couch.
5 posts Page 1 of 1
Hey there. I have clonable projects.php template on my website and showing them on projects_list.html page which is in snippets. And also I add latest projects section on my homepage and use cms:pages to list latest 5 projects. Now I want to add an enable/disable button to show or hide this section on my homepage? How can I do that ?
Create an editable in your homepage (non-clonable) template:
Code: Select all
<cms:editable type='checkbox' name='status_latest' opt_values='Show latest projects = 1' />


Then enclose full latest section with
<cms:if status_latest >
.. here show latest projects with cms:pages

</cms:if
Ok but I made my homepage clonable. Because I am using nested pages :(
Then use it where you want to have this single setting. Maybe global settings template - globals.php
trendoman wrote: Then use it where you want to have this single setting. Maybe global settings template - globals.php


Hey trendoman. Thats working. You are great :D
Thank you so much :D
5 posts Page 1 of 1
cron