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 ?
- 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