Test /
Pages when modified
Pagelist by date modified
This pagelist attempts to list, by year, when pages were last modified.
The pagelist should group pages by year of modification, with one heading per year group.
I can't get the first directive to work the way I hoped it would.
>>comment<<
[[#lastmodified]]
(:template defaults list=normal name=-HomePage,-Template:)
(:template first {=$LastModifiedYear} :)
-< {=$LastModifiedYear}
(:template each:)
-> [[{=$FullName}|{=$Titlespaced}]] [-[{(ftime fmt="%Y" when="@{=$LastModifiedTime}")}] ({=$LastModified})-]
[[#lastmodifiedend]]
>><<
|
>>font-size:small<< (:pagelist fmt=#lastmodified order=-time,title group=Profiles count=20:) >><< |
2026
Petko-rc [2026] (September 25, 2026, at 09:46 pm)
Hufnagel [2026] (September 25, 2026, at 10:45 am)
Said Achmiz [2026] (September 01, 2026, at 08:21 am)
Holger-watchlist [2026] (August 28, 2026, at 09:33 pm)
Holger [2026] (August 13, 2026, at 09:12 am)
Jonathan Blake [2026] (August 05, 2026, at 06:19 pm)
Herb Honly [2026] (July 20, 2026, at 02:19 pm)
Becko [2026] (June 01, 2026, at 09:08 pm)
Michael Engelke [2026] (May 29, 2026, at 07:09 pm)
Danny B [2026] (May 28, 2026, at 01:44 pm)
Anomen [2026] (May 25, 2026, at 10:35 am)
Stirling Westrup [2026] (May 12, 2026, at 09:27 pm)
GNU Zoo [2026] (April 29, 2026, at 06:04 am)
Balu [2026] (April 25, 2026, at 09:12 pm)
Lionela [2026] (April 25, 2026, at 08:57 pm)
Elsni [2026] (April 25, 2026, at 08:56 pm)
Lukas Diduch [2026] (April 25, 2026, at 08:53 pm)
Sven [2026] (April 25, 2026, at 08:52 pm)
Eemeli Aro [2026] (April 22, 2026, at 02:53 am)
Simon-Talk [2026] (April 14, 2026, at 09:12 pm)
|
Add the following lines to config.php to get the following pagelist to work
$FmtPV['$Created'] = "strftime(\$GLOBALS['TimeFmt'], \$page['ctime'])"; $FmtPV['$CreatedTime'] = '$page["ctime"]';
>>comment<<
[[#created]]
(:template defaults list=normal name=-HomePage,-Template:)
(:template first {(ftime fmt="%Y" when="{=$Created}")} :)
-< {(ftime fmt="%Y" when="{=$Created}")}
(:template each:)
-> [[{=$FullName}|{=$Titlespaced}]] [-[{(ftime fmt="%F" when="@{=$CreatedTime}")}] ({=$Created})-]
[[#createdend]]
>><<
|
>>font-size:small<< (:pagelist fmt=#created order=-ctime,title group=Cookbook count=20:) >><< |
1969
Tls Cert Info-Talk [2026-09-26] ()
Tls Cert Info [2026-09-26] ()
Pm Wiki Plus-Talk [2026-09-26] ()
Pm Wiki Plus-Users [2026-09-26] ()
hrStyle-Talk [2026-09-26] ()
hrStyle [2026-09-26] ()
PmWiki Plus [2026-09-26] ()
hltPHPLikeVim [2026-09-26] ()
hltPHPLikeVim [2026-09-26] ()
Edit Assist-Talk [2026-09-26] ()
Edit Assist [2026-09-26] ()
Hash Comments-Talk [2026-09-26] ()
Hash Comments [2026-09-26] ()
Url Get-Users [2026-09-26] ()
Url Get [2026-09-26] ()
Button Markup [2026-09-26] ()
Close Block On Same Line [2026-09-26] ()
Thumbs-Talk [2026-09-26] ()
Thumbs [2026-09-26] ()
Comma Enabled Markup Expressions [2026-09-26] ()
|
Use a custom PageVariable $LastModifiedYear. --Petko March 15, 2011, at 03:59 AM
$FmtPV['$LastModifiedYear'] = 'strftime("%Y", $page["time"])';