Medium - Liquid Object Reference

This article requires advanced skills to implement.
Liquid

Description

The Medium object contains information about a medium that has been uploaded via the CMS.

ℹ️ Note

This object supports custom data via the data attribute.

Attributes

Attribute Type Description
alt_text String Returns the value of the Alt Text attribute
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_type String Returns the value of the File Type attribute
file? Boolean Returns true if this Image is a file
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