Difference: VarMETASEARCH (1 vs. 5)

Revision 52015-04-22 - TWikiContributor

Line: 1 to 1
 
META TOPICPARENT name="TWikiVariables"

METASEARCH -- special search of meta data

Changed:
<
<
type="topicmoved" What sort of search is required?
"topicmoved" if search for a topic that may have been moved
"parent" if searching for topics that have a specific parent i.e. its children
"field" if searching for topics that have a particular form field value (use the name and value parameters to specify which field to search)
Required
>
>
type="..." Type of search:
"topicmoved" - search for a topic that may have been moved.
"parent" - search for topics that have a specific parent i.e. its children.
"field" - search for topics that have a particular form field value (use the name and value parameters to specify which field to search).
Required
 
web="%WEB%" Wiki web to search: A web, a list of webs separated by whitespace, or all webs. Current web
Changed:
<
<
topic="%TOPIC%" The topic the search relates to, for topicmoved and parent searches All topics in a web
name form field to search, for field type searches. May be a regular expression (see SEARCH).  
value form field value, for field type searches. May be a regular expression (see SEARCH).  
title="Title" Text that is prefixed to any search results empty
format="..." Custom format results. Supports same format strings as SEARCH. See FormattedSearch for usage, variables & examples Results in table
default="none" Default text shown if no search hit Empty
>
>
topic="%TOPIC%" The topic the search relates to. Current topic
name="..." form field to search, for type="field" searches. May be a regular expression (see SEARCH).  
value="..." form field value, for type="field" searches. May be a regular expression (see SEARCH).  
title="Title" Text that is prefixed to any search results. "" (empty)
format="..." Custom format of each search hit. Supports same format strings as SEARCH. See FormattedSearch for usage, variables & examples "$topic"
separator="..." Separator between search hits. "$n" (newline)
default="none" Default text shown if no search hit. "" (empty)
 
  • Example: %METASEARCH{type="topicmoved" web="%WEB%" topic="%TOPIC%" title="This topic used to exist and was moved to: "}%
  • Example: You may want to use this in WebTopicViewTemplate and WebTopicNonWikiTemplate:
    %METASEARCH{type="parent" web="%WEB%" topic="%TOPIC%" title="Children: "}%
  • Example: %METASEARCH{type="field" name="Country" value="China"}%
Changed:
<
<
  • Note: METASEARCH is deprecated in favour of the new and much more powerful query type search. See SEARCH and QuerySearch.
>
>
  • Note: METASEARCH is deprecated in favor of the much more powerful query type search. See SEARCH and QuerySearch.
 
Changed:
<
<
>
>

Revision 42013-03-30 - TWikiContributor

Line: 1 to 1
 
META TOPICPARENT name="TWikiVariables"

METASEARCH -- special search of meta data

Line: 16 to 16
 
  • Example: %METASEARCH{type="topicmoved" web="%WEB%" topic="%TOPIC%" title="This topic used to exist and was moved to: "}%
  • Example: You may want to use this in WebTopicViewTemplate and WebTopicNonWikiTemplate:
    %METASEARCH{type="parent" web="%WEB%" topic="%TOPIC%" title="Children: "}%
  • Example: %METASEARCH{type="field" name="Country" value="China"}%
Changed:
<
<
  • Related: SEARCH, META
  • ALERT! Note: METASEARCH is deprecated in favour of the new and much more powerful query type search. See SEARCH and QuerySearch.
>
>

Revision 32012-10-19 - TWikiContributor

Line: 1 to 1
 
META TOPICPARENT name="TWikiVariables"

METASEARCH -- special search of meta data

Line: 18 to 18
 
  • Example: %METASEARCH{type="field" name="Country" value="China"}%
  • Related: SEARCH, META
  • ALERT! Note: METASEARCH is deprecated in favour of the new and much more powerful query type search. See SEARCH and QuerySearch.
Deleted:
<
<

Related Topics: UserDocumentationCategory

META TOPICPARENT name="TWikiVariables"
Note: This topic is included by TWikiVariables


