Cockpit: Cockpit Next: multiple assets with a repeater field

Created on 17 Apr 2016  路  1Comment  路  Source: agentejo/cockpit

How would I make a repeater field to allow the user insert a number of assets instead of normal text?

Thanks

Most helpful comment

Use the options JSON field to specify what types can be added to a repeater:
Here is an example:

{
  "fields": [
    {
      "type": "image",
      "label": "Image"
    },
    {
      "type": "text",
      "label": "Single line text"
    },
    {
      "type": "asset",
      "label": "An Asset",
    }
  ]
}

>All comments

Use the options JSON field to specify what types can be added to a repeater:
Here is an example:

{
  "fields": [
    {
      "type": "image",
      "label": "Image"
    },
    {
      "type": "text",
      "label": "Single line text"
    },
    {
      "type": "asset",
      "label": "An Asset",
    }
  ]
}
Was this page helpful?
0 / 5 - 0 ratings

Related issues

flayks picture flayks  路  5Comments

dragosdydy picture dragosdydy  路  3Comments

erkand-imeri picture erkand-imeri  路  6Comments

poldixd picture poldixd  路  4Comments

jesperlandberg picture jesperlandberg  路  5Comments