Aggregators let you enrich the content with external data. This data comes from generic queries or linked tables.
Queries are configured via the publication template in the Aggregator tab.
The data retrieved will enrich the XML output document via its main element.
Example of return from a query on the recipient schema ( nms:recipient ):
<book name="Content Management"> ... <collection-recipient> <recipient lastName="Doe" firstName="John" email="email@example.com"> ... </collection-recipient> </book>
The <collection-recipient> element represents the input element of the document resulting from a query. The data retrieved is returned under this element; in our example, a recipient list.
Adding a query
The query parameters are edited using a wizard.
- In the first page, specify the label and the schema containing the data to be retrieved.The edit field Path is used to rename the query output element.
- The next page lets you select the data to retrieve.
- The next page defines the filter condition.
- The last page launches a preview of the data returned by the query.