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

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:
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2007-10-29 - TamsinTweddell
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.