Tags:
create new tag
, view all tags

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

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Gentoo
Web server: Apache 2
Perl version: 5.8 I think
Client OS: Windows XP
Web Browser: Firefox
Categories: Search

-- ChrisHogan - 11 Sep 2007

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list 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 smile

-- 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 wink

-- 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

 
Change status to:
Topic revision: r7 - 2008-03-25 - ArthurClemens
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.