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:) >><< |
2024
Petko-rc [2024] (March 25, 2024, at 04:42 PM)
GNU Zoo [2024] (March 08, 2024, at 07:20 PM)
Seigler [2024] (February 12, 2024, at 08:16 PM)
2023
Hans B [2023] (November 27, 2023, at 12:42 PM)
Petko [2023] (November 19, 2023, at 02:07 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)
Simon's profile [2023] (January 04, 2023, at 10:29 PM)
Stef CT [2023] (January 04, 2023, at 06:33 PM)
2022
Neil Herber [2022] (December 07, 2022, at 08:02 PM)
Kirk [2022] (November 14, 2022, at 12:33 AM)
Tom G [2022] (October 30, 2022, at 12:59 PM)
Said Achmiz [2022] (October 30, 2022, at 02:46 AM)
Naturevault [2022] (October 24, 2022, at 02:44 AM)
Naturewiki [2022] (October 24, 2022, at 02:39 AM)
Lukystreik [2022] (October 08, 2022, at 05:41 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
Extension Design-Talk [2024-03-28] ()
Extension Design [2024-03-28] ()
Extension Hub-Talk [2024-03-28] ()
Code Highlight [2024-03-28] ()
Filterable [2024-03-28] ()
Extension Hub-Users [2024-03-28] ()
Bootstrap Icons [2024-03-28] ()
Extensions [2024-03-28] ()
Extension Hub [2024-03-28] ()
Markup Directive Functions-Users [2024-03-28] ()
Worse-Users [2024-03-28] ()
Dark Color Scheme-Talk [2024-03-28] ()
Gpx Stat-Users [2024-03-28] ()
Debug Messages [2024-03-28] ()
Markup Expression Samples-Talk [2024-03-28] ()
Ape-Talk-Archive [2024-03-28] ()
Gpx Stat [2024-03-28] ()
Paste Img Upload-Talk [2024-03-28] ()
Signal When Markup-Talk [2024-03-28] ()
Dark Color Scheme [2024-03-28] ()
|
Use a custom PageVariable $LastModifiedYear. --Petko March 15, 2011, at 03:59 AM
$FmtPV
['$LastModifiedYear'] = 'strftime("%Y", $page["time"])';