Revision 22005-10-27 - TWikiContributor

Line: 1 to 1
 
META TOPICPARENT name="TWikiVariables"
Deleted:
<
<
 

METASEARCH -- special search of meta data

Changed:
<
<
type="topicmoved" What sort of search is required?
"topicmoved" if search for a topic that may have been moved
"parent" if searching for topics that have a specific parent i.e. its children
"field" if searching for topics that have a particular form field value (use the name and value parameters to specify which field to search)
required
web="%WEB%" Wiki web to search: A web, a list of webs separated by whitespace, or all webs. current web
topic="%TOPIC%" The topic the search relates to, for topicmoved and parent searches current topic
name form field to search, for field type searches. May be a regular expression (see SEARCH).  
value form field value, for field type searches. May be a regular expression (see SEARCH).  
>
>
type="topicmoved" What sort of search is required?
"topicmoved" if search for a topic that may have been moved
"parent" if searching for topics that have a specific parent i.e. its children
"field" if searching for topics that have a particular form field value (use the name and value parameters to specify which field to search)
Required
web="%WEB%" Wiki web to search: A web, a list of webs separated by whitespace, or all webs. Current web
topic="%TOPIC%" The topic the search relates to, for topicmoved and parent searches All topics in a web
name form field to search, for field type searches. May be a regular expression (see SEARCH).  
value form field value, for field type searches. May be a regular expression (see SEARCH).  
 
title="Title" Text that is prefixed to any search results empty
Changed:
<
<
default="none" Default text shown if no search hit empty
>
>
format="..." Custom format results. Supports same format strings as SEARCH. See FormattedSearch for usage, variables & examples Results in table
default="none" Default text shown if no search hit Empty
 
  • Example: %METASEARCH{type="topicmoved" web="%WEB%" topic="%TOPIC%" title="This topic used to exist and was moved to: "}%
  • Example: You may want to use this in WebTopicViewTemplate and WebTopicNonWikiTemplate:
    %METASEARCH{type="parent" web="%WEB%" topic="%TOPIC%" title="Children: "}%
  • Example: %METASEARCH{type="field" name="Country" value="China"}%
Changed:
<
<
>
>
  • Related: SEARCH, META
  • ALERT! Note: METASEARCH is deprecated in favour of the new and much more powerful query type search. See SEARCH and QuerySearch.
 

Related Topics: UserDocumentationCategory

META TOPICPARENT name="TWikiVariables"
Note: This topic is included by TWikiVariables

Revision 12005-10-27 - TWikiContributor

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="TWikiVariables"

METASEARCH -- special search of meta data

  • Syntax: %METASEARCH{...}%
  • Supported parameters:
    Parameter: Description:
    <-- -->
    Sorted ascending
    Default:
    default="none" Default text shown if no search hit empty
    name form field to search, for field type searches. May be a regular expression (see SEARCH).  
    value form field value, for field type searches. May be a regular expression (see SEARCH).  
    title="Title" Text that is prefixed to any search results empty
    topic="%TOPIC%" The topic the search relates to, for topicmoved and parent searches current topic
    type="topicmoved" What sort of search is required?
    "topicmoved" if search for a topic that may have been moved
    "parent" if searching for topics that have a specific parent i.e. its children
    "field" if searching for topics that have a particular form field value (use the name and value parameters to specify which field to search)
    required
    web="%WEB%" Wiki web to search: A web, a list of webs separated by whitespace, or all webs. current web
  • Example: %METASEARCH{type="topicmoved" web="%WEB%" topic="%TOPIC%" title="This topic used to exist and was moved to: "}%
  • Example: You may want to use this in WebTopicViewTemplate and WebTopicNonWikiTemplate:
    %METASEARCH{type="parent" web="%WEB%" topic="%TOPIC%" title="Children: "}%
  • Example: %METASEARCH{type="field" name="Country" value="China"}%
  • Related: SEARCH, META

Related Topics: UserDocumentationCategory

META TOPICPARENT name="TWikiVariables"
Note: This topic is included by TWikiVariables


 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.VarMETASEARCH.