Creating a Watermark Content Type
A watermark content type is a standard image content type with a
link
field for storing a reference to the watermark
image. In addition, however, it must have a
parameter
that identifies it as a watermark image.
This parameter must have the name
com.escenic.video.watermark.image
and the value
true
.
Here is a simple example of a watermark content type:
<content-type name="watermark"> <parameter name="com.escenic.video.watermark.image" value="true"/> <ui:label>Watermark</ui:label> <ui:title-field>name</ui:title-field> <panel name="main"> <ui:label>Image content</ui:label> <field name="name" type="basic" mime-type="text/plain"> <ui:label>Name</ui:label> <constraints> <required>true</required> </constraints> </field> <field type="link" name="binary"> <relation>com.escenic.edit-media</relation> <constraints> <mime-type>image/jpeg</mime-type> <mime-type>image/png</mime-type> </constraints> </field> </panel> </content-type>