# Repeater with CollectionLink

**URL:** <https://discourse.getcockpit.com/t/repeater-with-collectionlink/57>\
**Category:** General\
**Created:** [May 12, 2018, 3:53pm UTC](https://discourse.getcockpit.com/t/repeater-with-collectionlink/57 "2018-05-12T15:53:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hermanns](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/hermanns/32/28_2.png) [@hermanns](https://discourse.getcockpit.com/u/hermanns)\
**Post date:** [May 12, 2018, 3:53pm UTC](https://discourse.getcockpit.com/t/repeater-with-collectionlink/57/1 "2018-05-12T15:53:53Z")

</div>

Hi there,  
i need a little advise for the following:  
i wanted to use the repeater-fieldtype with a collection link-field, but i’m not very familiar with json, so a small hint would be nice.

In the setting of the repeater field (lets call it obstkiste) i have this:

```auto
    {
      "fields": [
        {
          "type": "collectionlink",
          "name": "obst",
          "label": "obst",
          "field": [
            {
              "link": "obst",
              "display": "Obst",
              "multiple": false,
              "limit": 1
            }]
        }
      ],
      "limit": 5
    }

```

In there should appear “obst” with image and so on. but when i use it actually i get only "Collection to link not defined in the field settings ". So it worked halfway. So any suggestions?  
Thanks

Dirk

---

<div class="post-metadata">

**Author:** ![artur](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/artur/32/4_2.png) [@artur](https://discourse.getcockpit.com/u/artur)\
**Post date:** [May 12, 2018, 4:14pm UTC](https://discourse.getcockpit.com/t/repeater-with-collectionlink/57/2 "2018-05-12T16:14:37Z")

</div>

Hi,

if the repeater has only the collection-link field, then why don’t you use just the collection-link field type instead with `multiple:true` ?

Otherwise to solve your repeater-issue:

```auto
{
    "field": {
        "type": "collectionlink",
        "name": "obst",
        "label": "obst",
        "options": {
            "link": "obst",
            "display": "Obst",
            "multiple": false
        }
    }
}

```

Greets,  
Artur

---

<div class="post-metadata">

**Author:** ![hermanns](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/hermanns/32/28_2.png) [@hermanns](https://discourse.getcockpit.com/u/hermanns)\
**Post date:** [May 13, 2018, 7:51am UTC](https://discourse.getcockpit.com/t/repeater-with-collectionlink/57/3 "2018-05-13T07:51:35Z")

</div>

Perfect. Thank you. Now i’ve chosen your first solution. The other ends in “loading field” thats it.
