_Article.getMedia(articleGUID)

Function to get the article media(images and videos).

Example Usage

{% set article = _Article.getMedia('d2c5396d-7741-4449-9d24-0d33de3pp530') %}

Parameters

ParameterRequiredtypeDescription
articleGUIDyesstringGUID 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.

AttributeDescription
guidGUID of the media
heightheight of the media
widthwidth of the media
idCloudinary Public ID of media
typeMedia type
cloudNameCloudinary Cloud name
pathCloudinary path of the media
captionCaption of the media
isSystemVideoWhether the media is system uploaded
videoIdCloudinary video ID
sourceMedia source