Enabling Preview of Moderated Images in Dashboard
The image content type definition must have a representation field
dashboardreps
containing two representations named
thumb
and preview
along with the
parameter and fields discussed above in order to show the moderated
images in Dashboard. Define the representation field like this:
<field name="dashboardreps" type="basic" mime-type="application/json"> <ui:hidden/> <representations xmlns="http://xmlns.escenic.com/2009/representations" type="image-versions"> <representation name="preview"> <output width="400" height="300"/> <crop/> <resize/> </representation> <representation name="thumb"> <output width="100" height="100"/> <crop/> <resize/> </representation> </representations> </field>