Metaobject intro: Difference between revisions

From Posstack.com Documentation
Tags: Manual revert Visual edit
 
(19 intermediate revisions by 2 users not shown)
Line 2: Line 2:


==What is Shopify metaobject?==
==What is Shopify metaobject?==
Metaobjects enable you to create and manage custom data not natively available in your default Shopify data structure, such as recipes, size charts, FAQs, ingredient lists, book metadata, and technical product specifications.  
Metaobjects enable you to create and manage custom data not natively available in your default Shopify data structure, such as recipes, size charts, FAQs, book metadata, technical product specifications, etc.  


You can access and modify the data stored in metaobjects from the Shopify admin, then display those Shopify metaobjects within your theme.
You can access and modify the data stored in metaobjects from the Shopify admin, then display those Shopify metaobjects within your theme.


==What is metaobject template?==
==What is Metaobject template?==
Metaobject templates are a set of metaobject sections designed to provide your online store with a uniform appearance.
Metaobject templates are a set of metaobject sections designed to provide your online store with a uniform appearance.


When you use Easy Content Builder to create a metaobject template, you can incorporate any available sections from our app.
For the sections you want to link to your metaobjects, you can easily create a metaobject definition using Easy Content Builder's one-click option. Once the metaobject definition is set up and entries are created, you can use dynamic sources to link the fields of your metaobject definition.


For the sections you want to link to your metaobjects, you can easily generate a metaobject definition with a simple one-click option. Once you've established a metaobject definition and created metaobject entries, you can utilize dynamic sources to link the fields of your metaobject definition.
==When to use Metaobjects template?==


==When to use Metaobject?==
{{Note|You can't use a regular template for the following use cases because with a large number of products/pages, you can't display custom-structured information '''using only one template'''. By default, only the "Main product information such as media, price, color swatch" and content section (on pages/blog posts) will be dynamic per product/page. Other sections added to the template will display the same content on all products/pages. This is where metaobjects come in handy.|reminder}}


====Use case 1====
====Use case 1====
Line 19: Line 19:


For example, you can display pre-designed banners within product pages, and each banner will be unique for each product.  
For example, you can display pre-designed banners within product pages, and each banner will be unique for each product.  
[[File:Ecb-metaobject-usecase.jpg|border|frameless|500x500px]]


====Use case 2====
====Use case 2====
Line 25: Line 27:
For example, display the same Author A bio block on 5 product pages. When you update the Author A Bio, all five products will automatically reflect your edits.
For example, display the same Author A bio block on 5 product pages. When you update the Author A Bio, all five products will automatically reflect your edits.


====Use case 3====
[[File:Metaobject-author-reusable.jpg|frameless|800x800px]]
 
==== Use case 3====
Add and display metaobject-backed pages with fully custom structured-content such as cooking recipes, product pages with complex sepcifications, bookstore pages, creative work, arts and crafts, etc.  
Add and display metaobject-backed pages with fully custom structured-content such as cooking recipes, product pages with complex sepcifications, bookstore pages, creative work, arts and crafts, etc.  


For example, you can easily create dedicated cooking recipe pages with typical information such as ingredients, how-to videos and images, cooking steps, nutrition details, etc.  
For example, you can easily create dedicated cooking recipe pages with typical information such as ingredients, how-to videos and images, cooking steps, nutrition details, etc.  


[[File:Same-metaobject-template.jpg|frameless|800x800px]]


Metaobjects are useful for adding fully custom data to each product or page using a single template. This allows for unique content sections specific to each product or page, even when using the same template.
== Next Steps ==
 
====Create metaobjects====
[[File:Ecb-metaobject-usecase.jpg|border|frameless|500x500px]]
Learn [[Create_metaobjects|how to create metaobjects]] (using '''a one-click option''').
 
A helpful example of metaobjects is creating a single content section across multiple pages, like the '''Author Bio'''. For instance, you can display the same Author A bio block on 5 product pages. When you update the Author A Bio, all five products will automatically reflect your edits.

Latest revision as of 03:07, 6 June 2024


What is Shopify metaobject?

Metaobjects enable you to create and manage custom data not natively available in your default Shopify data structure, such as recipes, size charts, FAQs, book metadata, technical product specifications, etc.

You can access and modify the data stored in metaobjects from the Shopify admin, then display those Shopify metaobjects within your theme.

What is Metaobject template?

Metaobject templates are a set of metaobject sections designed to provide your online store with a uniform appearance.

For the sections you want to link to your metaobjects, you can easily create a metaobject definition using Easy Content Builder's one-click option. Once the metaobject definition is set up and entries are created, you can use dynamic sources to link the fields of your metaobject definition.

When to use Metaobjects template?

You can't use a regular template for the following use cases because with a large number of products/pages, you can't display custom-structured information using only one template. By default, only the "Main product information such as media, price, color swatch" and content section (on pages/blog posts) will be dynamic per product/page. Other sections added to the template will display the same content on all products/pages. This is where metaobjects come in handy.

Use case 1

Add and display unique content sections specific to each product or page, when using the same template.

For example, you can display pre-designed banners within product pages, and each banner will be unique for each product.

Ecb-metaobject-usecase.jpg

Use case 2

Add and display a single content section across multiple pages.

For example, display the same Author A bio block on 5 product pages. When you update the Author A Bio, all five products will automatically reflect your edits.

Metaobject-author-reusable.jpg

Use case 3

Add and display metaobject-backed pages with fully custom structured-content such as cooking recipes, product pages with complex sepcifications, bookstore pages, creative work, arts and crafts, etc.

For example, you can easily create dedicated cooking recipe pages with typical information such as ingredients, how-to videos and images, cooking steps, nutrition details, etc.

Same-metaobject-template.jpg

Next Steps

Create metaobjects

Learn how to create metaobjects (using a one-click option).