Recent Changes - Search:

PmWiki

pmwiki.org

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

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.

lastmodified pagelist
>>comment<<
[[#lastmodified]]
(:template defaults list=normal name=-HomePage,-Template:)
(:template first {=$LastModifiedYear} :)
-< {=$LastModifiedYear}
(:template each:)
-> [[{=$FullName}|{=$Titlespaced}]] [-[{(ftime fmt="%Y"
when="@{=$LastModifiedTime}")}] ({=$LastModified})-]
[[#lastmodifiedend]]
>><<

(:template defaults list=normal name=-HomePage,-Template:) (:template first {=$LastModifiedYear} :)

{=$LastModifiedYear}

(:template each:)

{=$Titlespaced}? [1969] ({=$LastModified})

>>font-size:small<<
(:pagelist fmt=#lastmodified order=-time,title group=Profiles count=20:)
>><<
2012
Ugo [2012] (May 23, 2012, at 03:09 PM)
Story Way [2012] (May 09, 2012, at 04:34 AM)
Dave [2012] (April 30, 2012, at 03:20 PM)
Feer [2012] (April 24, 2012, at 10:36 PM)
Hans B [2012] (April 13, 2012, at 06:17 AM)
Petko [2012] (April 12, 2012, at 03:35 PM)
Subhrajit [2012] (April 10, 2012, at 06:50 PM)
Caroline Guénette [2012] (March 10, 2012, at 03:11 PM)
Julian Knight [2012] (March 08, 2012, at 10:39 AM)
Ron G [2012] (March 02, 2012, at 05:13 PM)
Vince [2012] (February 21, 2012, at 03:48 PM)
Stefan Wüst @ stie.biz [2012] (February 18, 2012, at 03:06 PM)
Michael Ruschena [2012] (February 10, 2012, at 08:17 PM)
Benji [2012] (January 27, 2012, at 07:06 AM)
Schlaefer [2012] (January 19, 2012, at 02:50 AM)
D Kirkham [2012] (January 12, 2012, at 06:43 AM)
Golo [2012] (January 10, 2012, at 03:58 AM)
Matthias Günther [2012] (January 04, 2012, at 12:54 AM)
Holger-watchlist [2012] (January 02, 2012, at 05:07 AM)
2011
Kaptainkory [2011] (December 30, 2011, at 01:49 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"]';
created pagelist
>>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]]
>><<

(:template defaults list=normal name=-HomePage,-Template:) (:template first 1969 :)

1969

(:template each:)

{=$Titlespaced}? [1969-12-31] ({=$Created})

>>font-size:small<<
(:pagelist fmt=#created order=-ctime,title group=Cookbook count=20:)
>><<
1969
Pm Doc Convert-Talk [1969-12-31] ()
Mac OSX [1969-12-31] ()
Pm Doc Convert-Users [1969-12-31] ()
Detect Mobile Free [1969-12-31] ()
Pm Reader-spec-v1-Talk [1969-12-31] ()
Free Mind [1969-12-31] ()
Simple Cart [1969-12-31] ()
Open Pass-Talk [1969-12-31] ()
Mini Edit-Talk [1969-12-31] ()
Pagelist Random Image [1969-12-31] ()
CSV Action [1969-12-31] ()
Title Cased-Users [1969-12-31] ()
Phplm-Users [1969-12-31] ()
Bad Behavior [1969-12-31] ()

Use a custom PageVariable $LastModifiedYear. --Petko March 15, 2011, at 03:59 AM

  $FmtPV['$LastModifiedYear'] = 'strftime("%Y", $page["time"])';
Edit - History - Print - Recent Changes - Search
Page last modified on September 10, 2011, at 12:03 PM
 0: 00.00 00.00 config start
 1: 00.00 00.01 config end
 2: 00.08 00.05 MarkupToHTML begin
 3: 00.08 00.05 MarkupToHTML begin
 4: 00.15 00.11 MarkupToHTML end
 5: 00.15 00.11 MarkupToHTML begin
 6: 00.15 00.11 FPLTemplate: Chain begin
 7: 00.15 00.11 FPLTemplate: FPLTemplateLoad
 8: 00.15 00.11 FPLTemplate: FPLTemplateDefaults
 9: 00.15 00.11 FPLTemplate: FPLTemplatePageList
10: 00.15 00.11 MakePageList pre
11: 00.17 00.11 PageListSources begin
12: 00.17 00.11 PageStore::ls begin wiki.d/{$FullName}
13: 00.22 00.15 PageStore::ls merge wiki.d/{$FullName}
14: 00.31 00.24 PageStore::ls end wiki.d/{$FullName}
15: 00.31 00.24 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
16: 00.31 00.24 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
17: 00.31 00.24 PageStore::ls end $FarmD/wikilib.d/{$FullName}
18: 00.31 00.25 PageListSources end count=918
19: 00.32 00.25 PageListSort pre ret=6 order=-time,title
20: 00.32 00.25 MakePageList items count=918, filters=PageListSort
21: 00.68 00.59 MakePageList post count=918, readc=918
22: 00.68 00.59 PageListCache begin save key=21b965e880a97bc3dcbbbb004002d6e4
23: 00.68 00.59 PageListCache end save
24: 00.68 00.59 PageListSort begin
25: 00.74 00.64 PageListSort sort
26: 00.82 00.72 PageListSort end
27: 00.82 00.72 MakePageList end
28: 00.82 00.72 FPLTemplate: FPLTemplateSliceList
29: 00.82 00.72 FPLTemplate: FPLTemplateFormat
30: 00.84 00.74 MarkupToHTML begin
31: 00.91 00.81 MarkupToHTML end
32: 00.91 00.81 FPLTemplate: Chain end
33: 00.91 00.81 MarkupToHTML end
34: 00.91 00.81 MarkupToHTML begin
35: 00.92 00.82 MarkupToHTML end
36: 00.92 00.82 MarkupToHTML begin
37: 00.92 00.82 FPLTemplate: Chain begin
38: 00.92 00.82 FPLTemplate: FPLTemplateLoad
39: 00.92 00.82 FPLTemplate: FPLTemplateDefaults
40: 00.92 00.82 FPLTemplate: FPLTemplatePageList
41: 00.92 00.82 MakePageList pre
42: 00.93 00.82 PageListSources begin
43: 00.93 00.82 PageStore::ls begin wiki.d/{$FullName}
44: 00.97 00.85 PageStore::ls merge wiki.d/{$FullName}
45: 01.06 00.95 PageStore::ls end wiki.d/{$FullName}
46: 01.07 00.96 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
47: 01.07 00.96 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
48: 01.07 00.96 PageStore::ls end $FarmD/wikilib.d/{$FullName}
49: 01.08 00.97 PageListSources end count=1670
50: 01.08 00.97 PageListSort pre ret=6 order=-ctime,title
51: 01.08 00.97 MakePageList items count=1670, filters=PageListSort
52: 01.98 01.78 MakePageList post count=1670, readc=1670
53: 01.98 01.78 PageListCache begin save key=1eb6ac1fffa719ec693a4c2841c5a641
54: 02.00 01.79 PageListCache end save
55: 02.00 01.79 PageListSort begin
56: 02.10 01.89 PageListSort sort
57: 02.23 02.01 PageListSort end
58: 02.23 02.01 MakePageList end
59: 02.23 02.02 FPLTemplate: FPLTemplateSliceList
60: 02.24 02.02 FPLTemplate: FPLTemplateFormat
61: 02.26 02.05 MarkupToHTML begin
62: 02.33 02.11 MarkupToHTML end
63: 02.33 02.11 FPLTemplate: Chain end
64: 02.33 02.12 MarkupToHTML end
65: 02.37 02.15 MarkupToHTML end
66: 02.38 02.16 MarkupToHTML begin
67: 02.41 02.19 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
68: 02.42 02.20 ReadApprovedUrls SiteAdmin.ApprovedUrls end
69: 02.44 02.22 MarkupToHTML end
70: 02.44 02.22 MarkupToHTML begin
71: 02.45 02.24 MarkupToHTML end
72: 02.46 02.24 now