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.01 00.00 config end
  2: 00.06 00.03 MarkupToHTML begin
  3: 00.06 00.03 MarkupToHTML begin
  4: 00.07 00.03 MarkupToHTML end
  5: 00.07 00.03 MarkupToHTML begin
  6: 00.08 00.04 FPLTemplate: Chain begin
  7: 00.08 00.04 FPLTemplate: FPLTemplateLoad
  8: 00.08 00.04 FPLTemplate: FPLTemplateDefaults
  9: 00.08 00.04 FPLTemplate: FPLTemplatePageList
 10: 00.08 00.04 MakePageList pre
 11: 00.08 00.04 PageListSources begin
 12: 00.08 00.04 PageStore::ls begin wiki.d/{$FullName}
 13: 00.10 00.04 PageStore::ls merge wiki.d/{$FullName}
 14: 00.12 00.05 PageStore::ls end wiki.d/{$FullName}
 15: 00.13 00.06 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
 16: 00.13 00.06 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
 17: 00.13 00.06 PageStore::ls end $FarmD/wikilib.d/{$FullName}
 18: 00.14 00.06 PageListSources end count=9212
 19: 00.14 00.06 PageListSort pre ret=4 order=name,group
 20: 00.14 00.06 MakePageList items count=9212, filters=PageListIf
 21: 00.94 00.63 MakePageList post count=9212, readc=0
 22: 00.94 00.63 PageListSort begin
 23: 01.12 00.70 PageListSort sort
 24: 01.70 00.91 PageListSort end
 25: 01.70 00.91 MakePageList end
 26: 01.71 00.91 FPLTemplate: FPLTemplatePmWikiOrg
 27: 01.72 00.91 MarkupToHTML begin
 28: 01.72 00.92 MarkupToHTML end
 29: 01.72 00.92 FPLTemplate: FPLTemplateSliceList
 30: 01.72 00.92 FPLTemplate: FPLTemplateFormat
 31: 01.73 00.92 MarkupToHTML begin
 32: 01.77 00.94 MarkupToHTML end
 33: 01.77 00.94 FPLTemplate: FPLTemplatePmWikiOrgPostFormat
 34: 01.77 00.94 FPLTemplate: Chain end
 35: 01.78 00.94 MarkupToHTML end
 36: 01.78 00.94 MarkupToHTML begin
 37: 01.78 00.94 FPLTemplate: Chain begin
 38: 01.78 00.94 FPLTemplate: FPLTemplateLoad
 39: 01.78 00.94 FPLTemplate: FPLTemplateDefaults
 40: 01.78 00.94 FPLTemplate: FPLTemplatePageList
 41: 01.78 00.94 MakePageList pre
 42: 01.78 00.94 PageListSources begin
 43: 01.78 00.94 PageStore::ls begin wiki.d/{$FullName}
 44: 01.80 00.95 PageStore::ls merge wiki.d/{$FullName}
 45: 01.82 00.96 PageStore::ls end wiki.d/{$FullName}
 46: 01.83 00.96 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
 47: 01.83 00.96 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
 48: 01.83 00.96 PageStore::ls end $FarmD/wikilib.d/{$FullName}
 49: 01.84 00.97 PageListSources end count=9212
 50: 01.84 00.97 PageListSort pre ret=4 order=name,group
 51: 01.84 00.97 MakePageList items count=9212, filters=PageListIf
 52: 02.90 01.55 MakePageList post count=9212, readc=0
 53: 02.90 01.55 PageListSort begin
 54: 02.98 01.63 PageListSort sort
 55: 03.18 01.84 PageListSort end
 56: 03.18 01.84 MakePageList end
 57: 03.19 01.84 FPLTemplate: FPLTemplatePmWikiOrg
 58: 03.19 01.85 MarkupToHTML begin
 59: 03.19 01.85 MarkupToHTML end
 60: 03.19 01.85 FPLTemplate: FPLTemplateSliceList
 61: 03.19 01.85 FPLTemplate: FPLTemplateFormat
 62: 03.20 01.85 MarkupToHTML begin
 63: 03.22 01.88 MarkupToHTML end
 64: 03.22 01.88 FPLTemplate: FPLTemplatePmWikiOrgPostFormat
 65: 03.22 01.88 FPLTemplate: Chain end
 66: 03.22 01.88 MarkupToHTML end
 67: 03.22 01.88 MarkupToHTML begin
 68: 03.23 01.88 FPLTemplate: Chain begin
 69: 03.23 01.88 FPLTemplate: FPLTemplateLoad
 70: 03.23 01.88 FPLTemplate: FPLTemplateDefaults
 71: 03.23 01.88 FPLTemplate: FPLTemplatePageList
 72: 03.23 01.88 MakePageList pre
 73: 03.23 01.88 PageListSources begin
 74: 03.23 01.88 PageStore::ls begin wiki.d/{$FullName}
 75: 03.24 01.89 PageStore::ls merge wiki.d/{$FullName}
 76: 03.25 01.90 PageStore::ls end wiki.d/{$FullName}
 77: 03.25 01.90 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
 78: 03.25 01.90 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
 79: 03.25 01.90 PageStore::ls end $FarmD/wikilib.d/{$FullName}
 80: 03.25 01.91 PageListSources end count=9212
 81: 03.25 01.91 PageListSort pre ret=4 order=name,group
 82: 03.26 01.91 MakePageList items count=9212, filters=
 83: 03.27 01.92 MakePageList post count=9212, readc=0
 84: 03.27 01.92 PageListSort begin
 85: 03.34 01.99 PageListSort sort
 86: 03.57 02.21 PageListSort end
 87: 03.57 02.21 MakePageList end
 88: 03.57 02.21 FPLTemplate: FPLTemplatePmWikiOrg
 89: 03.57 02.21 MarkupToHTML begin
 90: 03.57 02.21 MarkupToHTML end
 91: 03.57 02.21 FPLTemplate: FPLTemplateSliceList
 92: 03.57 02.21 FPLTemplate: FPLTemplateFormat
 93: 03.58 02.22 MarkupToHTML begin
 94: 03.62 02.25 MarkupToHTML end
 95: 03.62 02.25 FPLTemplate: FPLTemplatePmWikiOrgPostFormat
 96: 03.62 02.25 FPLTemplate: Chain end
 97: 03.62 02.25 MarkupToHTML end
 98: 03.62 02.25 MarkupToHTML begin
 99: 03.62 02.26 FPLTemplate: Chain begin
