Attachment

List pages with attachments (tests if "attachment" or "attachments")

define common variables
(:group:-Archive,-Archives,-Backup,-Calendar,-banners,-cjc,-Cookbook-V1:)
(:order:name,group:)
(:count:30:)
test 'if attachments' in pagelist
>>comment<<
[[#attachmentspagelist]]
(:template each:)
%green%[- [[{=$FullName}]] -]
[[#attachmentspagelistend]]
>>smaller<<

(:pagelist if=attachments fmt=#attachmentspagelist list=normal count={$:count} order={$:order} group={$:group}:)

(:template each:) {=$FullName}?


test 'if attachments' in pagelist template defaults
>>comment<<
[[#attachmentspagelisttemplate]]
(:template defaults if=attachments:)
(:template each:)
%green%[- [[{=$FullName}]] -]
[[#attachmentspagelisttemplateend]]
>>smaller<<

(:pagelist fmt=#attachmentspagelisttemplate list=normal count={$:count} order={$:order} group={$:group}:)

(:template defaults if=attachments:) (:template each:) {=$FullName}?


test 'if attachments' in template body
>>comment<<
[[#attachments]]
(:template each:)
(:if attachments:)
%green%[- [[{=$FullName}]] -]
(:else:)
%red%''[- [[{=$FullName}]] -]''
(:ifend:)
[[#attachmentsend]]
>>smaller<<

(:pagelist fmt=#attachments list=normal count={$:count} order={$:order} group={$:group}:)

(:template each:) {=$FullName}?


test 'if attachment'
>>comment<<
[[#attachment]]
(:template each:)
(:if attachment:)
%green%[- [[{=$FullName}]] -]
(:else:)
%red%''[- [[{=$FullName}]] -]''
(:ifend:)
[[#attachmentend]]
>>smaller<<

(:pagelist fmt=#attachment list=normal count={$:count} order={$:order} group=-{$:group}:)

(:template each:) {=$FullName}?

Note that if attachment is not defined and will always appear as true ('attachment' is not 'false' or other existing condition). You will have the same with if simon or if petko :-) --Petko


test 'if ! attachments'
>>comment<<
[[#notattachments]]
(:template each:)
(:if ! attachments:)
%red%''[- [[{=$FullName}]] -]''
(:else:)
%green%[- [[{=$FullName}]] -]
(:ifend:)
[[#notattachmentsend]]
>>smaller<<

(:pagelist fmt=#notattachments list=normal count={$:count} order={$:order} group=-{$:group}:)

(:template each:) {=$FullName}?

  0: 00.00 00.00 config start
  1: 00.02 00.01 config end
  2: 00.35 00.22 MarkupToHTML begin
  3: 00.36 00.22 MarkupToHTML begin
  4: 00.39 00.23 MarkupToHTML end
  5: 00.39 00.23 MarkupToHTML begin
  6: 00.39 00.23 FPLTemplate: Chain begin
  7: 00.39 00.23 FPLTemplate: FPLTemplateLoad
  8: 00.39 00.23 FPLTemplate: FPLTemplateDefaults
  9: 00.39 00.23 FPLTemplate: FPLTemplatePageList
 10: 00.39 00.23 MakePageList pre
 11: 00.39 00.23 PageListSources begin
 12: 00.39 00.23 PageStore::ls begin wiki.d/{$FullName}
 13: 00.45 00.24 PageStore::ls merge wiki.d/{$FullName}
 14: 00.47 00.25 PageStore::ls end wiki.d/{$FullName}
 15: 00.48 00.25 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
 16: 00.48 00.25 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
 17: 00.48 00.25 PageStore::ls end $FarmD/wikilib.d/{$FullName}
 18: 00.53 00.26 PageListSources end count=9604
 19: 00.53 00.26 PageListSort pre ret=4 order=name,group
 20: 00.53 00.26 MakePageList items count=9604, filters=PageListIf
 21: 03.22 01.01 MakePageList post count=9604, readc=0
 22: 03.22 01.01 PageListSort begin
 23: 03.36 01.10 PageListSort sort
 24: 03.63 01.27 PageListSort end
 25: 03.63 01.27 MakePageList end
 26: 03.65 01.27 FPLTemplate: FPLTemplatePmWikiOrg
 27: 03.65 01.27 MarkupToHTML begin
 28: 03.65 01.28 MarkupToHTML end
 29: 03.65 01.28 FPLTemplate: FPLTemplateSliceList
 30: 03.65 01.28 FPLTemplate: FPLTemplateFormat
 31: 03.65 01.28 MarkupToHTML begin
 32: 03.70 01.30 MarkupToHTML end
 33: 03.70 01.30 FPLTemplate: FPLTemplatePmWikiOrgPostFormat
 34: 03.70 01.30 FPLTemplate: Chain end
 35: 03.70 01.30 MarkupToHTML end
 36: 03.70 01.30 MarkupToHTML begin
 37: 03.70 01.30 FPLTemplate: Chain begin
 38: 03.70 01.30 FPLTemplate: FPLTemplateLoad
 39: 03.70 01.30 FPLTemplate: FPLTemplateDefaults
 40: 03.70 01.30 FPLTemplate: FPLTemplatePageList
 41: 03.70 01.30 MakePageList pre
 42: 03.70 01.30 PageListSources begin
 43: 03.70 01.30 PageStore::ls begin wiki.d/{$FullName}
 44: 03.71 01.31 PageStore::ls merge wiki.d/{$FullName}
 45: 03.73 01.31 PageStore::ls end wiki.d/{$FullName}
 46: 03.75 01.32 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
 47: 03.75 01.32 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
 48: 03.75 01.32 PageStore::ls end $FarmD/wikilib.d/{$FullName}
 49: 03.77 01.33 PageListSources end count=9604
 50: 03.77 01.33 PageListSort pre ret=4 order=name,group
 51: 03.77 01.33 MakePageList items count=9604, filters=PageListIf
 52: 04.99 02.06 MakePageList post count=9604, readc=0
 53: 04.99 02.06 PageListSort begin
 54: 05.07 02.14 PageListSort sort
 55: 05.24 02.30 PageListSort end
 56: 05.24 02.30 MakePageList end
 57: 05.24 02.30 FPLTemplate: FPLTemplatePmWikiOrg
 58: 05.25 02.31 MarkupToHTML begin
 59: 05.25 02.31 MarkupToHTML end
 60: 05.25 02.31 FPLTemplate: FPLTemplateSliceList
 61: 05.25 02.31 FPLTemplate: FPLTemplateFormat
 62: 05.25 02.31 MarkupToHTML begin
 63: 05.28 02.35 MarkupToHTML end
 64: 05.28 02.35 FPLTemplate: FPLTemplatePmWikiOrgPostFormat
 65: 05.28 02.35 FPLTemplate: Chain end
 66: 05.28 02.35 MarkupToHTML end
 67: 05.28 02.35 MarkupToHTML begin
 68: 05.29 02.35 FPLTemplate: Chain begin
 69: 05.29 02.35 FPLTemplate: FPLTemplateLoad
 70: 05.29 02.35 FPLTemplate: FPLTemplateDefaults
 71: 05.29 02.35 FPLTemplate: FPLTemplatePageList
 72: 05.29 02.35 MakePageList pre
 73: 05.29 02.35 PageListSources begin
 74: 05.29 02.35 PageStore::ls begin wiki.d/{$FullName}
 75: 05.30 02.35 PageStore::ls merge wiki.d/{$FullName}
 76: 05.31 02.36 PageStore::ls end wiki.d/{$FullName}
 77: 05.31 02.37 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
 78: 05.31 02.37 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
 79: 05.31 02.37 PageStore::ls end $FarmD/wikilib.d/{$FullName}
 80: 05.32 02.38 PageListSources end count=9604
 81: 05.32 02.38 PageListSort pre ret=4 order=name,group
 82: 05.32 02.38 MakePageList items count=9604, filters=
 83: 05.36 02.39 MakePageList post count=9604, readc=0
 84: 05.36 02.39 PageListSort begin
 85: 05.58 02.49 PageListSort sort
 86: 06.36 02.69 PageListSort end
 87: 06.36 02.69 MakePageList end
 88: 06.40 02.69 FPLTemplate: FPLTemplatePmWikiOrg
 89: 06.40 02.70 MarkupToHTML begin
 90: 06.45 02.70 MarkupToHTML end
 91: 06.45 02.70 FPLTemplate: FPLTemplateSliceList
 92: 06.45 02.70 FPLTemplate: FPLTemplateFormat
 93: 06.45 02.70 MarkupToHTML begin
 94: 06.66 02.74 MarkupToHTML end
 95: 06.66 02.74 FPLTemplate: FPLTemplatePmWikiOrgPostFormat
 96: 06.66 02.74 FPLTemplate: Chain end
 97: 06.66 02.74 MarkupToHTML end
 98: 06.66 02.74 MarkupToHTML begin
 99: 06.67 02.74 FPLTemplate: Chain begin
100: 06.67 02.74 FPLTemplate: FPLTemplateLoad
101: 06.67 02.74 FPLTemplate: FPLTemplateDefaults
102: 06.67 02.74 FPLTemplate: FPLTemplatePageList
103: 06.67 02.74 MakePageList pre
104: 06.67 02.74 PageListSources begin
105: 06.67 02.74 PageStore::ls begin wiki.d/{$FullName}
106: 06.71 02.75 PageStore::ls merge wiki.d/{$FullName}
107: 06.77 02.76 PageStore::ls end wiki.d/{$FullName}
108: 06.78 02.77 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
109: 06.78 02.77 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
110: 06.78 02.77 PageStore::ls end $FarmD/wikilib.d/{$FullName}
111: 06.81 02.78 PageListSources end count=9628
112: 06.81 02.78 PageListSort pre ret=4 order=name,group
113: 06.81 02.78 MakePageList items count=9628, filters=
114: 06.89 02.79 MakePageList post count=9628, readc=0
115: 06.89 02.79 PageListSort begin
116: 07.21 02.89 PageListSort sort
117: 08.13 03.12 PageListSort end
118: 08.13 03.12 MakePageList end
119: 08.13 03.12 FPLTemplate: FPLTemplatePmWikiOrg
120: 08.17 03.13 MarkupToHTML begin
121: 08.17 03.13 MarkupToHTML end
122: 08.17 03.13 FPLTemplate: FPLTemplateSliceList
123: 08.17 03.13 FPLTemplate: FPLTemplateFormat
124: 08.17 03.13 MarkupToHTML begin
125: 08.32 03.17 MarkupToHTML end
126: 08.32 03.17 FPLTemplate: FPLTemplatePmWikiOrgPostFormat
127: 08.32 03.17 FPLTemplate: Chain end
128: 08.32 03.17 MarkupToHTML end
129: 08.32 03.17 MarkupToHTML begin
130: 08.32 03.17 FPLTemplate: Chain begin
131: 08.32 03.17 FPLTemplate: FPLTemplateLoad
132: 08.32 03.17 FPLTemplate: FPLTemplateDefaults
133: 08.32 03.17 FPLTemplate: FPLTemplatePageList
134: 08.32 03.17 MakePageList pre
135: 08.32 03.17 PageListSources begin
136: 08.32 03.17 PageStore::ls begin wiki.d/{$FullName}
137: 08.37 03.18 PageStore::ls merge wiki.d/{$FullName}
138: 08.41 03.19 PageStore::ls end wiki.d/{$FullName}
139: 08.41 03.20 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
140: 08.42 03.20 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
141: 08.42 03.20 PageStore::ls end $FarmD/wikilib.d/{$FullName}
142: 08.47 03.21 PageListSources end count=9628
143: 08.47 03.21 PageListSort pre ret=4 order=name,group
144: 08.47 03.21 MakePageList items count=9628, filters=
145: 08.51 03.22 MakePageList post count=9628, readc=0
146: 08.51 03.22 PageListSort begin
147: 08.84 03.32 PageListSort sort
148: 09.71 03.52 PageListSort end
149: 09.71 03.52 MakePageList end
150: 09.71 03.53 FPLTemplate: FPLTemplatePmWikiOrg
151: 09.75 03.53 MarkupToHTML begin
152: 09.75 03.53 MarkupToHTML end
153: 09.75 03.53 FPLTemplate: FPLTemplateSliceList
154: 09.75 03.53 FPLTemplate: FPLTemplateFormat
155: 09.75 03.53 MarkupToHTML begin
156: 09.88 03.57 MarkupToHTML end
157: 09.88 03.57 FPLTemplate: FPLTemplatePmWikiOrgPostFormat
158: 09.88 03.57 FPLTemplate: Chain end
159: 09.88 03.57 MarkupToHTML end
160: 09.93 03.58 MarkupToHTML end
161: 09.93 03.58 MarkupToHTML begin
162: 09.98 03.59 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
163: 09.98 03.59 ReadApprovedUrls SiteAdmin.ApprovedUrls end
164: 10.04 03.60 MarkupToHTML end
165: 10.04 03.60 MarkupToHTML begin
166: 10.04 03.60 MarkupToHTML end
167: 10.04 03.61 now
Peak memory: 11,328,776 bytes