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] (March 14, 2026, at 10:31 AM)
GNU Zoo [2026] (March 09, 2026, at 07:56 AM)
GNU Zoo-Contrib [2026] (March 06, 2026, at 06:12 PM)
Bb [2026] (February 26, 2026, at 11:48 PM)
Petko-Talk [2026] (February 24, 2026, at 01:13 AM)
GNU Zoo-Talk [2026] (February 24, 2026, at 01:06 AM)
Nitram [2026] (February 17, 2026, at 09:52 PM)
Holger-watchlist [2026] (February 14, 2026, at 01:20 PM)
Holger [2026] (February 13, 2026, at 11:28 AM)
Noe [2026] (February 09, 2026, at 03:31 PM)
Some Emojis [2026] (February 07, 2026, at 06:00 PM)
Jokes [2026] (February 06, 2026, at 06:07 AM)
Petko [2026] (January 05, 2026, at 10:45 PM)
Carlos AB [2026] (January 01, 2026, at 02:06 PM)
2025
PmWiki could be reprogrammed in PHP without regex [2025] (December 12, 2025, at 08:43 PM)
Hamster Units [2025] (December 12, 2025, at 08:41 PM)
The Man In The Arena [2025] (December 12, 2025, at 08:39 PM)
Anomen [2025] (December 05, 2025, at 08:11 PM)
Simon's profile [2025] (December 03, 2025, at 07:14 PM)
Y Dcl [2025] (October 13, 2025, at 01:45 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
Button Markup [2026-03-15] ()
Close Block On Same Line [2026-03-15] ()
Thumbs-Talk [2026-03-15] ()
Thumbs [2026-03-15] ()
Comma Enabled Markup Expressions [2026-03-15] ()
Comma Enabled Calculating [2026-03-15] ()
Js Edit Toolbar [2026-03-15] ()
Hover Notes [2026-03-15] ()
Count Occurrences-Talk [2026-03-15] ()
Count Occurrences [2026-03-15] ()
Count Between Markers-Talk [2026-03-15] ()
Count Between Markers [2026-03-15] ()
Standalone-Talk [2026-03-15] ()
Table Calc-Talk [2026-03-15] ()
Table Calc [2026-03-15] ()
Fox Poll [2026-03-15] ()
Fox Vote CSV [2026-03-15] ()
Flag Tooltips [2026-03-15] ()
Fox CSV-Talk [2026-03-15] ()
Simple Cart-Users [2026-03-15] ()
|
Use a custom PageVariable $LastModifiedYear. --Petko March 15, 2011, at 03:59 AM
$FmtPV['$LastModifiedYear'] = 'strftime("%Y", $page["time"])';