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:) >><< |
2022
Petko-rc [2022] (August 15, 2022, at 08:31 AM)
Benedikt Hochstrasser [2022] (August 10, 2022, at 08:58 AM)
Said Achmiz [2022] (July 17, 2022, at 01:02 PM)
Kirk Siqveland [2022] (July 02, 2022, at 02:00 PM)
Bheesham [2022] (July 01, 2022, at 08:55 PM)
Simon's profile [2022] (April 26, 2022, at 10:31 AM)
Siegfried Seibert [2022] (March 28, 2022, at 05:45 PM)
Matt Jhsn [2022] (March 03, 2022, at 12:42 AM)
Marc [2022] (March 01, 2022, at 02:57 PM)
GNU Zoo Include 1 [2022] (February 10, 2022, at 09:43 PM)
GNU Zoo [2022] (February 10, 2022, at 09:36 PM)
Anomen [2022] (February 08, 2022, at 02:08 PM)
Petko [2022] (January 17, 2022, at 07:08 AM)
Robert Langston [2022] (January 15, 2022, at 07:25 AM)
Pierre [2022] (January 03, 2022, at 04:52 PM)
Pierre Rousseau [2022] (January 03, 2022, at 03:58 PM)
2021
PRZ [2021] (December 29, 2021, at 01:19 AM)
Neil Herber [2021] (December 27, 2021, at 02:29 AM)
Des [2021] (December 23, 2021, at 07:50 AM)
Mateusz [2021] (December 23, 2021, at 07:50 AM)
|
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
Magic Menus [2022-08-16] ()
Toggler [2022-08-16] ()
Checklists [2022-08-16] ()
In Category-Users [2022-08-16] ()
In Category [2022-08-16] ()
Server Info [2022-08-16] ()
Attach Image Size-Talk [2022-08-16] ()
Deactivate Paragraph Tag [2022-08-16] ()
Lazy Loading-Users [2022-08-16] ()
Lazy Loading [2022-08-16] ()
Embed Facebook [2022-08-16] ()
Custom Syntax-Users [2022-08-16] ()
Custom Syntax-Talk [2022-08-16] ()
Messages Replacement [2022-08-16] ()
Simple Recipe Template [2022-08-16] ()
Hide Diff [2022-08-16] ()
Fuse Edit [2022-08-16] ()
Reindex Categories-Users [2022-08-16] ()
Journal [2022-08-16] ()
$CustomSyntax [2022-08-16] ()
|
Use a custom PageVariable $LastModifiedYear. --Petko March 15, 2011, at 03:59 AM
$FmtPV
['$LastModifiedYear'] = 'strftime("%Y", $page["time"])';