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.01 00.01 config end
 2: 00.21 00.20 MarkupToHTML begin
 3: 00.21 00.20 MarkupToHTML begin
 4: 00.22 00.21 FPLTemplate: Chain begin
 5: 00.22 00.21 FPLTemplate: FPLTemplateLoad
 6: 00.22 00.21 FPLTemplate: FPLTemplateDefaults
 7: 00.22 00.21 FPLTemplate: FPLTemplatePageList
 8: 00.22 00.21 MakePageList pre
 9: 00.22 00.21 PageListSources begin
10: 00.22 00.21 PageStore::ls begin wiki.d/{$FullName}
11: 00.22 00.21 PageStore::ls merge wiki.d/{$FullName}
12: 00.23 00.21 PageStore::ls end wiki.d/{$FullName}
13: 00.23 00.22 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
14: 00.23 00.22 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
15: 00.23 00.22 PageStore::ls end $FarmD/wikilib.d/{$FullName}
16: 00.23 00.22 PageListSources end count=3760
17: 00.23 00.22 PageListSort pre ret=4 order=name
18: 00.23 00.22 MakePageList items count=3760, filters=
19: 00.24 00.22 MakePageList post count=3760, readc=0
20: 00.24 00.22 PageListSort begin
21: 00.24 00.22 PageListSort sort
22: 00.28 00.27 PageListSort end
23: 00.28 00.27 MakePageList end
24: 00.28 00.27 FPLTemplate: FPLTemplatePmWikiOrg
25: 00.29 00.27 MarkupToHTML begin
26: 00.29 00.27 MarkupToHTML end
27: 00.29 00.27 FPLTemplate: FPLTemplateSliceList
28: 00.29 00.27 FPLTemplate: FPLTemplateFormat
29: 00.49 00.48 MarkupToHTML begin
30: 00.89 00.87 MarkupToHTML end
31: 00.89 00.87 FPLTemplate: FPLTemplatePmWikiOrgPostFormat
32: 00.89 00.87 FPLTemplate: Chain end
33: 00.89 00.87 FPLTemplate: Chain begin
34: 00.89 00.87 FPLTemplate: FPLTemplateLoad
35: 00.89 00.87 FPLTemplate: FPLTemplateDefaults
36: 00.89 00.87 FPLTemplate: FPLTemplatePageList
37: 00.89 00.87 MakePageList pre
38: 00.89 00.87 PageListSources begin
39: 00.89 00.87 PageStore::ls begin wiki.d/{$FullName}
40: 00.89 00.87 PageStore::ls merge wiki.d/{$FullName}
41: 00.90 00.88 PageStore::ls end wiki.d/{$FullName}
42: 00.90 00.88 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
43: 00.90 00.88 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
44: 00.90 00.88 PageStore::ls end $FarmD/wikilib.d/{$FullName}
45: 00.90 00.88 PageListSources end count=1134
46: 00.90 00.88 PageListSort pre ret=4 order=name
47: 00.90 00.88 MakePageList items count=1134, filters=
48: 00.90 00.88 MakePageList post count=1134, readc=0
49: 00.90 00.88 PageListSort begin
50: 00.90 00.88 PageListSort sort
51: 00.91 00.89 PageListSort end
52: 00.91 00.89 MakePageList end
53: 00.91 00.89 FPLTemplate: FPLTemplatePmWikiOrg
54: 00.91 00.89 MarkupToHTML begin
55: 00.91 00.89 MarkupToHTML end
56: 00.91 00.89 FPLTemplate: FPLTemplateSliceList
57: 00.91 00.89 FPLTemplate: FPLTemplateFormat
58: 00.97 00.94 MarkupToHTML begin
59: 01.06 01.03 MarkupToHTML end
60: 01.06 01.03 FPLTemplate: FPLTemplatePmWikiOrgPostFormat
61: 01.06 01.03 FPLTemplate: Chain end
62: 01.06 01.03 MarkupToHTML end
63: 01.06 01.04 MarkupToHTML end
64: 01.06 01.04 MarkupToHTML begin
65: 01.07 01.05 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
66: 01.08 01.05 ReadApprovedUrls SiteAdmin.ApprovedUrls end
67: 01.08 01.06 MarkupToHTML end
68: 01.08 01.06 MarkupToHTML begin
69: 01.09 01.06 MarkupToHTML end
70: 01.09 01.06 now
Peak memory: 6,575,416 bytes