What is the Hygraph Product Page with Akeneo recipe?
The Hygraph Product Page with Akeneo recipe is a step-by-step guide for creating a product model in Hygraph that fetches product information directly from an external Product Information Management (PIM) system, specifically Akeneo, via app integrations. This approach allows you to send both CMS and product information to your frontend with a single API call, reducing manual data duplication and minimizing errors or discrepancies between your PIM and CMS. [Source]
How does the Akeneo integration with Hygraph work?
The Akeneo integration works by installing the Akeneo app from the Hygraph Marketplace, which enables you to fetch product data from your Akeneo PIM into Hygraph. You add an "Akeneo Field Picker" to your product model, allowing editors to select products stored in Akeneo directly from the Hygraph content form. This ensures that product information is always up-to-date and consistent across platforms. [Source]
What are the benefits of using Akeneo with Hygraph for product pages?
Using Akeneo with Hygraph for product pages allows you to centralize product information management, reduce manual updates, and avoid data discrepancies. Editors can fetch the latest product data from Akeneo, add supplementary content (like images or promotional text) in Hygraph, and deliver all information to the frontend with a single API call. This streamlines workflows and ensures content accuracy. [Source]
Prerequisites & Setup
What do I need before setting up the Product Page with Akeneo in Hygraph?
To set up the Product Page with Akeneo in Hygraph, you need:
Your Akeneo PIM URL (e.g., https://<YOUR-PROJECT-NAME>.cloud.akeneo.com/).
Connection settings in Akeneo (Client ID, Secret, Username, Password) configured for Hygraph integration.
These are required to enable the integration and fetch product data from Akeneo into Hygraph. [Source]
How do I install and configure the Akeneo app in Hygraph?
To install the Akeneo app in Hygraph, visit the Hygraph Marketplace and select the Akeneo integration. Click "Install Akeneo for Hygraph" and follow the instructions in the integration guide. After installation, you can add the Akeneo Field Picker to your product model to fetch product data from Akeneo. [Source]
Can I use an existing Hygraph project for this recipe?
Yes, you can use either a new Hygraph project or an existing one. If you use an existing project, you may need to adjust the tutorial steps to fit your current schema. Make sure to consider your plan limits when adding new models or fields. [Source]
Features & Capabilities
What fields are included in the Product Page Akeneo model?
The Product Page Akeneo model typically includes the following fields:
Product information (Akeneo Field Picker, fetches data from Akeneo PIM)
Related products (reference field to link related product entries)
These fields allow editors to combine data from Akeneo with additional content in Hygraph. [Source]
Can editors add additional content to product pages fetched from Akeneo?
Yes, editors can add supplementary content such as images, promotional text, or alternative product information in Hygraph. The model is designed to allow editors to enhance Akeneo product data with additional fields, which can be used for product listings, special offers, or related product links. [Source]
How does the reference field for related products work?
The reference field in the Product Page Akeneo model allows editors to link related product entries. By configuring the reference to allow multiple entries from the same model, editors can easily create relationships between products, which is useful for cross-selling or displaying related items on the frontend. [Source]
Technical Requirements & Implementation
What technical knowledge is required to use the Product Page with Akeneo recipe?
You should have some familiarity with Akeneo and have product data already set up in your Akeneo account. Basic knowledge of Hygraph's schema builder and content modeling is also helpful. The guide is designed to be accessible, but some experience with both platforms will make the process smoother. [Source]
Is there a way to preview the final content form before building?
Yes, the documentation provides a mock image and a GIF showing what the resulting content form will look like after following the tutorial. This helps you visualize the editor experience and the integration with Akeneo. [Source]
Can I clone a sample project instead of building from scratch?
Yes, if you prefer not to follow the step-by-step process, you can clone the entire Product Pages Cookbook project. This allows you to explore the setup, compare recipes, and see example implementations without manual configuration. [Source]
Support & Documentation
Where can I find more help or suggest improvements for the Product Page with Akeneo recipe?
You can join the Hygraph Community Slack to ask questions, get support, or suggest new recipe ideas. The documentation also links to official guides and video tutorials for additional help. [Source]
Is there a video tutorial for the Product Page with Akeneo integration?
Yes, there is a video tutorial available on YouTube that follows the same step-by-step process as the documentation. This can help you visualize the integration and setup process. [Source]
Security & Compliance
What security and compliance certifications does Hygraph have?
Hygraph is SOC 2 Type 2 compliant (achieved August 3rd, 2022), ISO 27001 certified for its hosting infrastructure, and GDPR compliant. These certifications demonstrate Hygraph's commitment to providing a secure and compliant platform for its users. [Source]
What security features are available in Hygraph?
Hygraph offers granular permissions, SSO integrations, audit logs, encryption (at rest and in transit), and regular data backups. Enterprise customers benefit from dedicated hosting, custom SLAs, and support for compliance with regulations like GDPR and CCPA. [Source]
Performance & Reliability
How does Hygraph ensure high performance for content delivery?
Hygraph uses features like Smart Edge Cache for enhanced performance and faster content delivery, high-performance endpoints for reliability and speed, and provides practical advice for developers to optimize GraphQL API usage. These features are designed to support high-traffic, global audiences. [Source]
Support & Onboarding
What support options are available for Hygraph users?
Hygraph provides 24/7 support via chat, email, and phone, real-time troubleshooting through Intercom chat, a community Slack channel, extensive documentation, webinars, live streams, and how-to videos. Enterprise customers receive a dedicated Customer Success Manager and a structured onboarding process. [Source]
How easy is it to get started with Hygraph and the Akeneo integration?
Hygraph is designed for easy onboarding. You can start immediately with a free API playground or developer account, follow the structured onboarding process, and access detailed guides and tutorials. The Akeneo integration is supported by step-by-step documentation and video tutorials. [Source]
This guide shows how to create a Product model in Hygraph that fetches product information from an external PIM (Akeneo) via app integrations.
Companies often store their product information in a PIM, which helps them keep it consistent across different platforms. Using Akeneo, one of our integrated apps, you can send CMS and product information to your frontend with a single API call.
Using this information directly from the PIM ensures you won't have to keep track of PIM information updates being replicated in the CMS, reducing the chance of error and discrepancies.
This recipe is a great option if you are already using Akeneo as your external PIM. You should have some Akeneo knowledge and some product data already set up in your Akeneo account to use this recipe.
This mock image shows what a frontend using this setup could look like:
REQUIRED: You must have an Akeneo account. If you don't have one yet, you can start a free trial here or request a demo here.
REQUIRED: You must have your Akeneo PIM ready. Your PIM is the URL of your Akeneo account. You can copy it from the browser directly; it should look similar to this https://<YOUR-PROJECT-NAME>.cloud.akeneo.com/.
REQUIRED: You must create connection settings for your Hygraph project. To do this, go to Connect > Connection settings in your Akeneo dashboard, and click Create. You'll need to provide a Label and a Code to identify the app, then use the Flow type dropdown to select Data source.
This takes you to your Akeneo credentials: the Client ID, Secret, Username, and Password. Akeneo will show you your Secret and Password credentials only once, so make sure you save them somewhere.
Use this guide to create a Product Page model. You have two options:
OPTION 1:Create a project. This is the way to go if you want to follow the entire tutorial for learning purposes.
OPTION 2:Use an existing project of yours. This is the way to go if you already have a project and want to add this model. In this case, you may need to adjust parts of the tutorial to your own project schema.
Take plan limits into consideration when adding a recipe to your own project.
This is the way to go if you're curious about how we built the Product Pages but don't want to follow the step-by-step creation process. This project contains the entire Product Page Cookbook so you can compare recipes or look into what instances they contain.
In this guide, you'll work with different schema elements to create a Product Page model. Let's look into them:
Model: Your schema is the content structure of your project. You can define your schema by creating models, adding fields, reusable components, and sidebar widgets, integrating remote sources, and establishing relationships with other models.
Apps: Apps are a core aspect of Hygraph's extensibility. They extend the capabilities of your Hygraph project by bringing in functionality from tools and services you're accustomed to using within your workflows.
To create the product model, navigate to the Schema builder and click +Add next to Models. Use the following information:
Field
Input
Display name
Product Page Akeneo
API ID
ProductPageAkeneo
API ID Plural
ProductPagesAkeneo
Description
This product page model uses an app to fetch information from your Akeneo PIM
Click Add Model to save.
Now that the model has been created, you can start adding fields to it. As the product information lives outside of the CMS, this model does not need to have a large number of fields. Besides the app fields that we're going to add, we will also add a name, title, slug and asset picker, so editors can add alternative information to go along with some of the information living in the PIM.
You can make your frontend take the alternative data when offered; that way editors can use the product information in the PIM not only for product listings but also for promotional content such as product special offers.
We will also add a reference field that will allow editors to link related products in the content form.
Let's start with the name. Add a Single line text field from the right sidebar, and use the following information:
Tab
Field
Input
Settings
Display name
Product name
Settings
API ID
productName
Settings
Use as title field
Leave this checkbox selected
Validations
Make field required
Select this checkbox
Click Add to save.
We want the name to be a required field as it only exists so that editors can easily identify products in the content table when adding related products to a content entry.
The other fields (title, slug and asset picker) will not be required, because this is additional information that editors may or may not add for the frontend to pick up.
Let's continue with the product title. Add a Single line text field from the right sidebar, and use the following information:
Tab
Field
Input
Settings
Display name
Product title
Settings
API ID
productTitle
Click Add to save.
Next, we'll add the slug. Add a Slug field from the right sidebar, and use the following information:
Tab
Field
Input
Settings
Display name
Product slug
Settings
API ID
productSlug
Settings
Lowercase
Leave this checkbox selected
Validations
Set field as unique
Select this checkbox
Validations
Match a specific pattern
Select this checkbox, and then select Slug from the dropdown. You don't need to modify the pattern. Under Custom error message, write “Input value does not match the expected format.”
Click Add to save.
Next, you want editors to be able to include at least one image in the content form. Add an Asset picker field from the right sidebar, using the following information:
Tab
Field
Input
Settings
Display name
Product image
Settings
API ID
productImage
Settings
Allow multiple assets
Select this checkbox
Settings
Description
You can add images here
Click Add to save.
After installing the Akeneo app, an app field became available to add to our models. Find the Akeneo Field Picker on the right sidebar and click Add on the field card.
Use the following information:
Tab
Field
Input
Settings
Display name
Product information
Settings
API ID
productInformation
Settings
Description
You can select a product here
Click Add to save.
We're not allowing multiple values here, because we want to select only one product from the PIM per product entry in the CMS. If your workflow requires that you add more than one product from the PIM per product entry, you could alternatively select the Allow multiple values checkbox in the field configuration screen.
Finally we'll add a Reference field so that editors have the possibility to link related product entries. Use the following information:
Tab
Field
Input
Define
Allow only one model to be referenced
Select this radio button.
Define
Model to reference
use the dropdown to select Product Page Akeneo
Define
Reference direction
Use the radio button to select One-way reference
Define
Relation cardinality
One to many
Define
Allow multiple Product Page Akeneo per Product Page Akeneo
Select this checkbox
Configure
Display name
Related products
Configure
API ID
relatedProducts
Configure
Description
You can add related products here
Click Add to save.
Pro Tip
This reference configuration will allow editors to add links to multiple content entries, but only from the same model.
If you want editors to select entries from more than one model, you should configure the reference to Allow multiple models to be referenced.
If you want your editors to add more than one entry from each model, you will need to select all the Allow multiple checkboxes as well.
This is how you build a Product model that uses an app to fetch data from the Akeneo PIM.
When editors create product content entries, they will be able to use the Akeneo product picker to select the products that you have stored in the external PIM. You can send all this information, along with the data already in the CMS, to your front end with a single API call.