QueryRepeater |
The QueryRepeater control is inherited from the BasicRepeater control. It automatically ensures data binding. Moreover, it allows you to specify query, ORDER BY clause and the WHERE condition and it ensures displaying data without any additional code.
QueryRepeater can be only used with pre-defined queries stored in the document type configuration.
If you want to display only data from particular part of the content tree, please use CMSRepeater instead.
Data Source
Data retrieved using the predefined query specified in the QueryName property.
Inherits: BasicRepeater, CMSQueryProperties - common properties See also: DataPager
Properties
Design
The design depends on the transformations you use to display content.
Example
This example will show you how to read list of news and display them using the QueryRepeater control.
- QueryName: cms.news.selectlatest - TransformationName: cms.news.preview
|