[pmwiki-users] Pagelist Question

Monte Padget m_padget at hotmail.com
Wed Jul 15 11:36:20 CDT 2015

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


From: languefrancaise at gmail.com
Date: Wed, 15 Jul 2015 18:11:25 +0200
Subject: Re: [pmwiki-users] Pagelist Question
To: m_padget at hotmail.com; pmwiki-users at pmichaud.com

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 <m_padget at hotmail.com>:

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.



pmwiki-users mailing list

pmwiki-users at pmichaud.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20150715/b6b33472/attachment.html>

More information about the pmwiki-users mailing list