[pmwiki-users] pagelist with ctime?
Holger Kremb
pmwiki at kremb.net
Tue Dec 15 16:56:04 CST 2009
Petko Yotov wrote:
> Define in config.php two new PageVariables :
>
> # add page variable {$PageCreationDate} in format yyyy-mm-dd
> $FmtPV['$PageCreationDate'] = '@strftime("%Y-%m-%d", $page["ctime"])';
> $FmtPV['$PageCreationMonth']= '@strftime("%Y-%m",$page["ctime"])'; #optional
I did it already, just with different names. ;-)
> Then, use in a pagelist:
>
> (:pagelist trail=Site.AllRecentChanges order=-$PageCreationDate
> if="exists {=$FullName}" count=30:)
Thanks a lot. :-) Thats exactly what I am looking for as well as your next
pagelist examples.
> (:pagelist trail=Site.AllRecentChanges
> if="equal {=$PageCreationMonth} 2009-12":)
>
> In a pagelist template, you can use {=$PageCreationDate} and
> {=$PageCreationMonth} to display these dates for each page in the pagelist.
Petko, it was very helpful. Thanks a lot for your support, it works :-)
Kindly Regards
Holger
--
http://www.pmwiki.org/wiki/Profiles/Holger
More information about the pmwiki-users
mailing list