...
I want to get the title of the asset
<property outputName="title" propertyName="Name" />
I want to get the Photograph metafield from my Digizuite which has the guid
baeefe6b-74df-44be-8a2b-ccfb2c57af8e
<property outputName="photograph" propertyName="baeefe6b-74df-44be-8a2b-ccfb2c57af8e" />
I want to get all the folders that the asset is part of. But i want the delimiter to be #
<property outputName="folders" propertyName="bf0ad1a6-984a-494e-a227-9d70c6a864f9" delimiter="#" />
I want to get the media url with the rendition the content editor selected
<quality outputName="src" />
I want to get the media url with a specific rendition from my Digizuite DAM. The rendition is called Small JPG and has mediaFormatId 50036
<quality outputName="src_small" qualityId="50036" />
I want to get the media url for the source of the asset
<quality outputName="src_source" qualityId="source" />
or<quality outputName="src_source" qualityId="-1" />
I want to get the media url with a specific rendition from my Digizuite DAM and make it a download link. The rendition is called Small JPG and has mediaFormatId 50036
<quality outputName="src_small_download" qualityId="50036" download="true" />
Crops
If an asset has crops, then it is posible to get a list of the crops in the json respons. You simply add a property called Crops like this.<property outputName="crops" propertyName="Crops" />
The json output would look like this.
Code Block | ||
---|---|---|
| ||
"DFS Medie": {
"value": {
"assetTypeId": 4,
"title": "Butterfly",
"crops": [
{
"assetTypeId": 4,
"title": "Butterfly",
"crops": "",
"src": "/dfsmedia/baeefe6b74df44be8a2bccfb2c57af8e/119-50036/butterfly",
"src_download": "/dfsmedia/baeefe6b74df44be8a2bccfb2c57af8e/119-50036/options/download/butterfly",
"cropname": "Widescreen"
},
{
"assetTypeId": 4,
"title": "Butterfly",
"crops": "",
"src": "/dfsmedia/baeefe6b74df44be8a2bccfb2c57af8e/120-50036/butterfly",
"src_download": "/dfsmedia/baeefe6b74df44be8a2bccfb2c57af8e/120-50036/options/download/butterfly",
"cropname": "Banner"
}
],
"src": "/dfsmedia/baeefe6b74df44be8a2bccfb2c57af8e/114-50036/butterfly",
"src_download": "/dfsmedia/baeefe6b74df44be8a2bccfb2c57af8e/114-50036/options/download/butterfly"
}
} |