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] (June 15, 2026, at 07:26 am)
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)
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)
|
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
Pm Wiki Plus-Users [2026-06-16] ()
hrStyle-Talk [2026-06-16] ()
hrStyle [2026-06-16] ()
PmWiki Plus [2026-06-16] ()
hltPHPLikeVim [2026-06-16] ()
hltPHPLikeVim [2026-06-16] ()
Edit Assist-Talk [2026-06-16] ()
Edit Assist [2026-06-16] ()
Hash Comments-Talk [2026-06-16] ()
Hash Comments [2026-06-16] ()
Url Get-Users [2026-06-16] ()
Url Get [2026-06-16] ()
Button Markup [2026-06-16] ()
Close Block On Same Line [2026-06-16] ()
Thumbs-Talk [2026-06-16] ()
Thumbs [2026-06-16] ()
Comma Enabled Markup Expressions [2026-06-16] ()
Comma Enabled Calculating [2026-06-16] ()
Js Edit Toolbar [2026-06-16] ()
Hover Notes [2026-06-16] ()
|
Use a custom PageVariable $LastModifiedYear. --Petko March 15, 2011, at 03:59 AM
$FmtPV['$LastModifiedYear'] = 'strftime("%Y", $page["time"])';