Customizing Your Store Content with Metaobject
Introduction to Metaobject
- Metaobject Name: Designer
-
Metafields:
- Name
- Bio
- Social Media Links
-
Entries:
- Name: Jane Doe
- Bio: Jane Doe has designed over 100 fashion pieces.
- Social Media Links: www.jane-doe.com
|
Note: |
How to Create a Metaobject
-
Navigate to Settings > Customize data and click the Add metaobject button.
-
On the metaobject creation page, provide the basic information for the metaobject:
- Metaobject name: Identifies the metaobject (e.g., "Designer").
- Type: Defaults to the metaobject name, which is editable and serves as the namespace for its metafields.
- Description (optional): Provides additional information about the metaobject.
-
Click Add metafield to add the necessary metafields (e.g., "Name", "Bio", "Social Media Links"):
- Field name: Identifies the metafield in the SHOPLINE admin panel.
- Namespace and Key: Unique identifiers for the metafield; use namespaces to group similar metafields.
- Description (optional): Provides additional information about the metafield.
- Data Type: Specifies the type of data the metafield will store (e.g., text, document, URL). Supports single or multiple data types.
-
Click Add.
-
Return to the homepage of your SHOPLINE admin panel. From the left-hand menu, go to Content > Metaobjects, then click the metaobject you created from the list.
-
Click Add Entry to start creating entries.
- Once an entry is added, it appears in the entry list, where you can see which store resources (products, categories, pages, and other metaobjects) reference it, making it easier to manage everything in one place.
|
Tip: After creating metaobjects, you can change their order in the metaobject list for quick access and easier management. |
Assigning Metaobject Values
-
Navigate to Settings > Customize data and select the module you want to connect.
-
Click Add fields in the upper-right corner.
-
In the Data Type dropdown, select Metaobject, then choose the desired metaobject.
-
Go to the Product page and scroll to the Customize data section.
-
Use the dropdown list to assign metaobject values to the product page.
Displaying Metaobjects on Your Storefront
To display metaobject content on your storefront, please refer to Customizing Your Store Content with Metaobject
Recommended Practices