Skip to main content
The Result tag renders if results are available. It outputs a single result, and must be nested within a Result List tag. The No Results tag renders if no results are available.

Result tag

The Result tag renders if results are available. It outputs a single result, and must be nested within a Result List tag.
See the search:result tag doc for all available attributes.

Conditional result tag

It is also possible to use the result tag to conditionally display a set of fields based on the value of a given field. This is useful when each result fit into a specific category.

Usage

The syntax is as follows:
For example, if you had 2 types of results, documents and people, with different fields, you could display them in a single result list as follows:
It is also possible to combine multiple conditions. All have to be met for the specific <search:result> tag to be selected. For example: