Tag Object Reference
On this page
Overview
Tags are a way to assign simple metadata to various objects
| Property | Value |
|---|---|
| API Name | s_c__Tag__c |
| Label | Tag |
| Plural Label | Tags |
| Type | Custom Object |
Fields
| Field Label | API Name | Type | Required | Description |
|---|---|---|---|---|
| Store | s_c__Store_Id__c |
Lookup (s_c__Store__c) | Yes | The Store that this Tag belongs to. |
| Type | s_c__Type__c |
Picklist | No | Defines what type of Tag this is. In your theme you can use tag types to choose how to display items. |
| Value | s_c__Value__c |
TextArea | No | Defines the text that should be shown for this tag. |
Relationships
| Field | Type | Related Object | Relationship Name |
|---|---|---|---|
s_c__Store_Id__c |
Lookup | s_c__Store__c | Tags |
Referenced by
These objects hold a lookup or master-detail relationship to Tag (s_c__Tag__c). Where the referring record exists to join things together, Also links to shows what it connects this object to.
| Object | Field | Type | Relationship Name | Also links to |
|---|---|---|---|---|
| s_c__Article_Tag__c | s_c__Tag_Id__c |
Lookup | Article_Tags | s_c__Article__c |
| s_c__Page_Tag__c | s_c__Tag_Id__c |
Lookup | Page_Tags | s_c__Page__c |
| s_c__Product_Tag__c | s_c__Tag_Id__c |
Lookup | Product_Tags | Product2 |
On the storefront
Storefront templates read this object through the Tag Liquid object, written as tag in a theme.
| Salesforce field | Liquid attribute |
|---|---|
s_c__Type__c |
tag.type |
s_c__Value__c |
tag.value |
Fields you add yourself are not listed above. Expose one with a Custom Data Mapping record, then read it from tag.data. See custom data fields in Liquid.
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.