The CountPages module lets count the number of pages that match various criteria. CountPages is similar to the ListPages module in some ways but does not let you render page data, only a single symbol called %%total%%.
Specify one or more of these selectors to refine the set of pages you select. Each selector adds additional constraints:
Argument | Meaning |
---|---|
pagetype | Select by type of page |
category | Select by category |
tags | Select by tags |
parent | Select by parent page |
link_to | Select by outgoing links |
created_at | Select by date of creation |
created_by | Select by original author |
rating | Select by rating |
offset | Start list after an offset of pages |
range | Select a range of pages |
_<data-form-field-name> | Select by a field's value in a data form |
Page type selector:
Category selector:
Tags selector:
Parent page selector:
Outgoing links selector:
Creation date selector:
Author selector:
Rating selector:
Caution: When listing pages from many categories, where some categories have rating type set to + or +/- and others to "stars" (in Site Manager), selecting and ordering by rating may not funtion properly. The solution is to list and order pages from categories having the same rating mode.
Offset selector:
Range selector:
Data Form selector:
[[module CountPages category="wiki,blog" tags="_closed"]]
%%total%% active pages.
[[/module]]