[pmwiki-users] Help with a pagelist

Petko Yotov 5ko at 5ko.fr
Tue Mar 15 04:05:51 CDT 2011


On Tuesday 15 March 2011 09:40:39, Simon wrote :
> Please see http://www.pmwiki.org/wiki/Test/PageListLastModified
> 
> I'm struggling to get the output I expect.
> Any suggestions would be welcome.

There are two problems here. 

The first is the markup expression in the (:template...:) tag - it is not 
evaluated, so all pages, having a different timestamp, are on different lines.

This is simply fixed by a custom page variable, for example $LastModifiedYear 
for which I gave an example on that page.

The second problem (year 1969 instead of 2011) is that PHP has trouble parsing 
all date-time strings correctly. This is fixable by using the unambiguous 
@{=$LastModifiedTime} instead of {=$LastModified} inside the when parameter.

Petko



More information about the pmwiki-users mailing list