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:) >><< |
2025
Petko-rc [2025] (December 13, 2025, at 08:32 PM)
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)
Some Emojis [2025] (December 12, 2025, at 08:40 PM)
The Man In The Arena [2025] (December 12, 2025, at 08:39 PM)
GNU Zoo [2025] (December 11, 2025, at 04:48 PM)
Anomen [2025] (December 05, 2025, at 08:11 PM)
Simon's profile [2025] (December 03, 2025, at 07:14 PM)
Petko [2025] (November 01, 2025, at 05:41 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)
Seigler [2024] (February 12, 2024, at 08:16 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
Fox Poll [2025-12-13] ()
Fox Vote CSV [2025-12-13] ()
Flag Tooltips [2025-12-13] ()
Fox CSV-Talk [2025-12-13] ()
Simple Cart-Users [2025-12-13] ()
Bulletin [2025-12-13] ()
Add Image Type-Users [2025-12-13] ()
Booleansearchfilter [2025-12-13] ()
Sortable-Talk [2025-12-13] ()
Sortable [2025-12-13] ()
Image Popup [2025-12-13] ()
QR Code-Talk [2025-12-13] ()
Section Include-Talk [2025-12-13] ()
Pm Wiki Info-Users [2025-12-13] ()
Filterable-Talk [2025-12-13] ()
Export HTML Wiki-Users [2025-12-13] ()
Migrate UT F8-Talk [2025-12-13] ()
Migrate UTF 8 [2025-12-13] ()
Skins [2025-12-13] ()
Pm Wiki Info [2025-12-13] ()
|
Use a custom PageVariable $LastModifiedYear. --Petko March 15, 2011, at 03:59 AM
$FmtPV['$LastModifiedYear'] = 'strftime("%Y", $page["time"])';