OpenWGA 7.4 - WebTML reference

WebTML tags » query

<tml:query options ="option,option,...">

Purpose:

Takes a comma separated list of native query options

Description:

Native query options are options that are specific to a special query type and influence the behaviour of that query in a special way.

You can find references of native query options in the Query languages reference for those query types where options are available.

The general syntax of a single native option is:

optionname[:optionvalue]

Many options only have a name, which enables a special functionality or mode. Some options also have a value which then is appended after a colon character.

Value(s):

Examples:

A lucene query, which sorts by by metadata field "pagepublished" descending and also includes virtual content. Both settings are specified as native options:

<tml:query type="lucene" options="sort:PAGEPUBLISHED(desc),includeVirtualContent" trim="true">

  <tml:item name="query"/>

</tml:query>

Note that we use an option which needs a value (sort), but also an option without (includeVirtualContent).