[pmwiki-users] ListPages ?
The Editor
editor at fast.st
Wed Oct 25 15:06:31 CDT 2006
I can't seem to get this little bit of code working right. After hours...
The first conditional is triggered properly. Before the question mark
line, I can return $g as the group I'm wanting to list. But "hi"
never appears. It's as if it can't find any of the pages. This is
supposed to do my threading function...
$e = 1000;
if (strpos("$vv[0]$vv[1]", "#") || strpos("$vv[0]$vv[1]", "=")) {
$g = $vv[0];
// return $g;
??? foreach(ListPages("/^$g\\.\\d/") as $n) {
return "hi";
$n = substr($n,strlen($g)+1);
$e = max($e,$n);
}
if ((PageExists("$vv[0].$e")) && (strpos("$vv[0]$vv[1]", "#"))) $e = $e + 1;
}
If someone could help explain the ListPages function a bit I'd
appreciate it. I'd like to also use it to verify more accurately
whether or not any pages exist in a given group (without having to
rely on existence of a recent changes page).
Cheers,
Caveman
More information about the pmwiki-users
mailing list