OpenWGA 7.6 - WebTML reference

WebTML tags » query

<tml:query return ="item-name">

Purpose:

If this attribute is specified the query tag returns the given item from the first result of query.

Value(s):

Item name

Examples:

Returns the body of the document "home" queried by unique name:
<tml:query id="homeDoc" db="website" type="hql" return="body">content.uniquename = 'home'</tml:query>