OpenContent icon indicating copy to clipboard operation
OpenContent copied to clipboard

Avoid un-editabel items?

Open Timo-Breumelhof opened this issue 1 year ago • 0 comments

I had a client with this in their data definition:

Schema:

"MainImage": {
      "type": "object",
      "title": "Main Image",
      "properties": {
        "Image": {
          "type": "string",
          "title": "Crop for Lists"
        },
	"Title": {
            "type": "string",
            "title": "Title"
         },
		 "ShowTitle": {
            "type": "boolean",
            "title": "ShowTitle",
			"helper": "test"
         }
      }
    }

Options:

    "MainImage": {
      "type": "object",
      "fields": {
        "Image": {
          "type": "imagex",
          "uploadhidden": false,
          "fileMaxSize": 10485760,
          "showOverwrite": true,
          "overwrite": false,
          "showCropper": true,
          "saveCropFile": true,
          "width": 1200,
          "height": 1200
        },
          "Title": {
            "type": "textarea",
            "configset": "basic"
          }
      }
    }

They use this daily and generally it works fine. But yesterday there was an issue with the internet connection (apparently) during the upload of an image which left the article in-editable.

This as in the raw data:

  "MainImage": {
    "Image": {},
    "Crop": "center-center",
    "ShowTitle": false
  },

After I removed that, edit was working again.

Can we somehow prevent this situation?

Timo-Breumelhof avatar Jun 13 '24 11:06 Timo-Breumelhof