Question
I'm searching topics for attachments which meet a certain name prefix.
my search string is something like:
FILEATTACHMENT{name\=\"Prefix.*
This works, but
a) I have multiple="on" set, yet I'm only picking up one hit in each topic
b) I;m using $pattern to extract the name, I add the URL path, web & topic & I have a download link, but $pattern(.*comment\=\"([^\"]+).*) |"}% is not pulling out the comment.
Is there some restricting on searches in meta data?
Environment
--
ChrisHogan - 11 Sep 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
There
are restrictions regarding searches in meta data, e.g.
$pattern is said to not search meta data in
TWiki.FormattedSearch.
My best bet would be to use
FormQueryPlugin /
DBCacheContrib. I seem to recall that I've given an example some time ago (dig, dig, dig) - ah:
HowToGetFileAttachmentDetails.
Hope this helps
--
HaraldJoerg - 11 Sep 2007
Missed this topic in my searches yesterday. I've been pondering installing the
FormQueryPlugin for a bit - maybe it's time
--
ChrisHogan - 12 Sep 2007
Can't blame you for not finding that topic, I myself could only find it because I entered the
solution as a search term. I've now pointed to
HowToGetFileAttachmentDetails for the second time, maybe it qualifies as a FAQ
--
HaraldJoerg - 12 Sep 2007
Just installed the
FormQueryPlugin & worked through some of the examples - bit obscure on the variable names I can use in searches, but it does just what I want. I can format a table of all topics containing my required attachments, display the name & comment from the attchment table details & even have a link to download the attachment from the search result table.
thanks for the pointers Harald
--
ChrisHogan - 12 Sep 2007
related:
--
VickiBrown - 25 Mar 2008
See also
AttachmentListPlugin.
--
ArthurClemens - 25 Mar 2008