Cockpit CMS 重新排序中继器字段

Cockpit CMS reordering Repeater field

我在 Cockpit CMS 的集合中有 repeaterset 个字段。

选项是:

{
  "fields": [
    {
      "type": "set",
      "label": "Some Block",
      "options": {
        "fields": [
          {
            "name": "title",
            "type": "text"
          },
          {
            "name": "picture",
            "type": "image"
          }
        ]
      }
    }
  ]
}

如何使用 repeater 中的 display 选项以重新排序模式显示 title 字段?如果可以的话。

驾驶舱文档提供的信息不足,says:

"display": null // display value on re-order

null外,其他情况下如何使用此选项?

好的。我找到了解决方案。

选项 display 可以是 set 字段的 options 的一部分:

{
  "fields": [
    {
      "type": "set",
      "label": "Some Block",
      "options": {
        "display": "title", // it must be placed here
        "fields": [
          {
            "name": "title",
            "type": "text"
          },
          {...}
        ]
      }
    }
  ]
}