...
Code Block | ||
---|---|---|
| ||
<DFS.JSS.FieldSerializer> <property outputName="assetTypeId" propertyName="AssetTypeId" /> <property outputName="title" propertyName="Name" /> <quality outputName="src" /> <quality outputName="src_download" download="true" /> </DFS.JSS.FieldSerializer> |
This is an eaxample example of the out for the fieldtype asset:.
Code Block | ||
---|---|---|
| ||
"DFS Medie": { "value": { "assetTypeId": 4, "title": "Butterfly", "src": "/dfsmedia/baeefe6b74df44be8a2bccfb2c57af8e/114-50036/butterfly", "src_download": "/dfsmedia/baeefe6b74df44be8a2bccfb2c57af8e/114-50036/options/download/butterfly" } } |
Configuration
The section <DFS.JSS.FieldSerializer>
can contain 2 different types tags property
and quality
.
The following attributes are avaible for the Property tag:
outputName
This is the property name of the json output.propertyName
650delimiter
This is used for properties with multiple values. The default delimiter is semicolon.
The following attributes are avaible for the Quality tag:
outputName
This is the property name of the json output.qualityId
download