Search Attachments in Main Web
%SET{ "tf" value="" }%
%SET{
"af"
value=""
note_to_developer="The CALCULATE functions change a wildcard to a regular expression"
}%
%SEARCH{
"[%]META:FILEATTACHMENT{name=\"%GET{af}%\" a[a-z]+="
type="regex"
web="Main"
topic="%GET{tf}%"
format="$percntCALCULATE{
| *$NOP(%)ICON{viewtopic}$NOP(%)
$CHAR(32)
Topic topic: $SETLIST(
attNames,
$LISTEACH(
$SETHASH(attNameIndex, $index, $item)$item,
$query(attachments.name)
)
)
$LIST2HASH(
attComments,
$LISTEACH(
$GETHASH(attNameIndex, $index)$CHAR(44)$CHAR(32)$item,
$query(attachments.comment, quote:''')
)
)
$LIST2HASH(
attDates,
$LISTEACH(
$GETHASH(attNameIndex, $index)$CHAR(44)$CHAR(32)$item,
$query(attachments.date)
)
)
$LIST2HASH(
attUsers,
$LISTEACH(
$GETHASH(attNameIndex, $index)$CHAR(44)$CHAR(32)$item,
$query(attachments.user)
)
)
$SETLIST(
afNames,
$LISTIF(
$SEARCH(
%GET{af}%,
$LOWER($item)
),
$GETLIST(attNames)
)
)
$SET(
num,
$LISTSIZE(
$GETLIST(afNames)
)
)
$SETM(topics, +1)
$SETM(attachments, +$GET(num))* ||
$CHAR(10)
$LISTJOIN(
$CHAR(10),
$LISTEACH(
|
$NOP(%)ICON{$IF($index<$GET(num), dot_udr, dot_ur)}$NOP(%)
$NOP(%)ICON{ \"$item\" default=\"else\" }$NOP(%)
$CHAR(32)
$item |
$FORMATTIME(
$GETHASH(attDates, $item),
$year-$mo-$day
)''','''
$CHAR(32)
$NOP(%)USERINFO{
\"$GETHASH(attUsers, $item)\"
format=\"$wikiusername\"
}$NOP(%)
|,
$GETLIST(afNames)
)
)}$percnt"
nonoise="on"
}%
Total: 0 topics, 0 attachments
Other search options:
- Simple search
- Advanced search
- If you already know the name of the topic, enter the name of the topic into the Jump box at the top
- List all topics in the Main web in alphabetical order
- List topics that start with the letter: A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z
- Recently changed topics