我在Cockpit CMS的馆藏中有repeater
个set
个字段。
选项是:
{
"fields": [
{
"type": "set",
"label": "Some Block",
"options": {
"fields": [
{
"name": "title",
"type": "text"
},
{
"name": "picture",
"type": "image"
}
]
}
}
]
}
如何在display
中使用repeater
选项显示重新排序模式的title
字段?如果可能的话。
驾驶舱文档资料不足,says:
"display": null // display value on re-order
如何在其他情况下使用此选项,null
除外?
答案 0 :(得分:1)
行。我找到了解决方案。
选项display
可以是options
字段set
的一部分:
{
"fields": [
{
"type": "set",
"label": "Some Block",
"options": {
"display": "title", // it must be placed here
"fields": [
{
"name": "title",
"type": "text"
},
{...}
]
}
}
]
}