[pmwiki-users] pagelist order

Sameer Kumar skumar at eharch.com
Fri Mar 21 10:14:52 CDT 2008

>      or more easy to read and still short like


>      $PageListSortCmp['shortyear'] = 'ShortYear($x, $y)';

>      function ShortYear($x, $y) {

>      $dx = PageVar($x, '$Name');

>      $dy = PageVar($y, '$Name');

>      $x = (substr($dx,0,2)>=50 ? '0'.$dx : '1'.$dx);

>      $y = (substr($dy,0,2)>=50 ? '0'.$dy : '1'.$dy);

>      return strcmp($x, $y);

>      }

And previously


>      then use as in this example:


>      (:pagelist group=Projects list=normal fmt=-shortyear:)



I am currently using a custom pagelist format fmt=#projlist which is a
sortable table. 

Is there a way to integrate the above within the existing format or use
it as a sorting method (order=...) instead of a fmt?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20080321/b2fbf3a3/attachment.html 

More information about the pmwiki-users mailing list