Studio Developer Manual / Version 2406.0
Table Of Contents
The thumbnail view of the library window can show a preview image of content items with a blob
property holding the image data. If you want to do so, you need to register your content type
and configure the name of the blob property you want the thumbnail preview to be generated
from. One option is to use the registerImageDocumentType
method of the
@coremedia/studio-client.cap-base-models/content/contentTypeContext
.
You can also use the standard plugin ConfigureDocumentTypes
,
setting the imageProperty
as shown below.
import ConfigureDocumentTypes from "@coremedia/studio-client.main.editor-components/configuration/ConfigureDocumentTypes"; //... new ConfigureDocumentTypes({ names: "CMMedia,CMImage", imageProperty: "data", richTextImageBlobProperty: "data", })
Example 9.44. Configuring the thumbnail view
The configured property applies to exactly the given content types, only. It is not inherited by subtypes.