InputForSelectingPage


The code below is an attempt at creating a selector that first lists all the groups, and then lists all pages in the current group.

-> [@
[[#selectlistgroups]]
(:if ! equal {<$Group} {=$Group}:)
(:input select name="n" value="{=$Group}/":)
(:ifend:)
[[#selectlistgroupsend]]

[[#selectlistpages]]
(:input select name="n" value="{=$FullName}" label="{=$Name}":)
[[#selectlistpagesend]]
@]

(:input form:)
(:pagelist group=Test,PmWiki,Cookbook fmt=#selectlistgroups:) 
(:pagelist group={$Group} fmt=#selectlistpages:)
(:input submit :)
(:input end:)

[[#selectlistgroups]]
(:if ! equal {<$Group} {=$Group}:)
(:input select name="n" value="{=$Group}/":)
(:ifend:)
[[#selectlistgroupsend]]

[[#selectlistpages]]
(:input select name="n" value="{=$FullName}" label="{=$Name}":)
[[#selectlistpagesend]]

 0: 00.00 00.00 config start
 1: 00.00 00.00 config end
 2: 00.12 00.11 MarkupToHTML begin
 3: 00.12 00.11 MarkupToHTML begin
 4: 00.12 00.12 FPLTemplate: Chain begin
 5: 00.12 00.12 FPLTemplate: FPLTemplateLoad
 6: 00.13 00.12 FPLTemplate: FPLTemplateDefaults
 7: 00.13 00.12 FPLTemplate: FPLTemplatePageList
 8: 00.13 00.12 MakePageList pre
 9: 00.13 00.12 PageListSources begin
10: 00.13 00.12 PageStore::ls begin wiki.d/{$FullName}
11: 00.14 00.13 PageStore::ls merge wiki.d/{$FullName}
12: 00.14 00.13 PageStore::ls end wiki.d/{$FullName}
13: 00.14 00.13 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
14: 00.14 00.13 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
15: 00.14 00.13 PageStore::ls end $FarmD/wikilib.d/{$FullName}
16: 00.15 00.13 PageListSources end count=3634
17: 00.15 00.13 PageListSort pre ret=4 order=name
18: 00.15 00.13 MakePageList items count=3634, filters=
19: 00.15 00.14 MakePageList post count=3634, readc=0
20: 00.15 00.14 PageListSort begin
21: 00.15 00.14 PageListSort sort
22: 00.24 00.22 PageListSort end
23: 00.24 00.22 MakePageList end
24: 00.24 00.23 FPLTemplate: FPLTemplatePmWikiOrg
25: 00.24 00.23 MarkupToHTML begin
26: 00.24 00.23 MarkupToHTML end
27: 00.24 00.23 FPLTemplate: FPLTemplateSliceList
28: 00.24 00.23 FPLTemplate: FPLTemplateFormat
29: 00.48 00.46 MarkupToHTML begin
30: 01.02 01.00 MarkupToHTML end
31: 01.02 01.00 FPLTemplate: FPLTemplatePmWikiOrgPostFormat
32: 01.02 01.00 FPLTemplate: Chain end
33: 01.02 01.00 FPLTemplate: Chain begin
34: 01.02 01.00 FPLTemplate: FPLTemplateLoad
35: 01.02 01.00 FPLTemplate: FPLTemplateDefaults
36: 01.02 01.00 FPLTemplate: FPLTemplatePageList
37: 01.02 01.00 MakePageList pre
38: 01.02 01.00 PageListSources begin
39: 01.02 01.00 PageStore::ls begin wiki.d/{$FullName}
40: 01.03 01.00 PageStore::ls merge wiki.d/{$FullName}
41: 01.03 01.01 PageStore::ls end wiki.d/{$FullName}
42: 01.03 01.01 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
43: 01.03 01.01 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
44: 01.03 01.01 PageStore::ls end $FarmD/wikilib.d/{$FullName}
45: 01.03 01.01 PageListSources end count=1096
46: 01.03 01.01 PageListSort pre ret=4 order=name
47: 01.03 01.01 MakePageList items count=1096, filters=
48: 01.03 01.01 MakePageList post count=1096, readc=0
49: 01.03 01.01 PageListSort begin
50: 01.03 01.01 PageListSort sort
51: 01.05 01.03 PageListSort end
52: 01.05 01.03 MakePageList end
53: 01.06 01.03 FPLTemplate: FPLTemplatePmWikiOrg
54: 01.06 01.03 MarkupToHTML begin
55: 01.06 01.03 MarkupToHTML end
56: 01.06 01.03 FPLTemplate: FPLTemplateSliceList
57: 01.06 01.03 FPLTemplate: FPLTemplateFormat
58: 01.12 01.09 MarkupToHTML begin
59: 01.22 01.19 MarkupToHTML end
60: 01.22 01.19 FPLTemplate: FPLTemplatePmWikiOrgPostFormat
61: 01.22 01.19 FPLTemplate: Chain end
62: 01.22 01.20 MarkupToHTML end
63: 01.23 01.20 MarkupToHTML end
64: 01.23 01.20 MarkupToHTML begin
65: 01.24 01.21 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
66: 01.25 01.22 ReadApprovedUrls SiteAdmin.ApprovedUrls end
67: 01.25 01.22 MarkupToHTML end
68: 01.25 01.22 MarkupToHTML begin
69: 01.26 01.23 MarkupToHTML end
70: 01.26 01.23 now
Peak memory: 6,009,616 bytes