Thanks, that seems to have done it! I hadn't created a sorting function.

-Monte

From: [email protected]
Date: Wed, 15 Jul 2015 18:11:25 +0200
Subject: Re: [pmwiki-users] Pagelist Question
To: [email protected]; [email protected]

I guess I get it working with these 2 steps :in config :

function IntegerNameCompare($x, $y) {      # get integer value of the page name 
or title      $xval = intval(PageVar($x, '$RevCount'));      $yval = 
intval(PageVar($y, '$RevCount'));      # compare integer values      if($xval > 
$yval) $c = 1;      elseif($xval < $yval) $c = -1;      else $c = 0;      
return $c;}$PageListSortCmp['revcount'] = 'IntegerNameCompare($x, $y)';

And working pagelist example :
(:pagelist group=Argot count=20 order=-revcount:)


2015-07-15 17:06 GMT+02:00 Monte Padget <[email protected]>:



I am trying to make a page that would show the pages with the most revisions. I 
have added $RevCount into my config.php and have tried various iterations of 
the line:

(:pagelist group=Group order=$RevCount count=10 fmt=#simple list=normal:)

but not getting the expected list. I have added {$RevCount} to a couple pages I 
know have high revision counts, but the list doesn't reflect.

Any help or direction would be greatly appreciated.

Thanks,
-Monte
                                          

_______________________________________________

pmwiki-users mailing list

[email protected]

http://www.pmichaud.com/mailman/listinfo/pmwiki-users



                                          
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to