Some work done here :
- Widgets are displayed
- Deleting a file works
- Adding a file (upload or shared) works graphically, but not the save part
- There is a focus problem after adding a file
- Some graphical changes to the widget could be done to fit in a grid
Search for "TODO CMS-8489" in the code to find the revelant places where work to do is still needed.
For the save part, in EditContentsGrid, L794 (saveEditionWithContents), the datas are flattened, so the grid sends
"values":
{
"content.input.files.file.id": "resource:,
"content.input.files.file.filename": "red-cross.png",
"content.input.files.file.size": "1944",
"content.input.files.file.viewUrl": "/cms/plugins/explorer/resource?id=resource%3A%2F%2Fbf8ddbb5-471f-4bf5-9f14-965490226d83",
"content.input.files.file.downloadUrl": "/cms/plugins/explorer/resource?id=resource%3A%2F%2Fbf8ddbb5-471f-4bf5-9f14-965490226d83&download=true",
"content.input.files.file.type": "explorer"
}
instead of
"values":
{
....
"content.input.files.file":
{
"id": "resource:,
"filename": "red-cross.png",
"size": "1944",
"viewUrl": "/cms/plugins/explorer/resource?id=resource%3A%2F%2Fbf8ddbb5-471f-4bf5-9f14-965490226d83",
"downloadUrl": "/cms/plugins/explorer/resource?id=resource%3A%2F%2Fbf8ddbb5-471f-4bf5-9f14-965490226d83&download=true",
"type": "explorer"
},
.....
}
When this is fixed, the file will be handled normally by the editContentFunction
Some work done here :
Search for "TODO
CMS-8489" in the code to find the revelant places where work to do is still needed.For the save part, in EditContentsGrid, L794 (saveEditionWithContents), the datas are flattened, so the grid sends
instead of
When this is fixed, the file will be handled normally by the editContentFunction