Thursday, July 31, 2008, 7:46:17 AM, adam overton wrote:
> i don't have the best php style/experience, but this seems to do the
> trick for what i'm looking for. (perhaps someone knows a one-liner
> that's better than this?)
perhaps this:
$MarkupExpr['pagecount'] = 'PageCount($pagename, @$args[0])';
function PageCount($pn, $arg='') {
if ($arg=='') return 0;
return count(explode(",", $arg));
}
~Hans
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users