---
title: "Pattern repeater element"
date: "2017-11-13T07:41:08+00:00"
summary: "Create dynamic layouts effortlessly with the Pattern repeater element. Learn how to set up repeating patterns, configure conditions, and optimize your Drupal site's design for better user experiences and content presentation."
image:
type: "page"
url: "/drupal-starter-kits/add-ons/site-studio/pattern-repeater-element"
id: "056b64ac-d3d3-4ada-9001-d03065ed708f"
---

Table of contents will be added

Use the Pattern repeater element to create layouts with repeating patterns. The Pattern repeater will repeat whatever is within it a set number of times or indefinitely.

Important

When using the Pattern repeater, It's important that the total number of times that you set View items to repeat within your View template, matches the number of results you've set your View to return within the Views user interface.

Locating the pattern repeater element
-------------------------------------

To find the Pattern repeater element:

1.  Navigate to a page or template with the Layout canvas
2.  Click the **+ button** on the Layout canvas
3.  Within the Elements tab, look for the Pattern repeater element.

![9a23922f-pattern-repeater.png](https://acquia.widen.net/content/45e9a245-5d8e-48fb-a4e9-0a7fa1dfd1b1/web/9a23922f-pattern-repeater.png)

It includes these configuration settings:

Repeat
------

This sets the number of times you want a pattern to repeat. It includes the following field:

*   **Number of times to repeat -** Enter the number of times you want the pattern to repeat. Leave blank to make it repeat indefinitely. 

Condition
---------

This sets a condition to say if the Pattern repeater should apply. If the condition is not met, the pattern repeater will not show. You can use this to create View template layouts which differ depending on the View results page number. It includes the following fields: 

*   **If -** Sets the context
*   **Is -** Sets the condition
*   **Value -** Sets the value

An example condition could be:

**If** (page) **Is** (equals) **Value** (1) then apply this repeater.

This configuration would make any content within the Pattern repeater only show on the first page of your View.

Important

You can use multiple Pattern repeaters and View items within the same View template. This allows you to create View templates with complex layouts.

Comments
--------

*   **Add comments -** Add comments to the Element.  For more information, see [Adding comments to an element](/drupal-starter-kits/add-ons/site-studio/adding-comments-element "Adding comments to an element").