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