Count

fmt=count does count non existing pages ; how to exclude non existing pages ?

(:pagelist trail=Test.TrailIndex fmt=count:)

8

(:pagelist trail=Test.TrailIndex if="exists {=$FullName}" fmt=count:)

7

The trail index is on Test.TrailIndex.

 0: 00.00 00.00 config start
 1: 00.00 00.00 config end
 2: 00.11 00.11 MarkupToHTML begin
 3: 00.11 00.11 MarkupToHTML begin
 4: 00.11 00.11 MakePageList pre
 5: 00.11 00.11 PageListSources begin
 6: 00.11 00.11 PageListSources end count=8
 7: 00.11 00.11 PageListSort pre ret=0 order=
 8: 00.11 00.11 MakePageList items count=8, filters=
 9: 00.11 00.11 MakePageList post count=8, readc=0
10: 00.11 00.11 MakePageList end
11: 00.12 00.11 MarkupToHTML end
12: 00.12 00.11 MarkupToHTML begin
13: 00.12 00.11 MakePageList pre
14: 00.12 00.11 PageListSources begin
15: 00.12 00.11 PageListSources end count=8
16: 00.12 00.11 PageListSort pre ret=0 order=
17: 00.12 00.11 MakePageList items count=8, filters=PageListIf
18: 00.12 00.11 PageStore::ls begin wiki.d/{$FullName}
19: 00.13 00.12 PageStore::ls merge wiki.d/{$FullName}
20: 00.13 00.12 PageStore::ls end wiki.d/{$FullName}
21: 00.13 00.12 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
22: 00.13 00.12 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
23: 00.13 00.12 PageStore::ls end $FarmD/wikilib.d/{$FullName}
24: 00.14 00.13 MakePageList post count=7, readc=0
25: 00.14 00.13 MakePageList end
26: 00.14 00.13 MarkupToHTML end
27: 00.15 00.14 MarkupToHTML end
28: 00.15 00.14 MarkupToHTML begin
29: 00.16 00.15 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
30: 00.16 00.15 ReadApprovedUrls SiteAdmin.ApprovedUrls end
31: 00.16 00.15 MarkupToHTML end
32: 00.16 00.15 MarkupToHTML begin
33: 00.17 00.16 MarkupToHTML end
34: 00.17 00.16 now
Peak memory: 5,026,184 bytes