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.04 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.05 PageListSources end count=3572
17: 00.05 00.05 PageListSort pre ret=4 order=name
18: 00.05 00.05 MakePageList items count=3572, filters=
19: 00.05 00.05 MakePageList post count=3572, readc=0
20: 00.05 00.05 PageListSort begin
21: 00.05 00.05 PageListSort sort
22: 00.13 00.12 PageListSort end
23: 00.13 00.12 MakePageList end
24: 00.13 00.12 FPLTemplate: FPLTemplatePmWikiOrg
25: 00.13 00.13 MarkupToHTML begin
26: 00.13 00.13 MarkupToHTML end
27: 00.13 00.13 FPLTemplate: FPLTemplateSliceList
28: 00.13 00.13 FPLTemplate: FPLTemplateFormat
29: 00.34 00.33 MarkupToHTML begin
30: 00.82 00.81 MarkupToHTML end
31: 00.82 00.81 FPLTemplate: FPLTemplatePmWikiOrgPostFormat
32: 00.82 00.81 FPLTemplate: Chain end
33: 00.82 00.81 FPLTemplate: Chain begin
34: 00.82 00.81 FPLTemplate: FPLTemplateLoad
35: 00.82 00.81 FPLTemplate: FPLTemplateDefaults
36: 00.82 00.81 FPLTemplate: FPLTemplatePageList
37: 00.82 00.81 MakePageList pre
38: 00.82 00.81 PageListSources begin
39: 00.82 00.81 PageStore::ls begin wiki.d/{$FullName}
40: 00.82 00.81 PageStore::ls merge wiki.d/{$FullName}
41: 00.83 00.81 PageStore::ls end wiki.d/{$FullName}
42: 00.83 00.82 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
43: 00.83 00.82 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
44: 00.83 00.82 PageStore::ls end $FarmD/wikilib.d/{$FullName}
45: 00.83 00.82 PageListSources end count=1082
46: 00.83 00.82 PageListSort pre ret=4 order=name
47: 00.83 00.82 MakePageList items count=1082, filters=
48: 00.83 00.82 MakePageList post count=1082, readc=0
49: 00.83 00.82 PageListSort begin
50: 00.83 00.82 PageListSort sort
51: 00.85 00.84 PageListSort end
52: 00.85 00.84 MakePageList end
53: 00.85 00.84 FPLTemplate: FPLTemplatePmWikiOrg
54: 00.85 00.84 MarkupToHTML begin
55: 00.85 00.84 MarkupToHTML end
56: 00.85 00.84 FPLTemplate: FPLTemplateSliceList
57: 00.85 00.84 FPLTemplate: FPLTemplateFormat
58: 00.91 00.89 MarkupToHTML begin
59: 01.00 00.98 MarkupToHTML end
60: 01.00 00.98 FPLTemplate: FPLTemplatePmWikiOrgPostFormat
61: 01.00 00.98 FPLTemplate: Chain end
62: 01.00 00.99 MarkupToHTML end
63: 01.01 00.99 MarkupToHTML end
64: 01.01 00.99 MarkupToHTML begin
65: 01.02 01.00 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
66: 01.02 01.00 ReadApprovedUrls SiteAdmin.ApprovedUrls end
67: 01.03 01.01 MarkupToHTML end
68: 01.03 01.01 MarkupToHTML begin
69: 01.03 01.01 MarkupToHTML end
70: 01.03 01.02 now
Peak memory: 5,809,648 bytes