Use something like this in config.php:
$PageListSortCmp['revcount'] = '$PCache[$y]["rev"] -
$PCache[$x]["rev"]';
Then in a page:
(:pagelist group=Main order=revcount:)
The default pagelist sorting function with order=$RevCount will consider
the text contained in the variable as text and will compare it
alphabetically, so 1, 10, 101 will come before 2, 3, etc.
Here we create a custom numerical sort order (revcount, not $RevCount).
To order the pages in ascending order, use order=-revcount with a minus.
Petko
On 2015-07-15 17:06, Monte Padget wrote:
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