The Pagecount plugin enables smart page counting on a Cotonti-powered website. Let's figure out how to use it.
First off, install the plugin.
Now, wherever you need to place a page counter in you TPL file use callback for the pagelist function:
{PHP|pagecount('questions','','','', '1','')}
The parameters passed are as follows:
- Section code to calculate pages in
- White list to calculate pages in (semicolon separated)
- Black list to exclude pages from (semicolon separated)
- SQL condition
- Include...