How do I add alt text and captions to images in Hygraph?
To add alt text and captions to images in Hygraph, go to the Assets tab of your project. Use the search filter (e.g., "colorful socks") to find your image, click the pencil icon to edit, and fill in the Alt text and Caption fields (e.g., "Colorful socks" and "A pair of red socks with a white pattern design"). Click Save & Publish to apply changes. Repeat for other images as needed. Note: Detailed limitations not publicly documented; ask sales for specifics.
How do I create and manage product categories in Hygraph?
Navigate to the Product category model in the content editor and click + Add entry. Fill in fields such as Category name, Slug, and Description (e.g., "Clothes", "clothes", "You will find clothes here"). Save and publish each entry. You can create overlapping categories, and products can belong to multiple categories due to the many-to-many reference setup. Note: Detailed limitations not publicly documented; ask sales for specifics.
How do I add and relate products in Hygraph?
To add a product, go to the Product model and click + Add entry. Fill in details like Product name, Slug, Category (select existing categories), Image (select from assets), Description, Variant (e.g., size, color), and Price. Save and publish. To relate products, edit an entry, scroll to the Related products component, and add up to 4 related products by selecting from existing entries. Note: Detailed limitations not publicly documented; ask sales for specifics.
How do I create a blog post and embed products in Hygraph?
Open the Blog post model and create a new entry. Fill in the Title, let the Slug auto-generate, and write the Body. To embed a product, use the Embed option in the rich text field, select Product as the model, and choose the product entry to embed (e.g., "Black leather shoes"). Save and publish. Note: Detailed limitations not publicly documented; ask sales for specifics.
How do I set up landing pages and navigation in Hygraph?
To create a landing page, use the Landing page model and add entries for each page (e.g., "Home", "Summer Campaign"). Fill in fields like Title, Link, and add components such as Call to action and Product grid. For navigation, use the Navigation model, add a Nav ID, and create Nav Link components for each link (e.g., "Clothes", "Shoes", "Accessories"). Save and publish to make navigation available for your frontend. Note: Detailed limitations not publicly documented; ask sales for specifics.
Features & Capabilities
What are the key features of Hygraph?
Hygraph offers a GraphQL-native architecture, content federation, multi-locale content management, rich editing tools, localization, high-performance CDN, enterprise-grade security (SOC 2 Type 2, ISO 27001, GDPR), AI Assist for content generation, and integrations with DAM, localization, and deployment platforms. Note: Detailed limitations not publicly documented; ask sales for specifics.
What integrations does Hygraph support?
Hygraph integrates with Cloudinary, Bynder, Filestack, Scaleflex Filerobot (DAM), EasyTranslate (localization), Netlify and Vercel (deployment), Mux (video), AWS S3 (object storage), Imgix (image optimization), Akeneo (PIM), Adminix, and Plasmic. For the full list, see the Hygraph Integrations Page. Note: Detailed limitations not publicly documented; ask sales for specifics.
Does Hygraph provide an API?
Yes, Hygraph provides a GraphQL-native API for content delivery and management, a Content API for programmatic access, and a Management API for schema and user management. See the API Reference documentation for details. Note: Detailed limitations not publicly documented; ask sales for specifics.
What security and compliance certifications does Hygraph have?
Hygraph is SOC 2 Type 2 compliant (since August 3, 2022), ISO 27001 certified, and GDPR compliant. It offers granular permissions, audit logs, automatic backups, and encryption at rest and in transit. For more, see the Secure Features page. Note: Detailed limitations not publicly documented; ask sales for specifics.
Use Cases & Benefits
Who can benefit from using Hygraph?
Hygraph is designed for marketing and content teams, developers, product managers, and enterprise IT/operations teams. It's especially valuable for companies managing multiple brands, regions, and languages, or those migrating from legacy CMS platforms. Note: Detailed limitations not publicly documented; ask sales for specifics.
What business impact can customers expect from using Hygraph?
Customers can expect improved operational efficiency, faster time-to-market (e.g., Komax achieved 3X faster time-to-market), enhanced customer engagement (Samsung improved engagement by 15%), cost savings (AutoWeb saw a 20% increase in website monetization), and scalability for global operations. Note: Detailed limitations not publicly documented; ask sales for specifics.
What problems does Hygraph solve for content teams?
Hygraph addresses developer dependency, legacy tech stack limitations, content inconsistency, workflow challenges, high operational costs, slow speed-to-market, and integration difficulties. It enables non-technical users to manage content, supports localization, and streamlines collaboration. Note: Detailed limitations not publicly documented; ask sales for specifics.
Customer Proof & Success Stories
What are some real-world success stories with Hygraph?
Komax achieved 3X faster time-to-market, Samsung improved customer engagement by 15%, and AutoWeb saw a 20% increase in website monetization using Hygraph. Other customers include Dr. Oetker, HolidayCheck, Fitfox, DTM, and Statistics Finland. See more at the Hygraph case studies page. Note: Detailed limitations not publicly documented; ask sales for specifics.
Which industries use Hygraph?
Hygraph is used in SaaS, marketplace, education technology, media and publication, healthcare, consumer goods, automotive, technology, fintech, travel and hospitality, food and beverage, eCommerce, agency, online gaming, events & conferences, government, consumer electronics, engineering, and construction. See the full list at the case studies page. Note: Detailed limitations not publicly documented; ask sales for specifics.
Who are some of Hygraph's customers?
Notable customers include Sennheiser, Holidaycheck, Ancestry, JDE, Dr. Oetker, Ashley Furniture, Lindex, Hairhouse, Komax, Shure, Stobag, Burrow, G2I, Epic Games, Bandai Namco, Gamescom, Leo Vegas, Codecentric, Voi, and Clayton Homes. See more at the case studies page. Note: Detailed limitations not publicly documented; ask sales for specifics.
Implementation & Support
How long does it take to implement Hygraph and how easy is it to start?
Implementation time depends on project complexity. Simple use cases can start in minutes using pre-configured starter projects. For complex needs, Hygraph offers structured onboarding, documentation, and community support. See the Getting Started guide for details. Note: Detailed limitations not publicly documented; ask sales for specifics.
What technical documentation is available for Hygraph?
Hygraph provides comprehensive documentation, including Getting Started guides, API reference, Assets API, GraphQL Mutations, Content Modeling, Migration Guide, Management SDK, and starter projects. Access all resources at the Hygraph Documentation page. Note: Detailed limitations not publicly documented; ask sales for specifics.
Product Performance & Limitations
What are Hygraph's performance highlights?
Hygraph offers a high-performance CDN, global API latency of 70–100ms, Smart Edge Cache for optimized delivery, 99.9%+ uptime, and region-based hosting. These features support scalability and reliability for global operations. Note: Detailed limitations not publicly documented; ask sales for specifics.
Customer Feedback
What feedback have customers given about Hygraph's ease of use?
Customers such as Anastasija S. (Product Content Coordinator) report a great experience with quick support and instant front-end updates. Charissa K. describes Hygraph as "fast to comprehend and localizable," and Tom K. (Web Development Team Lead) highlights its suitability for complex websites and strong support. Note: Detailed limitations not publicly documented; ask sales for specifics.
During schema building, we modified our Assets system model so the images would have alternative text and a caption. If we go to the Assets tab of our Hygraph project, we'll notice that already contains images. We've provided these images from the get go so you would't have to upload them yourself. If you're interested in learning more about asset upload, check out this document.
Our assets table should look like this:
Assets table with images
We need to manually add the Alt text and Caption for each image. Let's do the first one together: We'll write “colorful socks” in the search filter to find the images we're looking for, and we'll click on the pencil icon of the first result on the list to access the edit mode.
We'll fill in the following information:
Field
Input
Alt text
Colorful socks
Caption
A pair of red socks with a white pattern design
We'll click on Save & Publish, and once it's saved, we'll go back to the assets table by clicking the arrow icon at the top left corner of the edit screen.
You'll repeat this for the other two images that you get when you search for "colorful socks".
After you're done with this set of three images, you can click on the X next to the “colorful socks” search reset it, and you'll be ready to repeat the process for the rest of the images.
In previous lessons, we created the Product category model and a reference that related it to the Product model. The idea behind it was that we want to be able to select categories our products belong in every time we create a listing and, at the same time, offer customers the possibility to browse items within a category.
To be able to establish relations between content entries, we need to have content entries. At this point, however, our Product Category model has none. This is what the model we created looks like in the Content editor:
Product categories in the content editor
Each entry we create here will become a category we can then relate our products to. Because it's a two-way reference that connects many-to-many, this screen lets us add existing products.
We're not going to do this right now because we haven't created any product entries yet, so there is nothing we can add. However, because of the type of reference we used to link categories and products, we'll be able to relate the categories when we create the product entries.
Let's do the first one together. To create a new entry, navigate to the Product category model in the content editor, and click + Add entry at the top right corner of the screen.
Use the following information:
Field
Input
Category name
Clothes
Slug
clothes
Description
You will find clothes here
Remember to Save & Publish after you're done.
We'll create one entry for each of the categories we want to have in our e-commerce. We'll use the following information:
For our shoes category
Field
Input
Category name
Shoes
Slug
shoes
Description
You will find shoes here
For our sportswear category
Field
Input
Category name
Sportswear
Slug
Sportswear
Description
You will find Sportswear here
For our urban category
Field
Input
Category name
Urban
Slug
urban
Description
You will find urban-style items here
For our new arrival category
Field
Input
Category name
New arrival
Slug
new-arrival
Description
You will find our latest arrivals here
For our decor category
Field
Input
Category name
Decor
Slug
decor
Description
You will find decor items here
For our accessories category
Field
Input
Category name
Accessories
Slug
accessories
Description
You will find accessories here
We've purposely created some overlapping categories - i.e. a product can be both a new arrival and sportswear - since we created a reference type where one product can be related to more than one category.
Now that we've created our categories, our Product Categories view in the Content editor should look like this:
Product categories in the content editor - with entries
Now let's create some content for our Seller information model. This model will contain information about our e-commerce business, so we'll create a single entry here.
Please follow the same process as in the previous lesson to create your entry. Your entry should have the following information:
Field
Input
Business name
My business
Slug
my-business
Business logo
Click on Add business logo and select the Hygraph logo from your assets. Click on the relation icon - first column - to add it.
Business description
This is a description of my business
Click on Save & publish
Our Seller information view in the Content editor should look like this:
Next, we're going to work on our product entries. These will be the product listings of our e-commerce. Because we currently have no entries for this model, we will work on this in two steps: first, we'll create a basic product listing, and then we'll add the related products by editing our initial entries.
We'll navigate to the Product content model in the content editor and click on + Add entry.
Add product content entry
We'll use the following information:
Field
Input
Product name
Black leather shoes
Product slug
black-leather-shoes
Product category
We'll click on Add existing Product categories, and we'll select Shoes, New arrival
Product image
we'll click on Add Product images, and we'll select the images called black leather shoes. To find them quickly, we can type “black leather shoes” in the search filter on top of the table, and we'll add them to the entry by clicking on Add selected images.
Product description
These black leather shoes seamlessly blend sophistication with durability, making them a versatile choice for both formal occasions and everyday wear. The sleek design and high-quality leather ensure a timeless appeal that complements any outfit.
Product variant
We'll click on Add component to display our options, and then we'll select Shoes. We configured the Shoes component to have the size and color enumerations, so we'll select Size “Size_40” and color “Black”.
Product price
170
At this point, because we have no other products published to relate, we'll just go ahead and click on Save & publish at the top right corner of the screen. We'll come back to our entries later to add relations.
Product content entry
Now it's time to practice. We'll create some additional content so we can query it later when we work with the API Playground. You'll create three more content entries, following the same process we just went through together, using the following information:
Blue running shoes
Field
Input
Product name
Blue running shoes
Product slug
blue-running-shoes
Product category
Select Sportswear, and Shoes.
Product image
Select the images with the file name blue running shoes.
Product description
These blue running shoes offer both form and function, providing exceptional support and style for your active pursuits. The breathable material and cushioned sole ensure a comfortable experience mile after mile.
Product variant
Select the product type “Shoes”, and then Size “Size_42” and color “Blue”.
Product price
130
Plaid shirt
Field
Input
Product name
Plaid shirt
Product slug
plaid-shirt
Product category
Select New arrival, Urban, Clothes.
Product image
Select the images with the file name blue plaid shirt.
Product description
This plaid shirt exudes a timeless charm, perfect for a casual day out or a relaxed evening gathering. The classic checkered pattern and comfortable fit make it a wardrobe staple for effortless style.
Product variant
Select the product type “Clothing”, and then Size “XL” and color “Blue”.
Product price
60
Necklace
Field
Input
Product name
Necklace
Product slug
necklace
Product category
Select Accessories.
Product image
Select the images with the file name necklace.
Product description
This white necklace is crafted from parts of seashells, evoking a relaxed, beachy vibe. Perfect for those looking to add a touch of the sea to their daily style.
Product variant
Select the product type “Accessories”, and then Color “White”.
Product price
12
Headband
Field
Input
Product name
Headband
Product slug
headband
Product category
Select Accessories.
Product image
Select the images with the file name headband.
Product description
This white cotton headband provides an elegant and sophisticated touch to your hairstyle. Perfect for completing your look with a blend of fashion and comfort.
Product variant
Select the product type “Accessories”, and then Color “White”.
Now that we have all our basic content entries, we should add related products to each one.
Just like before, we'll go over the first one together, and then you can work on the rest:
We'll click on the pencil icon of the Headband product entry; this will take us to the edit view. We'll scroll down to where we have our Related products component, and we'll click on + Add Related products.
Remember that when we configured this component, we wanted the title section to be read-only to ensure it'd be the same throughout our e-commerce, so we can now see that the title “Related products” is grayed out and can't be edited.
Next, we have the products section, which says “Add 4 related products here”. This is exactly what we'll do. We'll click on Add existing products and use the checkboxes to select the black leather shoes, necklace, blue running shoes, and plaid shirt. We'll click on Add selected products, and that's it. We can now see the 4 products that we related to our content entry listed in our component:
Component with related products
We'll click Save & Publish at the top right corner of the screen to save the updated entry.
Now, please follow the same steps for our other product entries. Here's a table containing each product entry and the products you should relate them to:
Product content entry
Related products
Blue running shoes
black leather shoes necklace headband plaid shirt
Black leather shoes
blue running shoes necklace headband plaid shirt
Necklace
black leather shoes blue running shoes headband plaid shirt
Plaid shirt
black leather shoes necklace headband blue running shoes
Let's also create a blog post entry that we can later display for promotion on our landing page.
We'll open the Blog post model in the content editor and create a new entry using the following information:
Field
Input
Title
Our new leather shoes
Slug
The Slug will autocomplete since we configured it to autogenerate from a template.
Body
We'll write “Take a look at this awesome new arrival”. When we configured this Rich Text field, we decided to allow embeds, so let's use this to showcase the product we're talking about. We'll click on Embed, select Block, we'll use the dropdown to select the Product model, and then we'll click Select model. A screen will pop up, showing us all the product entries that we created previously. Let's click on the relation icon - first column - to select our Black leather shoes product entry.
We'll create two landing pages for our e-commerce project: One that will be our homepage, and another one that will hold information for our summer campaign.
Let's create our homepage. We couldn't have created this page earlier, because we configured it to contain mostly related content, so we needed the rest of the content to be created before we could get into it.
We'll open the Landing page model in the content editor and create a new entry with the following information:
Field
Input
Landing page title
Home
Link
Simply write / here.
Blog posts
We'll leave this empty for now.
Product categories
We'll leave this empty for now.
Seller information
We'll add the seller information we created before.
Stripes
Click on +Add component and add a call to action & a product grid, using the information in the following tables.
Call to action
Field
Input
Heading
We'll write “Main Headline for the page”.
Body
We'll write “We provide amazing products from outerwear, shoes, homegoods, and more! Be sure to check out all the amazing products”.
Image
Add “Hygraph_Logo”.
Button
Click on + Add Button and write “Shop Now” in the Text field, and https://google.com in the URL field.
Product Grid
Field
Input
Headline
We'll write “Picks of the month”.
Products
We'll add relations to the following product entries: blue running shoes, black leather shoes, necklace, headband, plaid shirt.
You would normally use a many more products here, but our e-commerce only has a few for now.
Now that we're done, let's click Save & publish.
The landing page model we created allows us to create other pages as well. We want our e-commerce to have a dedicated section for the summer campaign, so we'll create it using this model.
We'll follow the same steps as for the homepage, using the following information:
Field
Input
Landing page title
Summer Campaign
Link
summer-campaign
Blog posts
We'll leave this empty for now.
Product categories
We'll leave this empty for now.
Seller information
We'll add the seller information we created before.
Stripes
Click on +Add component and add a call to action & a product grid, using the information in the following tables.
Call to action
Field
Input
Heading
We'll write “Get ready for Summer with these amazing deals”
Body
We'll write “The Summer Sale is in full swing! See the amazing summer deals we have listed below!”.
Image
We'll leave this empty for now.
Button
We'll leave this empty for now.
Product Grid
Field
Input
Headline
We'll write “Summer wear”.
Products
We'll add relations to the following product entries: blue running shoes, black leather shoes, necklace, headband, plaid shirt.
In a previous lesson, we added a Link component to our Navigation model. That model allows us to add links to a Navigation content entry, that can later be used by our frontend.
We want our e-commerce to have a main navigation that displays some of our important categories - such as clothes, shoes, accessories, and decor - as well as the Summer Campaign page we created in the previous step.
We'll open the Navigation model in the content editor and create a new entry with the following information:
Field
Input
Nav ID
main
Nav Link
This is the component we added in the lesson about adding component fields to a model. We will add one of these components for each link we want in our navigation. We'll click on + Add Link to start and complete the fields inside the component with the information in the following table.
Clothes link
Field
Input
Display Text
Clothes
Page
We'll leave this as is for now.
External URL
/category/clothes
Our first navigation link is ready, time to add the rest of the Nav Link components. We'll click on + Add another Link to start and we'll repeat the process for each link with the following information:
Shoes link
Field
Input
Display Text
Shoes
Page
We'll leave this as is for now.
External URL
/category/shoes
Accessories link
Field
Input
Display Text
Accessories
Page
We'll leave this as is for now.
External URL
/category/accessories
Decor link
Field
Input
Display Text
Decor
Page
We'll leave this as is for now.
External URL
/category/decor
Summer Campaign link
Field
Input
Display Text
Summer Campaign
Page
We'll click on Add existing document and elect the Summer campaign landing page that we created in the last lesson.
External URL
We'll leave this as is for now.
Now our Navigation content entry has all the links the frontend needs to show. We'll see them later on when we integrate our content with our frontend.
Next step
Once you've created some content for your project, move on to our next lesson:
During schema building, we modified our Assets system model so the images would have alternative text and a caption. If we go to the Assets tab of our Hygraph project, we'll notice that already contains images. We've provided these images from the get go so you would't have to upload them yourself. If you're interested in learning more about asset upload, check out this document.
Our assets table should look like this:
Assets table with images
We need to manually add the Alt text and Caption for each image. Let's do the first one together: We'll write “colorful socks” in the search filter to find the images we're looking for, and we'll click on the pencil icon of the first result on the list to access the edit mode.
We'll fill in the following information:
Field
Input
Alt text
Colorful socks
Caption
A pair of red socks with a white pattern design
We'll click on Save & Publish, and once it's saved, we'll go back to the assets table by clicking the arrow icon at the top left corner of the edit screen.
You'll repeat this for the other two images that you get when you search for "colorful socks".
After you're done with this set of three images, you can click on the X next to the “colorful socks” search reset it, and you'll be ready to repeat the process for the rest of the images.
In previous lessons, we created the Product category model and a reference that related it to the Product model. The idea behind it was that we want to be able to select categories our products belong in every time we create a listing and, at the same time, offer customers the possibility to browse items within a category.
To be able to establish relations between content entries, we need to have content entries. At this point, however, our Product Category model has none. This is what the model we created looks like in the Content editor:
Product categories in the content editor
Each entry we create here will become a category we can then relate our products to. Because it's a two-way reference that connects many-to-many, this screen lets us add existing products.
We're not going to do this right now because we haven't created any product entries yet, so there is nothing we can add. However, because of the type of reference we used to link categories and products, we'll be able to relate the categories when we create the product entries.
Let's do the first one together. To create a new entry, navigate to the Product category model in the content editor, and click + Add entry at the top right corner of the screen.
Use the following information:
Field
Input
Category name
Clothes
Slug
clothes
Description
You will find clothes here
Remember to Save & Publish after you're done.
We'll create one entry for each of the categories we want to have in our e-commerce. We'll use the following information:
For our shoes category
Field
Input
Category name
Shoes
Slug
shoes
Description
You will find shoes here
For our sportswear category
Field
Input
Category name
Sportswear
Slug
Sportswear
Description
You will find Sportswear here
For our urban category
Field
Input
Category name
Urban
Slug
urban
Description
You will find urban-style items here
For our new arrival category
Field
Input
Category name
New arrival
Slug
new-arrival
Description
You will find our latest arrivals here
For our decor category
Field
Input
Category name
Decor
Slug
decor
Description
You will find decor items here
For our accessories category
Field
Input
Category name
Accessories
Slug
accessories
Description
You will find accessories here
We've purposely created some overlapping categories - i.e. a product can be both a new arrival and sportswear - since we created a reference type where one product can be related to more than one category.
Now that we've created our categories, our Product Categories view in the Content editor should look like this:
Product categories in the content editor - with entries
Now let's create some content for our Seller information model. This model will contain information about our e-commerce business, so we'll create a single entry here.
Please follow the same process as in the previous lesson to create your entry. Your entry should have the following information:
Field
Input
Business name
My business
Slug
my-business
Business logo
Click on Add business logo and select the Hygraph logo from your assets. Click on the relation icon - first column - to add it.
Business description
This is a description of my business
Click on Save & publish
Our Seller information view in the Content editor should look like this:
Next, we're going to work on our product entries. These will be the product listings of our e-commerce. Because we currently have no entries for this model, we will work on this in two steps: first, we'll create a basic product listing, and then we'll add the related products by editing our initial entries.
We'll navigate to the Product content model in the content editor and click on + Add entry.
Add product content entry
We'll use the following information:
Field
Input
Product name
Black leather shoes
Product slug
black-leather-shoes
Product category
We'll click on Add existing Product categories, and we'll select Shoes, New arrival
Product image
we'll click on Add Product images, and we'll select the images called black leather shoes. To find them quickly, we can type “black leather shoes” in the search filter on top of the table, and we'll add them to the entry by clicking on Add selected images.
Product description
These black leather shoes seamlessly blend sophistication with durability, making them a versatile choice for both formal occasions and everyday wear. The sleek design and high-quality leather ensure a timeless appeal that complements any outfit.
Product variant
We'll click on Add component to display our options, and then we'll select Shoes. We configured the Shoes component to have the size and color enumerations, so we'll select Size “Size_40” and color “Black”.
Product price
170
At this point, because we have no other products published to relate, we'll just go ahead and click on Save & publish at the top right corner of the screen. We'll come back to our entries later to add relations.
Product content entry
Now it's time to practice. We'll create some additional content so we can query it later when we work with the API Playground. You'll create three more content entries, following the same process we just went through together, using the following information:
Blue running shoes
Field
Input
Product name
Blue running shoes
Product slug
blue-running-shoes
Product category
Select Sportswear, and Shoes.
Product image
Select the images with the file name blue running shoes.
Product description
These blue running shoes offer both form and function, providing exceptional support and style for your active pursuits. The breathable material and cushioned sole ensure a comfortable experience mile after mile.
Product variant
Select the product type “Shoes”, and then Size “Size_42” and color “Blue”.
Product price
130
Plaid shirt
Field
Input
Product name
Plaid shirt
Product slug
plaid-shirt
Product category
Select New arrival, Urban, Clothes.
Product image
Select the images with the file name blue plaid shirt.
Product description
This plaid shirt exudes a timeless charm, perfect for a casual day out or a relaxed evening gathering. The classic checkered pattern and comfortable fit make it a wardrobe staple for effortless style.
Product variant
Select the product type “Clothing”, and then Size “XL” and color “Blue”.
Product price
60
Necklace
Field
Input
Product name
Necklace
Product slug
necklace
Product category
Select Accessories.
Product image
Select the images with the file name necklace.
Product description
This white necklace is crafted from parts of seashells, evoking a relaxed, beachy vibe. Perfect for those looking to add a touch of the sea to their daily style.
Product variant
Select the product type “Accessories”, and then Color “White”.
Product price
12
Headband
Field
Input
Product name
Headband
Product slug
headband
Product category
Select Accessories.
Product image
Select the images with the file name headband.
Product description
This white cotton headband provides an elegant and sophisticated touch to your hairstyle. Perfect for completing your look with a blend of fashion and comfort.
Product variant
Select the product type “Accessories”, and then Color “White”.
Now that we have all our basic content entries, we should add related products to each one.
Just like before, we'll go over the first one together, and then you can work on the rest:
We'll click on the pencil icon of the Headband product entry; this will take us to the edit view. We'll scroll down to where we have our Related products component, and we'll click on + Add Related products.
Remember that when we configured this component, we wanted the title section to be read-only to ensure it'd be the same throughout our e-commerce, so we can now see that the title “Related products” is grayed out and can't be edited.
Next, we have the products section, which says “Add 4 related products here”. This is exactly what we'll do. We'll click on Add existing products and use the checkboxes to select the black leather shoes, necklace, blue running shoes, and plaid shirt. We'll click on Add selected products, and that's it. We can now see the 4 products that we related to our content entry listed in our component:
Component with related products
We'll click Save & Publish at the top right corner of the screen to save the updated entry.
Now, please follow the same steps for our other product entries. Here's a table containing each product entry and the products you should relate them to:
Product content entry
Related products
Blue running shoes
black leather shoes necklace headband plaid shirt
Black leather shoes
blue running shoes necklace headband plaid shirt
Necklace
black leather shoes blue running shoes headband plaid shirt
Plaid shirt
black leather shoes necklace headband blue running shoes
Let's also create a blog post entry that we can later display for promotion on our landing page.
We'll open the Blog post model in the content editor and create a new entry using the following information:
Field
Input
Title
Our new leather shoes
Slug
The Slug will autocomplete since we configured it to autogenerate from a template.
Body
We'll write “Take a look at this awesome new arrival”. When we configured this Rich Text field, we decided to allow embeds, so let's use this to showcase the product we're talking about. We'll click on Embed, select Block, we'll use the dropdown to select the Product model, and then we'll click Select model. A screen will pop up, showing us all the product entries that we created previously. Let's click on the relation icon - first column - to select our Black leather shoes product entry.
We'll create two landing pages for our e-commerce project: One that will be our homepage, and another one that will hold information for our summer campaign.
Let's create our homepage. We couldn't have created this page earlier, because we configured it to contain mostly related content, so we needed the rest of the content to be created before we could get into it.
We'll open the Landing page model in the content editor and create a new entry with the following information:
Field
Input
Landing page title
Home
Link
Simply write / here.
Blog posts
We'll leave this empty for now.
Product categories
We'll leave this empty for now.
Seller information
We'll add the seller information we created before.
Stripes
Click on +Add component and add a call to action & a product grid, using the information in the following tables.
Call to action
Field
Input
Heading
We'll write “Main Headline for the page”.
Body
We'll write “We provide amazing products from outerwear, shoes, homegoods, and more! Be sure to check out all the amazing products”.
Image
Add “Hygraph_Logo”.
Button
Click on + Add Button and write “Shop Now” in the Text field, and https://google.com in the URL field.
Product Grid
Field
Input
Headline
We'll write “Picks of the month”.
Products
We'll add relations to the following product entries: blue running shoes, black leather shoes, necklace, headband, plaid shirt.
You would normally use a many more products here, but our e-commerce only has a few for now.
Now that we're done, let's click Save & publish.
The landing page model we created allows us to create other pages as well. We want our e-commerce to have a dedicated section for the summer campaign, so we'll create it using this model.
We'll follow the same steps as for the homepage, using the following information:
Field
Input
Landing page title
Summer Campaign
Link
summer-campaign
Blog posts
We'll leave this empty for now.
Product categories
We'll leave this empty for now.
Seller information
We'll add the seller information we created before.
Stripes
Click on +Add component and add a call to action & a product grid, using the information in the following tables.
Call to action
Field
Input
Heading
We'll write “Get ready for Summer with these amazing deals”
Body
We'll write “The Summer Sale is in full swing! See the amazing summer deals we have listed below!”.
Image
We'll leave this empty for now.
Button
We'll leave this empty for now.
Product Grid
Field
Input
Headline
We'll write “Summer wear”.
Products
We'll add relations to the following product entries: blue running shoes, black leather shoes, necklace, headband, plaid shirt.
In a previous lesson, we added a Link component to our Navigation model. That model allows us to add links to a Navigation content entry, that can later be used by our frontend.
We want our e-commerce to have a main navigation that displays some of our important categories - such as clothes, shoes, accessories, and decor - as well as the Summer Campaign page we created in the previous step.
We'll open the Navigation model in the content editor and create a new entry with the following information:
Field
Input
Nav ID
main
Nav Link
This is the component we added in the lesson about adding component fields to a model. We will add one of these components for each link we want in our navigation. We'll click on + Add Link to start and complete the fields inside the component with the information in the following table.
Clothes link
Field
Input
Display Text
Clothes
Page
We'll leave this as is for now.
External URL
/category/clothes
Our first navigation link is ready, time to add the rest of the Nav Link components. We'll click on + Add another Link to start and we'll repeat the process for each link with the following information:
Shoes link
Field
Input
Display Text
Shoes
Page
We'll leave this as is for now.
External URL
/category/shoes
Accessories link
Field
Input
Display Text
Accessories
Page
We'll leave this as is for now.
External URL
/category/accessories
Decor link
Field
Input
Display Text
Decor
Page
We'll leave this as is for now.
External URL
/category/decor
Summer Campaign link
Field
Input
Display Text
Summer Campaign
Page
We'll click on Add existing document and elect the Summer campaign landing page that we created in the last lesson.
External URL
We'll leave this as is for now.
Now our Navigation content entry has all the links the frontend needs to show. We'll see them later on when we integrate our content with our frontend.
Next step
Once you've created some content for your project, move on to our next lesson: