Document - Liquid Object Reference
On this page
Description
The Document object contains information about a document that has been uploaded via the CMS.
:::note
This object supports custom data via the data attribute.
:::
Backed by
This drop renders the s_c__Media__c Salesforce object. A theme writes it as document.
| Liquid attribute | Salesforce field |
|---|---|
alt_text |
s_c__Alt_Text__c |
description |
s_c__Description__c |
file_type |
s_c__File_Type__c |
url |
s_c__Url__c |
Every other attribute on this drop is derived by StoreConnect rather than read straight from one field. The Attributes section lists them all.
Fields you add yourself are not listed above. Expose one with a Custom Data Mapping record, then read it from document.data. See custom data fields in Liquid.
Attributes
| Attribute | Type | Description |
|---|---|---|
alt_text |
String | Returns the value of the Alt Text attribute |
description |
String | Returns the value of the Description attribute |
file_type |
String | Returns the value of the File Type attribute |
id |
String | Returns the unique id for this Document |
name |
String | Returns the value of the Name attribute |
url |
String | Returns the complete url for this Document |
Available on
- ContentBlock - Liquid Object Reference —
document - Medium - Liquid Object Reference —
document - Product - Liquid Object Reference —
documents,variant_documents
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.