_Article.getMedia(articleGUID)
Function to get the article media(images and videos).
Example Usage
{% set article = _Article.getMedia('d2c5396d-7741-4449-9d24-0d33de3pp530') %}
Parameters
Parameter | Required | type | Description |
---|---|---|---|
articleGUID | yes | string | GUID of the article |
Response Example
[
{
"guid": "3e1cd7ca-e012-4886-8a7a-4603fe9d5038",
"height": 500,
"width": 600,
"id": "mt1idrdvjm5l9pfp62cv",
"type": "video",
"cloudName": "cognitives",
"path": "http://res.cloudinary.com/cognitives/image/upload/c_fill,dpr_auto,g_face,h_600,w_1350/mt1idrdvjm5l9pfp62cv",
"caption": 'This is the caption of image',
"isSystemVideo": true,
"videoId": "y9rddss8dbnf767cil5b",
"source": "cloudinary"
}
]
Response Description
Returns an associative array with following attributes.
Attribute | Description |
---|---|
guid | GUID of the media |
height | height of the media |
width | width of the media |
id | Cloudinary Public ID of media |
type | Media type |
cloudName | Cloudinary Cloud name |
path | Cloudinary path of the media |
caption | Caption of the media |
isSystemVideo | Whether the media is system uploaded |
videoId | Cloudinary video ID |
source | Media source |
Updated almost 5 years ago