Enabling Moderation of Your Content
To select what content is to be moderated:
-
Download your publication's
content-type
resource. You can do this either using theescenic-admin
web application, or using a command line tool such aswget
. For a publication calledmysite
, for example, you could do this as follows:$
wget http://host:port/escenic-admin/publication-resources/mysite/escenic/content-type -
Open the
content-type
resource in an editor of your choice. -
Add a
com.escenic.community.dashboard.moderate
parameter and adashboard-moderator-fields
field group reference to each content type you wish to be moderated. For example:<content-type name="my-content-type-that-we-want-to-moderate"> [..] <parameter name="com.escenic.community.dashboard.moderate" value="true"/> [..] <panel ..> [..] <ref-field-group name="dashboard-moderator-fields"/> </panel> </content-type>
-
Add the
com.escenic.community.dashboard.showField
parameter to each field definition you wish to be shown in Dashboard. For example:<field mime-type="text/plain" type="basic" name="my-field-name"> [..] <parameter name="com.escenic.community.dashboard.showField" value="true"/> [..] </field>
Note that, title fields are always visible and editable in Dashboard.
-
Define the
dashboard-moderator-fields
group as follows:<field-group name="dashboard-moderator-fields"> <field name="moderation-state" type="enumeration"> <ui:label>Moderator Status</ui:label> <enumeration value="approved"/> <enumeration value="not-reviewed"/> <enumeration value="pending"/> <enumeration value="rejected"/> <enumeration value="reviewed"/> </field> </field-group>
-
POST the updated
content-type
resource back to its correct location. You can either do this usingescenic-admin
, or as follows usingwget
:$
wget --post-file=content-type \ -S \ -O - \ http://host:port/escenic-admin/publication-resources/mysite/escenic/content-type