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] (May 03, 2026, at 09:02 AM)
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)
GNU Zoo-Talk [2026] (April 13, 2026, at 05:52 PM)
Tontyna [2026] (April 11, 2026, at 10:03 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)
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)
Petko [2026] (January 05, 2026, at 10:45 PM)
Carlos AB [2026] (January 01, 2026, at 02:06 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
hrStyle-Talk [2026-05-03] ()
hrStyle [2026-05-03] ()
PmWiki Plus [2026-05-03] ()
hltPHPLikeVim [2026-05-03] ()
hltPHPLikeVim [2026-05-03] ()
Edit Assist-Talk [2026-05-03] ()
Edit Assist [2026-05-03] ()
Hash Comments-Talk [2026-05-03] ()
Hash Comments [2026-05-03] ()
Url Get-Users [2026-05-03] ()
Url Get [2026-05-03] ()
Button Markup [2026-05-03] ()
Close Block On Same Line [2026-05-03] ()
Thumbs-Talk [2026-05-03] ()
Thumbs [2026-05-03] ()
Comma Enabled Markup Expressions [2026-05-03] ()
Comma Enabled Calculating [2026-05-03] ()
Js Edit Toolbar [2026-05-03] ()
Hover Notes [2026-05-03] ()
Count Occurrences-Talk [2026-05-03] ()
|
Use a custom PageVariable $LastModifiedYear. --Petko March 15, 2011, at 03:59 AM
$FmtPV['$LastModifiedYear'] = 'strftime("%Y", $page["time"])';