2 Summary: Count pages in wiki
6 Maintainer: [[profiles/Anomen]]
7 Categories: [[!Includes]]
8 Users: {{$FullName}-Users$Rating2} ([[{$FullName}-Users|View]] / [[{$FullName}-Users?action=edit|Edit]])
9 Discussion: [[{$Name}-Talk]]
14 This recipe reports number of articles in wiki.
15 Value is obtained from cache unless optional ''refresh'' argument is specified.
21 Copy Attach:noa.php into your cookbook dir.
23 Add to '''local/config.php''':
26 require_once($FarmD . '/cookbook/noa.php');
31 * Use @@(:numberofarticles:)@@ to display number of articles.
32 * Use @@(:numberofarticles refresh:)@@ to update counter and display correct number of articles.
35 * Number of articles is cached in @@$WorkDir/.noa@@.
36 * Pages in wikilib.d (i.e. default articles in groups ''Site'' and ''PmWiki'') are excluded.
37 * This recipe should work with [[Cookbook/PerGroupSubDirectories]].
41 This space is for User-contributed commentary and notes.
42 Please include your name and a date along with your comment.
43 Optional alternative: create a new page with a name like "ThisRecipe-Talk" (e.g. PmCalendar-Talk).
44 (:if exists {$Name}-Talk:)See Discussion at [[{$Name}-Talk]](:if:)
49 * [[Cookbook/NumberOfArticles]]
51 : git repository : http://repo.or.cz/w/anomen-overlay.git/tree/HEAD:/www-apps/pmwiki/cookbook/CachedNumberOfArticles