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] (January 16, 2026, at 08:24 PM)
GNU Zoo [2026] (January 16, 2026, at 07:30 AM)
Petko [2026] (January 05, 2026, at 10:45 PM)
Carlos AB [2026] (January 01, 2026, at 02:06 PM)
2025
Some Emojis [2025] (December 14, 2025, at 02:35 AM)
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)
Dfaure's profile page [2025] (August 17, 2025, at 09:56 PM)
Neil Herber [2025] (February 27, 2025, at 02:17 AM)
2024
Kirk Siqveland [2024] (December 18, 2024, at 05:49 AM)
V Krishn [2024] (November 07, 2024, at 09:48 AM)
Jyoti [2024] (October 04, 2024, at 03:55 AM)
Home Page-Talk [2024] (September 23, 2024, at 09:50 PM)
Lordmundi [2024] (September 06, 2024, at 01:56 PM)
Jimbo [2024] (August 01, 2024, at 08:35 PM)
Ooioo [2024] (July 31, 2024, at 01:29 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
Table Calc-Talk [2026-01-17] ()
Table Calc [2026-01-17] ()
Fox Poll [2026-01-17] ()
Fox Vote CSV [2026-01-17] ()
Flag Tooltips [2026-01-17] ()
Fox CSV-Talk [2026-01-17] ()
Simple Cart-Users [2026-01-17] ()
Bulletin [2026-01-17] ()
Add Image Type-Users [2026-01-17] ()
Booleansearchfilter [2026-01-17] ()
Sortable-Talk [2026-01-17] ()
Sortable [2026-01-17] ()
Image Popup [2026-01-17] ()
QR Code-Talk [2026-01-17] ()
Section Include-Talk [2026-01-17] ()
Pm Wiki Info-Users [2026-01-17] ()
Filterable-Talk [2026-01-17] ()
Export HTML Wiki-Users [2026-01-17] ()
Migrate UT F8-Talk [2026-01-17] ()
Migrate UTF 8 [2026-01-17] ()
|
Use a custom PageVariable $LastModifiedYear. --Petko March 15, 2011, at 03:59 AM
$FmtPV['$LastModifiedYear'] = 'strftime("%Y", $page["time"])';