I am trying to write an 'if' statement based on the number of pages in a template. Specifically, I have an "Events" template with several events. I am trying to write the conditional so that 'if the number of Event pages is greater than 3, then show a "view more" button'. The caveat is that I'm trying to accomplish this on the index page, rather than the template page. I have already called
This seems like a very basic/easy thing to achieve, but I cannot find anything in the docs that works. Any help is appreciated.
- Code: Select all
<cms:pages masterpage='events.php'>
This seems like a very basic/easy thing to achieve, but I cannot find anything in the docs that works. Any help is appreciated.