微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Silverstripe 4 Elemental GroupedDropdownfield inline_editable

如何解决Silverstripe 4 Elemental GroupedDropdownfield inline_editable

我的自定义元素扩展 呈现 GroupedDropdownField 以从视频 - 数据对象中选择视频。

这在以下情况下效果很好 inline_editable 设置为 false。

当我尝试将 inline_editable 设置为 true 时,不会呈现 GroupedDropdownField。

如何在 inline_editing 为 true 时显示 GroupedDropdownField?


2021-01-23 15:50:21.290 UTC [endorser] SimulateProposal -> ERRO 06b [prime][ae3d2fb5] Failed to invoke chaincode name:"prime-cc-doc-energy",error: timeout expired while starting chaincode prime-cc-doc-energy:1.1.2 for transaction
github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch
    /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:75

[...]

2021-01-23 14:51:47.713 UTC [dockercontroller] func2 -> INFO 040 Container prime-prd-peer0-prd.blockchain.biz-prime-cc-doc-energy-1.1.2 has closed its IO channel

2021-01-23 14:51:47.769 UTC [endorser] callChaincode -> INFO 041 [prime][e18c6f7d] Exit chaincode: name:"prime-cc-doc-energy"  (688939ms)

2021-01-23 14:51:47.771 UTC [endorser] SimulateProposal -> ERRO 042 [prime][e18c6f7d] Failed to invoke chaincode name:"prime-cc-doc-energy",error: timeout expired while starting chaincode prime-cc-doc-energy:1.1.2 for transaction```

解决方法

在撰写本文时,在当前的 Silverstripe CMS 配方版本 (4.7.0) 中,GroupedDropdownField 没有 React 实现,这是 Elemental 内联编辑器支持呈现它所必需的。

不幸的是,目前您需要使用具有 React 实现的不同字段,或者自己编写。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。