create new tag
, view all tags
I've added a new variable to the TWikiAlphaRelease that can be used to find moved topics. Example:

%METASEARCH{type="topicmoved" web="%WEB%" topic="%TOPIC%" title="This topic used to exist and was moved to: "}%

This can be put in the new template topics defined in SelectableNewTopicTemplates.


  • I decided not to extend %SEARCH% as it was already pretty complicated
  • Idea is to expand this for other search later e.g. attachment names, category searches

-- JohnTalintyre - 13 Jun 2001

I have not yet studied the code.

  • The new Meta data format can be searched already with the SEARCH variable, as it was possible with the old format. What are the reasons you decided to introduce the new METADATA variable?

  • I do not exactly understand why you would want to put it in a new template topic. Wouldn't it show up as the default text?

-- PeterThoeny - 16 Jun 2001

Sorry for not making this clear. This arose out of people moving topics, leading other to wondering there they had gone. First I used %SEARCH% to show matches when the topic does not exist page. But I didn't find the output very satisfactory. %METASEARCH% uses Search.pm with almost no changes, but it:

  • Simplifies the seach string you need to provide
  • Only gives output (which is user selectable) if there is a match

-- JohnTalintyre - 21 Jun 2001

Now I've also added %METASEARCH{type="parent" web="%WEB%" topic="%TOPIC%" title="Children: "}%, good for find children. So name of this topic is now misleading ...

Example of use in view.tmpl

-- JohnTalintyre - 04 Jul 2001

Would this be the right place to provide a search for topics utilising a given form or formfield?

-- MartinCleaver - 24 Sep 2004

e.g. METASEARCH{form="WebForm" field="TopicClassification=FeatureBrainstorming"}

rather than the encapsulation breaking: SEARCH{"^%META:FORM.*WebForm;META:FIELD.*TopicClassification.*FeatureBrainstorming" nosearch="on" regex="on" scope="text"}

This would simply wrap the parameters and shunt it off to search.

-- MartinCleaver - 29 Sep 2004

This is rapidly evolving into the query language used by searches in DBCacheContrib (and thence FormQueryPlugin).

-- CrawfordCurrie - 29 Sep 2004

Oh, I see. As it stands it provides an API to the forms data. You are now proposing a query language so that it can be embedded as %DIRECTIVE s in a page. Clever.

-- MartinCleaver - 29 Sep 2004

From Know.MetaFieldSearch

%SEARCH{ "[O]peratingSystem.*value\=.*[O]sWin" regex="on" format="   * $topic"}%


Underlying field: % META:FIELD{name="OperatingSystem" title="OperatingSystem" value="OsWin"}%

Search for field

METASEARCH{field="OperatingSystem=OsWin" format=" * $topic"}

%SEARCH{ "[O]peratingSystem.*value\=.*[O]sWin" regex="on" format="   * $topic"}%

Search for form


%SEARCH{"META\:FORM.*name\=.*WebForm" regex="on"}%

Search for field and form

METASEARCH{form="WebForm" field="OperatingSystem=OsWin" format=" * $topic"}

%SEARCH{ "META\:FORM.*name\=.*WebForm;[O]peratingSystem.*value\=.*[O]sWin" regex="on" ... format="   * $topic"}%

Actually, apart from that the FQP reformats the format string into HTML before passing this back to TWiki, it does exactly this... FQP syntax is already just this clean. See the excellent FormQueryPluginTutorial

Another reason for wanting to use a METASEARCH or FQP: renaming a form is broken because searches containing references to the form do not contain the form name... they contain [S]omeForm name instead.

-- MartinCleaver - 30 Sep 2004

the first part of this topic is talking about an already implemented feature, while the last part appears to be discussing how it could be taken further. At least I think that's what it says. Would somebody who understands this please split the feature request part into a new topic?

Edit | Attach | Watch | Print version | History: r14 < r13 < r12 < r11 < r10 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r14 - 2005-02-21 - MattWilkie
  • 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-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.