Medium - Liquid Object Reference - 1.0.0
Object Name | Medium |
Version | 1.0.0 |
Description
The Medium object contains information about a medium that has been uploaded via the CMS.
Attributes
Attribute | Type | Description |
---|---|---|
alt_text | String | Returns the value of the Alt Text attribute |
data | Object | Returns a custom data object for this object |
description | String | Returns the value of the Description attribute |
document | Document | Returns a Document object for this Medium if the file_type is ‘document’ |
document? | Boolean | Returns true if this Image is a document |
download_url | String | Returns a url for this Medium that will trigger a file download in the browser |
file | File | Returns a File object for this Medium if the file_type is ‘file’ |
file? | Boolean | Returns true if this Image is a file |
file_type | String | Returns the value of the File Type attribute |
id | String | Returns the unique id for this Medium |
image | Image | Returns an Image object for this Medium if the file_type is ‘image’ |
image? | Boolean | Returns true if this Image is an image |
name | String | Returns the value of the Name attribute |
url | String | Returns the complete url for this Medium |
video | Video | Returns a Video object for this Medium if the file_type is ‘video’ |
video? | Boolean | Returns true if this Image is a video |
Objects that return Media
Back to Liquid Reference for 1.0.0
Back to Documentation