[pmwiki-users] Pages in a Group
marc
gmane at auxbuss.com
Fri Oct 27 07:00:16 CDT 2006
The Editor said...
> Is there any way to get the number of pages in a group in a recipe? I
> tried this little bit of code but it just gives me zero. Maybe it has
> something to do with the pattern matching?
>
> $e = 0;
> foreach(ListPages("/^$g\\.\\d/") as $n) {
> $e = $e + 1;
> }
>
> Does anyone see the problem?
foreach(ListPages("/^$group\./") as $n) {
$e++;
}
or
echo count(ListPages("/^$group\./"));
--
Best,
Marc
More information about the pmwiki-users
mailing list