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.06 00.01 config end
 2: 00.35 00.20 MarkupToHTML begin
 3: 00.35 00.20 MarkupToHTML begin
 4: 00.36 00.21 FPLTemplate: Chain begin
 5: 00.36 00.21 FPLTemplate: FPLTemplateLoad
 6: 00.36 00.21 FPLTemplate: FPLTemplateDefaults
 7: 00.36 00.21 FPLTemplate: FPLTemplatePageList
 8: 00.36 00.21 MakePageList pre
 9: 00.36 00.21 PageListSources begin
10: 00.36 00.21 PageStore::ls begin wiki.d/{$FullName}
11: 00.36 00.22 PageStore::ls merge wiki.d/{$FullName}
12: 00.37 00.22 PageStore::ls end wiki.d/{$FullName}
13: 00.37 00.22 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
14: 00.37 00.22 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
15: 00.37 00.22 PageStore::ls end $FarmD/wikilib.d/{$FullName}
16: 00.37 00.23 PageListSources end count=3765
17: 00.37 00.23 PageListSort pre ret=4 order=name
18: 00.37 00.23 MakePageList items count=3765, filters=
19: 00.38 00.23 MakePageList post count=3765, readc=0
20: 00.38 00.23 PageListSort begin
21: 00.38 00.23 PageListSort sort
22: 00.42 00.28 PageListSort end
23: 00.42 00.28 MakePageList end
24: 00.43 00.28 FPLTemplate: FPLTemplatePmWikiOrg
25: 00.43 00.28 MarkupToHTML begin
26: 00.43 00.28 MarkupToHTML end
27: 00.43 00.28 FPLTemplate: FPLTemplateSliceList
28: 00.43 00.28 FPLTemplate: FPLTemplateFormat
29: 00.62 00.47 MarkupToHTML begin
30: 01.08 00.92 MarkupToHTML end
31: 01.08 00.92 FPLTemplate: FPLTemplatePmWikiOrgPostFormat
32: 01.08 00.92 FPLTemplate: Chain end
33: 01.08 00.92 FPLTemplate: Chain begin
34: 01.08 00.92 FPLTemplate: FPLTemplateLoad
35: 01.08 00.92 FPLTemplate: FPLTemplateDefaults
36: 01.08 00.92 FPLTemplate: FPLTemplatePageList
37: 01.08 00.92 MakePageList pre
38: 01.08 00.92 PageListSources begin
39: 01.08 00.92 PageStore::ls begin wiki.d/{$FullName}
40: 01.09 00.93 PageStore::ls merge wiki.d/{$FullName}
41: 01.09 00.93 PageStore::ls end wiki.d/{$FullName}
42: 01.09 00.93 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
43: 01.09 00.93 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
44: 01.09 00.93 PageStore::ls end $FarmD/wikilib.d/{$FullName}
45: 01.09 00.93 PageListSources end count=1134
46: 01.09 00.93 PageListSort pre ret=4 order=name
47: 01.09 00.93 MakePageList items count=1134, filters=
48: 01.09 00.93 MakePageList post count=1134, readc=0
49: 01.09 00.93 PageListSort begin
50: 01.09 00.93 PageListSort sort
51: 01.10 00.94 PageListSort end
52: 01.10 00.94 MakePageList end
53: 01.10 00.94 FPLTemplate: FPLTemplatePmWikiOrg
54: 01.10 00.94 MarkupToHTML begin
55: 01.10 00.94 MarkupToHTML end
56: 01.10 00.94 FPLTemplate: FPLTemplateSliceList
57: 01.10 00.94 FPLTemplate: FPLTemplateFormat
58: 01.17 01.00 MarkupToHTML begin
59: 01.30 01.11 MarkupToHTML end
60: 01.30 01.11 FPLTemplate: FPLTemplatePmWikiOrgPostFormat
61: 01.30 01.11 FPLTemplate: Chain end
62: 01.30 01.11 MarkupToHTML end
63: 01.30 01.12 MarkupToHTML end
64: 01.31 01.12 MarkupToHTML begin
65: 01.32 01.13 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
66: 01.33 01.14 ReadApprovedUrls SiteAdmin.ApprovedUrls end
67: 01.33 01.14 MarkupToHTML end
68: 01.33 01.14 MarkupToHTML begin
69: 01.34 01.15 MarkupToHTML end
70: 01.34 01.15 now
Peak memory: 6,488,632 bytes