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:) >><< |
2023
Petko-rc [2023] (November 28, 2023, at 02:23 PM)
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)
Robert Riebisch [2022] (October 01, 2022, at 07:01 PM)
Kt 007 [2022] (September 04, 2022, at 10:13 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
Fox CSV [2023-11-29] ()
CSV Template-Talk [2023-11-29] ()
Fox Section [2023-11-29] ()
Fox Count [2023-11-29] ()
CSV Template-Users [2023-11-29] ()
CSV Template [2023-11-29] ()
Google Site Map-Users [2023-11-29] ()
Google Site Map-Talk [2023-11-29] ()
Google XML Sitemap Creator [2023-11-29] ()
Journal-Talk [2023-11-29] ()
International PT Vs-Users [2023-11-29] ()
ISO 8859 Make Page Name Patterns-Users [2023-11-29] ()
ISO 8859 Make Page Name Patterns-Talk [2023-11-29] ()
Move Copy Del Group [2023-11-29] ()
Encode Post [2023-11-29] ()
Maxi2-Talk [2023-11-29] ()
Markup Directive Functions-Talk [2023-11-29] ()
EX-Talk [2023-11-29] ()
Copying International UR Ls [2023-11-29] ()
Dash-Pagenames [2023-11-29] ()
|
Use a custom PageVariable $LastModifiedYear. --Petko March 15, 2011, at 03:59 AM
$FmtPV
['$LastModifiedYear'] = 'strftime("%Y", $page["time"])';