100: 03.62 02.26 FPLTemplate: FPLTemplateLoad
101: 03.62 02.26 FPLTemplate: FPLTemplateDefaults
102: 03.62 02.26 FPLTemplate: FPLTemplatePageList
103: 03.62 02.26 MakePageList pre
104: 03.62 02.26 PageListSources begin
105: 03.62 02.26 PageStore::ls begin wiki.d/{$FullName}
106: 03.63 02.26 PageStore::ls merge wiki.d/{$FullName}
107: 03.64 02.27 PageStore::ls end wiki.d/{$FullName}
108: 03.64 02.28 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
109: 03.64 02.28 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
110: 03.64 02.28 PageStore::ls end $FarmD/wikilib.d/{$FullName}
111: 03.65 02.28 PageListSources end count=9236
112: 03.65 02.28 PageListSort pre ret=4 order=name,group
113: 03.65 02.28 MakePageList items count=9236, filters=
114: 03.66 02.29 MakePageList post count=9236, readc=0
115: 03.66 02.29 PageListSort begin
116: 03.74 02.37 PageListSort sort
117: 04.08 02.59 PageListSort end
118: 04.08 02.59 MakePageList end
119: 04.09 02.59 FPLTemplate: FPLTemplatePmWikiOrg
120: 04.10 02.59 MarkupToHTML begin
121: 04.10 02.59 MarkupToHTML end
122: 04.10 02.59 FPLTemplate: FPLTemplateSliceList
123: 04.10 02.59 FPLTemplate: FPLTemplateFormat
124: 04.10 02.60 MarkupToHTML begin
125: 04.17 02.63 MarkupToHTML end
126: 04.17 02.63 FPLTemplate: FPLTemplatePmWikiOrgPostFormat
127: 04.17 02.63 FPLTemplate: Chain end
128: 04.18 02.63 MarkupToHTML end
129: 04.18 02.63 MarkupToHTML begin
130: 04.18 02.63 FPLTemplate: Chain begin
131: 04.18 02.63 FPLTemplate: FPLTemplateLoad
132: 04.18 02.63 FPLTemplate: FPLTemplateDefaults
133: 04.18 02.63 FPLTemplate: FPLTemplatePageList
134: 04.18 02.63 MakePageList pre
135: 04.18 02.63 PageListSources begin
136: 04.18 02.63 PageStore::ls begin wiki.d/{$FullName}
137: 04.20 02.64 PageStore::ls merge wiki.d/{$FullName}
138: 04.22 02.65 PageStore::ls end wiki.d/{$FullName}
139: 04.23 02.65 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
140: 04.23 02.65 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
141: 04.23 02.65 PageStore::ls end $FarmD/wikilib.d/{$FullName}
142: 04.24 02.66 PageListSources end count=9236
143: 04.24 02.66 PageListSort pre ret=4 order=name,group
144: 04.24 02.66 MakePageList items count=9236, filters=
145: 04.26 02.67 MakePageList post count=9236, readc=0
146: 04.26 02.67 PageListSort begin
147: 04.42 02.75 PageListSort sort
148: 04.64 02.97 PageListSort end
149: 04.64 02.97 MakePageList end
150: 04.65 02.97 FPLTemplate: FPLTemplatePmWikiOrg
151: 04.65 02.98 MarkupToHTML begin
152: 04.65 02.98 MarkupToHTML end
153: 04.65 02.98 FPLTemplate: FPLTemplateSliceList
154: 04.65 02.98 FPLTemplate: FPLTemplateFormat
155: 04.65 02.98 MarkupToHTML begin
156: 04.69 03.02 MarkupToHTML end
157: 04.69 03.02 FPLTemplate: FPLTemplatePmWikiOrgPostFormat
158: 04.69 03.02 FPLTemplate: Chain end
159: 04.69 03.02 MarkupToHTML end
160: 04.70 03.02 MarkupToHTML end
161: 04.71 03.02 MarkupToHTML begin
162: 04.71 03.03 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
163: 04.72 03.03 ReadApprovedUrls SiteAdmin.ApprovedUrls end
164: 04.72 03.04 MarkupToHTML end
165: 04.72 03.04 MarkupToHTML begin
166: 04.73 03.05 MarkupToHTML end
167: 04.73 03.05 now
Peak memory: 10,504,688 bytes