[pmwiki-users] Pagelist Question
Monte Padget
m_padget at hotmail.com
Wed Jul 15 11:46:55 CDT 2015
Thanks, I was thinking there should be a way with existing variables, but was coming up empty.
-Monte
> Date: Wed, 15 Jul 2015 18:34:00 +0200
> From: 5ko at 5ko.fr
> To: pmwiki-users at pmichaud.com
> Subject: Re: [pmwiki-users] Pagelist Question
>
> 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
> > pmwiki-users at pmichaud.com
> > http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20150715/2d1185d7/attachment-0001.html>
More information about the pmwiki-users
mailing list