Repeater Elements are markup elements occuring repeatedly on a page. They are bound to a database query or function, displaying one element for each result of the query/function.

The element and its subtree will be rendered as many times as there are objects in the query result. A repeater element is the only element that can make new Keywords available to its child elements. This is called Data Binding.

The following screenshot shows an example of a repeater element of type div in a page, and the resulting output. Repeater elements will be diplayed with a special icon in the Pages Tree View.

A Repeater Element in a Page

The child element of the div is a Content Element with a simple Template Expression.


Repeater Configuration

Data Key

The data key of a repeater element is the name of the keyword that contains the current element of the result iteration.


About this article
Last change 2017-05-04
Topics Structr 2.0