[pmwiki-users] pagelist sort by date not time
Patrick R. Michaud
pmichaud at pobox.com
Wed Sep 27 01:16:58 CDT 2006
On Wed, Sep 27, 2006 at 01:54:08AM -0400, Henrik Bechmann wrote:
> I want to sort some pagelist output by
> but only by date (not taking into account the time of day).
> The logical equivalent would be:
> How would I do this?
There's not an easy way to do it in 2.1.x.
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"])';
See, for example, http://www.pmwiki.org/wiki/Test/RecentChangesByDate .
More information about the pmwiki-users