|
Cookbook /
CachedNumberOfArticlesSummary: Count pages in wiki
Version: 1.0
Prerequisites:
Status:
Maintainer: Anomen
Categories: Includes
DescriptionThis recipe reports number of articles in wiki. Value is obtained from cache unless optional refresh argument is specified. UsageInstallationCopy noa.phpΔ into your cookbook dir. Add to local/config.php: require_once($FarmD . '/cookbook/noa.php'); Markup usage
Notes
CommentsSee AlsoContributors
Bug Report
Markup('(:numberofarticles:)','>','/\\(:numberofarticles(\s+refresh)?\s*:\\)/e',
"Keep(getNumArticles('$1'))");
to:
Markup('(:numberofarticles:)','_begin','/\(:numberofarticles(\s+refresh)?\s*:\)/e',
"Keep(getNumArticles('$1'))");
Category: Includes
|