AnQiCMS (AnQiCMS) is an efficient enterprise-level content management system that not only provides powerful content publishing and management functions, but also has put a lot of effort into SEO optimization.For e-commerce websites or enterprises with product display needs, how to make search engines better understand and display your products, obtain higher click-through rates and conversion rates, is the key to successful operation.In this, Json-LD structured data, especiallyProductType, playing an indispensable role.

Today, let's delve into how to cleverly create in the product detail page of AnQiCMS.ProductA type of JSON-LD structured data that enhances product search engine visibility and rich result display.

Unlock SEO Potential: Understanding Json-LD and Product Types

Under the context of content operation, Json-LD (JavaScript Object Notation for Linked Data) is a structured data format commonly recommended by search engines.It allows us to embed data that is easy for machines to read in web pages, helping search engines to understand page content more accurately.Imagine if, when users search for your product on Google, they can see the product's star rating, price, stock status, and even a striking image directly. Wouldn't that attract their attention more?This is the charm of rich results (Rich Snippets) brought by Json-LD.

For product detail pages, the core focus is on Schema.org-basedProductType. It has a series of recommendations and required properties, such as the product name, description, image, brand, SKU, and most importantly, the quotation (offers) information. Use it correctlyProductStructured data, can significantly improve the competitiveness of products in search results.

AnQiCMS's structured data tool:jsonLdTag

AnQiCMS is well aware of the importance of structured data and provides convenient built-in support for it. It not only may default to generating some basic Json-LD data, but also providesjsonLdtags (refer totag-jsonLd.mdDocument), allowing operators to highly customize and extend structured data.

ThisjsonLdThe tag is very intelligent, you can wrap your custom Json-LD code inside it.AnQiCMS will automatically merge your custom content with the system-generated part.This means that if the field you define conflicts with the system default field, your custom content will take precedence over the default value, providing you with ultimate flexibility.

Practice steps for building Json-LD of Product type.

Now, let's step by step build a fully functionalProducttype of Json-LD structured data.

First step: prepare product data, ensure the content is complete

In AnQiCMS, product information is usually stored in the "Content Management" module under the "Product Model". To generate high-quality Json-LD, you need to ensure that the following information about the product is complete and accurate in the background:

  • Product Name (Title): A clear and accurate full name of the product.
  • Product Description (Description): A concise and clear overview of the product.
  • Product Image (Images/Logo): High-quality main product image and multiple detail images. AnQiCMS'archiveDetailtags can be obtainedLogo(Main Image) andImages(Group Image).
  • Price (Price): The selling price of the product.
  • Stock: The stock quantity of the product, which is crucial foroffersofavailabilitythis attribute.
  • BrandIf the product has a specific brand, consider adding a custom field to the content model to store it.
  • SKU, MPN, GTINThese are product identification codes, which are usually also added through the custom fields of the content model.

You can go through the "Content Model Usage Help" (help-content-module.md) The document adds the required custom fields for the product model, such as "Brand", "SKU", "Unified Product Code (GTIN)", etc.

Step two: Write Json-LD code (take the product detail page as an example)

In the AnQiCMS template files, such as the product model detail page template (usually){模型table}/detail.htmlsuch asproduct/detail.htmlFor referencedesign-director.md),You can write Json-LD code like this. We will use AnQiCMS template tags (such asarchiveDetail/system/contactandarchiveParams) to dynamically fill in the data.

”`twig {% Ld %}