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] (January 20, 2025, at 12:18 PM)
GNU Zoo [2025] (January 17, 2025, at 11:05 PM)
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)
Petko [2024] (August 03, 2024, at 05:48 AM)
Jimbo [2024] (August 01, 2024, at 08:35 PM)
Ooioo [2024] (July 31, 2024, at 01:29 PM)
Simon's profile [2024] (April 27, 2024, at 08:54 PM)
Seigler [2024] (February 12, 2024, at 08:16 PM)
2023
Hans B [2023] (November 27, 2023, at 12:42 PM)
Pierre Racine [2023] (November 09, 2023, at 08:55 PM)
A-xn [2023] (November 01, 2023, at 02:31 PM)
Dave Cooke [2023] (October 19, 2023, at 12:53 AM)
David Kempe [2023] (April 28, 2023, at 06:53 AM)
Danny B [2023] (April 04, 2023, at 07:57 PM)
Byway [2023] (February 17, 2023, at 11:05 PM)
Stef CT [2023] (January 04, 2023, at 06:33 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
Sortable-Talk [2025-01-24] ()
Sortable [2025-01-24] ()
Image Popup [2025-01-24] ()
QR Code-Talk [2025-01-24] ()
Section Include-Talk [2025-01-24] ()
Pm Wiki Info-Users [2025-01-24] ()
Filterable-Talk [2025-01-24] ()
Export HTML Wiki-Users [2025-01-24] ()
Migrate UT F8-Talk [2025-01-24] ()
Migrate UTF 8 [2025-01-24] ()
Skins [2025-01-24] ()
Pm Wiki Info [2025-01-24] ()
Simple Playlist-Talk [2025-01-24] ()
Simple Playlist [2025-01-24] ()
Fox Honey Pot [2025-01-24] ()
Input Star [2025-01-24] ()
Extension Design-Talk [2025-01-24] ()
Extension Design [2025-01-24] ()
Extension Hub-Talk [2025-01-24] ()
Code Highlight [2025-01-24] ()
|
Use a custom PageVariable $LastModifiedYear. --Petko March 15, 2011, at 03:59 AM
$FmtPV
['$LastModifiedYear'] = 'strftime("%Y", $page["time"])';