Documentation

Learn how Enso Cloud can power your custom designed website.

Repeater Tag

The Enso Repeater tag is used to output repeatable content tags and/or HTML markup.

Example

<div class="articles">
<enso:repeater name="article-repeater" level="page">
    <div class="article">
       <div class="photo"><enso:content name="photo" /></div>
       <div class="title"><enso:content name="title" /></div>
       <div class="description"><enso:content name="description" /></div>
    </div>
</enso:repeater>
</div>

Output where two items have been created

<div class="articles">
   <div class="article">
       <div class="photo"><img src="/uploaded-files/css.jpg" /></div>
       <div class="title">How to Write CSS</div>
       <div class="description">A brief guide to writing CSS.</div>
   </div>
   <div class="article">
       <div class="photo"><img src="/uploaded-files/html.jpg" /></div>
       <div class="title">How to Write HTML</div>
       <div class="description">A brief guide to writing HTML.</div>
   </div>

</div>

Attributes

Attribute Values Required
name text
Yes
level site
section
page
Not required. The default value is page. 
label text No
description text No

Note: The level attribute on the repeater tag overrides any level attributes on tags within the repeater.