Repeater with CollectionLink


#1

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:

    {
      "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


#2

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:

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

Greets,
Artur


#3

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