Adding a Response Field
A response field is required in each content type to hold responses returned from Cxense. The response field must:
-
Be a basic field with the MIME type
application/json
. -
Contain a child
field
element belonging to the namespacehttp://xmlns.escenic.com/2011/semantic
. This is an empty element with one attribute,name
.name
must be set to the valueresponse
.
It is also recommended that you hide this field by adding a
child ui:hidden
element.
For example:
<field mime-type="application/json" type="basic" name="cxense-response"> <ui:label>Cxense response</ui:label> <ui:description>The JSON response from cxense.</ui:description> <ui:hidden/> <semantic:field name="response"/> </field>