Difference: VarMETASEARCH (r2 vs. r1)

r2 - 14 Oct 2014 - 10:02 - MatthiasGeorgi r1 - 14 Oct 2014 - 09:56 - UnknownUser

METASEARCH -- special search of meta data

METASEARCH -- special search of meta data

ALERT! METASEARCH is deprecated in favour of the new and much more powerful query type search. See SEARCH and QuerySearch.
ALERT! METASEARCH is deprecated in favour of the new and much more powerful query type search. See SEARCH and QuerySearch.
  • Syntax: %METASEARCH{...}%
  • Supported parameters:
    Parameter:Description:Default:
    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
    format="..." Custom format results. Supports same format strings as SEARCH. See FormattedSearch for usage & examples Results in table
    default="none" Default text shown if no search hit Empty
  • Examples:
      %METASEARCH{
        type="topicmoved"
        web="%WEB%"
        topic="%TOPIC%"
        title="This topic used to exist and was moved to: "
      }%
    You may want to use this in WebTopicViewTemplate? and WebTopicNonWikiTemplate?:
      %METASEARCH{
        type="parent"
        web="%WEB%"
        topic="%TOPIC%"
        title="Children: "
      }%
    
      %METASEARCH{
        type="field"
        name="Country"
        value="China"
      }%
  • Related: SEARCH, META
  • Syntax: %METASEARCH{...}%
  • Supported parameters:
    Parameter:Description:Default:
    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
    format="..." Custom format results. Supports same format strings as SEARCH. See FormattedSearch for usage & examples Results in table
    default="none" Default text shown if no search hit Empty
  • Examples:
      %METASEARCH{
        type="topicmoved"
        web="%WEB%"
        topic="%TOPIC%"
        title="This topic used to exist and was moved to: "
      }%
    You may want to use this in WebTopicViewTemplate? and WebTopicNonWikiTemplate?:
      %METASEARCH{
        type="parent"
        web="%WEB%"
        topic="%TOPIC%"
        title="Children: "
      }%
    
      %METASEARCH{
        type="field"
        name="Country"
        value="China"
      }%
  • Related: SEARCH, META
r2 - 14 Oct 2014 - 10:02 - MatthiasGeorgi r1 - 14 Oct 2014 - 09:56 - UnknownUser

View topic | View difference interwoven | History: r2 < r1 | More topic actions
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback