Adding an Image Content Type
If the newsroom stories to be imported to a publication will include
image, then the publication's content-type
resource
must contain a suitable content type. For example:
<content-type name="image"> <ui:label>Picture</ui:label> <ui:icon>image</ui:icon> <ui:title-field>name</ui:title-field> <panel name="main"> <field mime-type="text/plain" type="basic" name="name"/> <field name="binary" type="link"> <relation>com.escenic.edit-media</relation> <constraints> <mime-type>image/jpeg</mime-type> <mime-type>image/png</mime-type> </constraints> </field> </panel> </content-type>
The important points to note are highlighted in the example:
A image content type must at least have the following:
-
It must have a
link
field with:-
relation
set tocom.escenic.edit-media
-
at least one
mime-type
constraint that starts with the stringimage/
.
-