[pmwiki-users] pagelist sort by date not time

Kathryn Andersen kat_lists at katspace.homelinux.org
Wed Sep 27 02:03:27 CDT 2006


On Wed, Sep 27, 2006 at 01:16:58AM -0500, Patrick R. Michaud wrote:
> In 2.2.0-beta5, one can define a custom page variable for date
> and then sort based on that:
> 
>     $FmtPV['$Date'] = 'strftime("%Y-%m-%d", $page["time"])';
> 
>     order=-$Date,group,name
> 
> See, for example, http://www.pmwiki.org/wiki/Test/RecentChangesByDate .

Fantastic!  So it does it for $Var variables as well as $:Var variables,
does it?  Cool.

Kathryn Andersen
-- 
 _--_|\     | Kathryn Andersen	<http://www.katspace.com>
/      \    | 
\_.--.*/    | GenFicCrit mailing list <http://www.katspace.com/gen_fic_crit/>
      v     | 
------------| Melbourne -> Victoria -> Australia -> Southern Hemisphere
Maranatha!  |	-> Earth -> Sol -> Milky Way Galaxy -> Universe




More information about the pmwiki-users mailing list