SandboxAttachments

List of attachments to the Mini page :

(:attachtable Mini list=all:)
7zip.png 1622008-11-01 14:03:56
8z.jpg 1,8642008-11-01 14:03:58
bitterlemon.png 250,1422009-04-22 22:37:28
Bulgaria-locator-template.svg 80,1652008-11-01 14:03:59
inja.png 131,5252008-11-01 14:03:57
inja2.jpg 5,3242008-11-01 14:03:58
r.doc 16,8962008-11-01 14:03:59
Test.jpg 2,6712008-11-01 14:03:59
th.jpg 15,4312008-11-01 14:03:59
th00---7zip.png.jpg 1,2062011-03-28 19:57:33
th00---bitterlemon.png.jpg 3,3392009-05-09 15:01:31
th00---inja.png.jpg 5,9242011-03-28 19:57:33
th00---inja2.jpg.jpg 5,8282011-03-28 19:57:33
th00---Test.jpg.jpg 3,1882011-03-28 19:57:33

Conditionals :

(:if attachments Mini:)
* attachments at [[Mini]]
(:if attachments Mini/*.jpg:)
* attachments *.jpg
(:if attachments Mini/*.png:)
* attachments *.png
(:if attachments Mini/*.avi:)
* attachments *.avi
(:if attachments Mini/Test.jpg:)
* attachments Test.jpg
(:if attachments Mini/te*.jpg:)
* attachments te*.jpg (case insensitive)
(:if attachments Mini/Test.html:)
* attachments Test.html
(:if attachments Mini/th*---*.jpg:)
* Mini or Thumblist thumbnails exist
(:if attachments *:)
* current page has an attachment
(:ifend:)

In a pagelist :

(:pagelist group=Cookbook if="attachments {=$FullName}/*" fmt=#simplename:)

Multiple file matches. Note that this may seem counter-intuitive, but works exactly the same way as the pagelist name=*Page1,*Page2,-A* parameter.

(:if attachments *.ogg,*.mp3,*.wav,*.au:)
* at least one audio file (not all types)
(:if attachments Mini/*.png,*.avi:)
* either *.png, or *.avi exist (not both)
(:if attachments Mini/*,-*.avi,-*.zip:)
* there are attachments other than *.avi, or *.zip
(:if [ attachments Mini/*.png  && attachments Mini/*.jpg ]:)
* both *.png, and *.jpg exist
(:ifend:)
 0: 00.00 MarkupToHTML begin
 1: 00.00 MarkupToHTML begin
 2: 00.01 MarkupToHTML end
 3: 00.01 MarkupToHTML begin
 4: 00.01 MarkupToHTML end
 5: 00.01 MarkupToHTML begin
 6: 00.01 FPLTemplate: Chain begin
 7: 00.01 FPLTemplate: FPLTemplateLoad
 8: 00.02 FPLTemplate: FPLTemplateDefaults
 9: 00.02 FPLTemplate: FPLTemplatePageList
10: 00.02 MakePageList pre
11: 00.02 PageListSources begin
12: 00.02 PageStore::ls begin SQLite
13: 00.03 PageStore::ls merge SQLite
14: 00.03 PageStore::ls end SQLite
15: 00.03 PageStore::ls begin wiki.d/$FullName
16: 00.03 PageStore::ls merge wiki.d/$FullName
17: 00.03 PageStore::ls end wiki.d/$FullName
18: 00.03 PageStore::ls begin $FarmD/shared.d/$FullName
19: 00.03 PageStore::ls end $FarmD/shared.d/$FullName
20: 00.03 PageStore::ls begin $FarmD/wikilib.d/$FullName
21: 00.03 PageStore::ls merge $FarmD/wikilib.d/$FullName
22: 00.03 PageStore::ls end $FarmD/wikilib.d/$FullName
23: 00.03 PageListSources end count=66
24: 00.03 PageListSort pre ret=4 order=name
25: 00.03 MakePageList items count=66, filters=PageListIf
26: 00.04 MakePageList post count=0, readc=0
27: 00.04 PageListSort begin
28: 00.04 PageListSort sort
29: 00.04 PageListSort end
30: 00.04 MakePageList end
31: 00.04 FPLTemplate: FPLTemplateSliceList
32: 00.04 FPLTemplate: FPLTemplateFormat
33: 00.04 MarkupToHTML begin
34: 00.04 MarkupToHTML end
35: 00.04 FPLTemplate: Chain end
36: 00.04 MarkupToHTML end
37: 00.04 MarkupToHTML begin
38: 00.04 MarkupToHTML end
39: 00.05 MarkupToHTML end
40: 00.06 MarkupToHTML begin
41: 00.09 MarkupToHTML end
42: 00.10 MarkupToHTML begin
43: 00.10 MarkupToHTML end
44: 00.11 now