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.03 00.02 MarkupToHTML begin
 3: 00.03 00.02 MarkupToHTML begin
 4: 00.03 00.03 FPLTemplate: Chain begin
 5: 00.03 00.03 FPLTemplate: FPLTemplateLoad
 6: 00.03 00.03 FPLTemplate: FPLTemplateDefaults
 7: 00.03 00.03 FPLTemplate: FPLTemplatePageList
 8: 00.03 00.03 MakePageList pre
 9: 00.03 00.03 PageListSources begin
10: 00.03 00.03 PageStore::ls begin wiki.d/{$FullName}
11: 00.04 00.03 PageStore::ls merge wiki.d/{$FullName}
12: 00.05 00.04 PageStore::ls end wiki.d/{$FullName}
13: 00.05 00.04 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
14: 00.05 00.04 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
15: 00.05 00.04 PageStore::ls end $FarmD/wikilib.d/{$FullName}
16: 00.05 00.04 PageListSources end count=3592
17: 00.05 00.04 PageListSort pre ret=4 order=name
18: 00.05 00.04 MakePageList items count=3592, filters=
19: 00.05 00.05 MakePageList post count=3592, readc=0
20: 00.05 00.05 PageListSort begin
21: 00.05 00.05 PageListSort sort
22: 00.12 00.11 PageListSort end
23: 00.12 00.11 MakePageList end
24: 00.12 00.12 FPLTemplate: FPLTemplatePmWikiOrg
25: 00.13 00.12 MarkupToHTML begin
26: 00.13 00.12 MarkupToHTML end
27: 00.13 00.12 FPLTemplate: FPLTemplateSliceList
28: 00.13 00.12 FPLTemplate: FPLTemplateFormat
29: 00.53 00.32 MarkupToHTML begin
30: 01.27 00.78 MarkupToHTML end
31: 01.27 00.78 FPLTemplate: FPLTemplatePmWikiOrgPostFormat
32: 01.27 00.78 FPLTemplate: Chain end
33: 01.27 00.78 FPLTemplate: Chain begin
34: 01.27 00.78 FPLTemplate: FPLTemplateLoad
35: 01.28 00.78 FPLTemplate: FPLTemplateDefaults
36: 01.28 00.78 FPLTemplate: FPLTemplatePageList
37: 01.28 00.78 MakePageList pre
38: 01.28 00.78 PageListSources begin
39: 01.28 00.78 PageStore::ls begin wiki.d/{$FullName}
40: 01.28 00.78 PageStore::ls merge wiki.d/{$FullName}
41: 01.29 00.79 PageStore::ls end wiki.d/{$FullName}
42: 01.29 00.79 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
43: 01.29 00.79 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
44: 01.29 00.79 PageStore::ls end $FarmD/wikilib.d/{$FullName}
45: 01.29 00.79 PageListSources end count=1085
46: 01.29 00.79 PageListSort pre ret=4 order=name
47: 01.29 00.79 MakePageList items count=1085, filters=
48: 01.29 00.79 MakePageList post count=1085, readc=0
49: 01.29 00.79 PageListSort begin
50: 01.29 00.79 PageListSort sort
51: 01.31 00.81 PageListSort end
52: 01.31 00.81 MakePageList end
53: 01.31 00.81 FPLTemplate: FPLTemplatePmWikiOrg
54: 01.31 00.81 MarkupToHTML begin
55: 01.31 00.81 MarkupToHTML end
56: 01.31 00.81 FPLTemplate: FPLTemplateSliceList
57: 01.31 00.81 FPLTemplate: FPLTemplateFormat
58: 01.40 00.86 MarkupToHTML begin
59: 01.57 00.95 MarkupToHTML end
60: 01.57 00.95 FPLTemplate: FPLTemplatePmWikiOrgPostFormat
61: 01.57 00.95 FPLTemplate: Chain end
62: 01.58 00.95 MarkupToHTML end
63: 01.59 00.96 MarkupToHTML end
64: 01.59 00.96 MarkupToHTML begin
65: 01.61 00.97 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
66: 01.61 00.97 ReadApprovedUrls SiteAdmin.ApprovedUrls end
67: 01.62 00.98 MarkupToHTML end
68: 01.62 00.98 MarkupToHTML begin
69: 01.64 00.98 MarkupToHTML end
70: 01.64 00.98 now
Peak memory: 5,866,912 bytes