Tags:
create new tag
, view all tags

Question

Is it possible to search for all topics containing a specific form, eg topics containing ProjectForm? I'm not interested in the data in the form.

I have various templates which generate different types of topic, each with a different form. I want to be able to list all the topics of a given type. I know this would be possible by having a common word in the topic name, or by having common text in the topic body (eg Back to: OtherTopic). I'm using this second method at the moment. Both these alternatives are subject to unenlighted users deleting the key bits. The form name is less likely to get messed about with.

Thanks

Environment

-- TamsinTweddell - 22 Oct 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.

A search for %META:FORM{name="ProjectForm"}% (with regular expression search enabled) seems to work.

-- JChristophFuchs - 26 Oct 2007

This is what I usually use: %SEARCH{ "META:\FORM.*\"ProjectForm\"" type="regex" .... }%

See details in VarSEARCH and FormattedSearch.

-- PeterThoeny - 27 Oct 2007

Thanks. The second solution is better for me as I can have a formatted output.

-- TamsinTweddell - 29 Oct 2007

 
Change status to:
Topic revision: r4 - 2007-10-29 - TamsinTweddell
 
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.