How to enhance the display of structured data on the page with AnQiCMS's Json-LD custom call tag?

Calendar 👁️ 51

As an experienced security CMS website operator, I know the power of content in the digital world.High-quality content is the foundation for attracting and retaining users, and how to make this content better understood and displayed by search engines is one of the core issues for our operations staff.Today, I want to delve deeply into the Anqi CMS Json-LD custom call tag, and how it has become a powerful tool for us to enhance the structured data display of our web pages.

Understanding the importance of structured data and Json-LD

Today, with the increasing sophistication of digital marketing, every page and article we create carries specific information.Relying solely on traditional SEO optimization, such as keyword layout and high-quality backlinks, is no longer enough to stand out in the highly competitive search results.Search engines are becoming more "smart", longing to understand the meaning and entity relationships of our web content more directly and clearly.This is where structured data comes into play.

Structured data is a standardized format for providing explicit information about the content of a page to search engines.It helps search engines better understand web content, which may be displayed in search results as rich media summaries (Rich Snippets), such as the publication date, author, rating, product price, inventory, and so on.This enhanced display format not only significantly increases our content's click-through rate (CTR), but also provides more value before the user clicks and establishes an initial sense of trust.

Json-LD (JavaScript Object Notation for Linked Data) is the structured data format recommended by mainstream search engines like Google.It is embedded in the HTML page as a JSON code block, clearly describing the entities and their properties on the page without interfering with the original rendering and layout.AnQi CMS knows this, and therefore provides powerful functions to support the implementation of Json-LD.

Support for structured data of AnQi CMS

The Anqi CMS fully considered SEO-friendliness from the beginning of its design.It includes advanced SEO tools such as Sitemap generation, TDK configuration, and pseudo-static rules, laying a solid foundation for the search engine optimization of website content.On this basis, Anqi CMS also provides the default generation function for structured data.After the background enables the structured data feature, the system will automatically insert a basic Json-LD code block into the page, helping search engines identify the basic types of the page (such as article pages) and core information.

However, for operators who pursue extreme optimization, the default generated structured data may not fully meet all business scenario requirements.For example, a product introduction page may require more detailed product properties (SKU, brand, reviews), and an event page may require detailed event time, location, and participation methods.This is when the Json-LD custom tag of AnQi CMS has become our tool for refined control of structured data.

Master the Json-LD custom call tag: the starting point of fine control

Provided by AnQi CMS{% jsonLd %} ... {% endjsonLd %}Labels, giving us the flexibility to go beyond the default settings.This tag allows us to define or modify the Json-LD data output on the page directly.The principle of its operation is very clever: the Json-LD code written inside this tag will be merged with the structured data generated by the default Anqi CMS system.If the custom field conflicts with the default field, the custom field will take precedence over the default field to ensure we can fully control the final structured data output.

This means that we can accurately construct the required Json-LD Schema based on the specific type of page content and marketing objectives.No matter whether it is a complex "Product" Schema, an "Article" Schema containing author and publication date, or a "LocalBusiness" Schema describing local services, we can achieve it through this tag.

Enhancing the core advantages of structured data display on the page

By{% jsonLd %}By customizing call tags, we can achieve significant enhancement of structured data display, and its core advantages are reflected in the following aspects:

First, it isUnmatched flexibility and accuracy.Each page is unique, and the core information it aims to convey to search engines is also different.Custom tags allow us to break free from generic templates and tailor the Schema types and properties to best fit the content semantics of each page.{% archiveDetail %}Tag to get data, and then fill it into the customizedProductIn the schema, this directly displays the key information of the product in the search results, greatly enhancing the user's purchase intention.

Secondly, it caneffectively enhance the search engine's understanding of the content..When search engines crawl and index web pages, Json-LD provides a detailed 'map' that guides them to understand entities, properties, and their relationships on the page.By customizing the Schema, we can more accurately tell the search engine what this content is about and where its core value lies.This precise semantic expression helps search engines match user queries more accurately, thus presenting our content to the most relevant audience.

Again, it isPromote the display of rich media summaries, greatly improve click-through rate.This is the most direct and most attractive benefit.When our content is presented in the form of rich media summaries (such as star ratings, images, prices, and release dates) in search results, it will be more prominent and attractive than ordinary links.This visual advantage can significantly increase the likelihood that users will click on our page, even if it is not ranked first, and may also attract more traffic due to rich media summaries.

Finally, itStrengthened the control of content creators and operatorsAs operation personnel, we have the deepest understanding of content value and target audience.{% jsonLd %}Label empowers us, directly transform this understanding into language that search engines can understand.We can quickly adjust and optimize structured data based on market feedback and changes in SEO strategy, achieving fine-grained operation of search results display and ensuring that every bit of content effort is maximized in return.

Actual operation and template example

Assuming we have a product detail page, we want to display the product name, image, price, and brand in the search results. The product model of AnQi CMS may already contain this data, and we can use it by{% archiveDetail %}tags to obtain.

{# 假设我们正在一个产品详情页,并已获取当前产品的详细信息 #}
{% archiveDetail productTitle with name="Title" %}
{% archiveDetail productDescription with name="Description" %}
{% archiveDetail productLogo with name="Logo" %}
{% archiveDetail productPrice with name="Price" %}
{% archiveDetail productBrand with name="Brand" %} {# 假设“Brand”是产品模型的自定义字段 #}

{% jsonLd %}
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "{{ productTitle }}",
  "image": "{{ productLogo }}",
  "description": "{{ productDescription }}",
  "brand": {
    "@type": "Brand",
    "name": "{{ productBrand }}"
  },
  "offers": {
    "@type": "Offer",
    "priceCurrency": "USD", {# 假设货币是美元,可根据实际情况调整 #}
    "price": "{{ productPrice }}",
    "itemCondition": "https://schema.org/NewCondition",
    "availability": "https://schema.org/InStock" {# 假设产品有库存 #}
  }
}
</script>
{% endjsonLd %}

This example demonstrates how to use the variables existing in the Anqi CMS template (via{% archiveDetail %}obtained"), and dynamically fill them into the customizedProductIn the Schema. This way, even if the default Json-LD of Anqi CMS does not have detailed output for product types, we can easily achieve it through custom tags.

If we need to override the default generated author information, or add specific comment quantity information to the article, we can do this too:

{# 假设文章ID为archive.Id,评论数量通过archiveDetail获取 #}
{% archiveDetail archiveCommentCount with name="CommentCount" %}

{% jsonLd %}
<script type="application/ld+json">
{
  "author": {
    "@type": "Person",
    "name": "安企CMS运营团队" {# 覆盖默认作者信息 #}
  },
  "commentCount": "{{ archiveCommentCount }}" {# 添加评论数量 #}
}
</script>
{% endjsonLd %}

Points to note in practice

While using{% jsonLd %}When customizing tag calls, there are several key points we need to remember:

first, The correctness of Json-LD syntax is crucial.Any small syntactic error can cause structured data to be invalid, and search engines will not be able to parse it correctly.When writing or modifying Json-LD code, be sure to check the JSON format carefully and ensure that the property names and types defined by Schema.org are accurate and correct.

secondly,Make full use of existing CMS data.AnQi CMS provides rich tags to obtain articles, products, categories, system settings, and other information.When building Json-LD, it is best to dynamically call this data as much as possible rather than hardcoding it.{{ system.SiteName }}To obtain the website name, use{{ archive.Title }}Get the article title, which ensures that structured data is consistent with page content and reduces manual maintenance work.

Finally,Use the validation tool for testing..Before the page is published and launched, or after any changes are made to the template, it is strongly recommended to use Google's "Rich Media Search Results Test" tool (Rich Results Test) to verify that the Json-LD on our page is valid, whether there are any warnings or errors, and whether it can generate a rich media summary preview.This can help us quickly identify and correct problems, ensuring that structured data works as expected.

Summary

The Json-LD custom call tag of AnQi CMS provides a powerful and flexible tool for website operators to fine-tune and optimize the display of structured data on the page.It is not only the key to improving SEO performance and obtaining rich media abstracts, but also an important means for us to 'tell' the story of the page content to search engines and accurately convey the intention of the information.Master and effectively use this tag, and your website content will stand out among a sea of information, attracting more target users and achieving better operational results.


Frequently Asked Questions (FAQ)

Question 1: If I customize Json-LD, will the structured data generated by Anqi CMS by default still exist? Will there be any conflicts?

Answer: Anqi CMS'{% jsonLd %}The custom tag is designed to merge with the Json-LD data generated by the system. This means that if you customize a field (for exampleauthor), it will override the default generatedauthorfield.And you do not have a custom field, the system will still output the default generated Json-LD data.So, as long as you follow the Json-LD syntax specifications, there usually will not be any conflicts, but will merge or override according to your settings.

How do I know if my custom Json-LD is valid or if it will display as rich media summary?

Answer: You can use the 'Rich Media Search Results Test' tool provided by Google (Google Rich Results Test).Enter the URL of your page or paste the Json-LD code, and the tool will analyze your structured data, point out any errors or warnings, and display the rich media summary that your page may appear in search results.

Question 3: Will custom Json-LD affect the page loading speed of the website?

Answer: Json-LD code is typically used toscriptLabels embedded in HTML and have relatively less code.In most cases, correctly written and embedded Json-LD has a negligible impact on page loading speed, almost negligible.The SEO and user experience benefits it brings far outweigh the minor impact it may have on performance.

Related articles

How to implement quick multilingual switching of template content with translation tags in AnQiCMS?

As a senior AnQiCMS website operations personnel, I am well aware of the core status of content in website operations, especially under the wave of globalization, the rapid switching of multilingual content is crucial for user experience and market expansion.AnQiCMS provides a powerful and concise multilingual support mechanism, with its core being the flexible use of translation tags `{% tr %}` to quickly switch the multilingual content of templates.

2025-11-06

How to use conditional judgment (if) and loop traversal (for) tags for data rendering in AnQiCMS templates?

As an experienced Anqi CMS website operations personnel, I know that flexible content presentation is crucial for attracting and retaining users.AnQiCMS is a powerful template engine, especially its conditional judgment (`if`) and loop traversal (`for`) tags, which are the core tools for realizing dynamic content rendering.They allow websites to display information flexibly according to data status and business logic while maintaining consistency in content structure.

2025-11-06

How to get the previous, next article and related documents with AnQiCMS template tags?

As a senior CMS website operation personnel in the security industry, I fully understand the importance of content in attracting and retaining users.Efficient content management and elegant user experience are the foundation of a successful website.In AnQiCMS, the flexible template tag system is the key to achieving this goal.Today, I will give you a detailed introduction on how to use AnQiCMS template tags to cleverly obtain the previous and next articles and related documents, thus optimizing your content layout, improving user experience and the website's SEO performance.### Optimize User Navigation: Get Previous Document On Article Detail Page

2025-11-06

How to obtain the current page's TDK information in AnQiCMS template and perform SEO optimization?

As an experienced website operator who deeply understands the operation of AnQiCMS, I have a very good understanding of the core value of TDK (Title, Description, Keywords) information for website search engine optimization (SEO).High-quality TDK is not only the key for search engines to understand the content of the page, but also the foundation for attracting users to click, improving website traffic and conversion rates.AnQiCMS as an enterprise-level content management system took full consideration of SEO requirements from the very beginning, providing a powerful and flexible TDK management and template calling mechanism.###

2025-11-06

What specific SEO elements does the "Home TDK" in AnQiCMS refer to?

As an experienced website operator, I know that Search Engine Optimization (SEO) is the key to the success of a website, and the setting of the TDK (Title, Description, Keywords) on the homepage is the foundation for our SEO work.AnQiCMS is a system focused on efficient content management, which fully considers SEO requirements from the beginning of its design, providing us with a simple and powerful TDK configuration function.I will elaborate in detail on the specific SEO elements and their operational significance referred to by the home page TDK in AnQiCMS

2025-11-06

How to find and enter the 'Home TDK Settings' area in the AnQiCMS backend?

In the AnQiCMS backend management, finding and entering the "Homepage TDK Settings" area is a key step for website operators to perform basic SEO optimization.These settings directly affect the display effect of the homepage in search engine results and are an important factor in attracting potential users to visit.As an experienced website operator proficient in AnQiCMS, I will guide you through this operation effortlessly.First, make sure you have successfully installed and run the AnQiCMS website and have the login credentials for the administrator account.To access the AnQiCMS admin interface

2025-11-06

How to fill in the Title on AnQiCMS homepage to achieve **SEO effects?

As an experienced website operator who understands the operation of AnQiCMS, I am well aware of the importance of the homepage title (Title) for achieving ideal rankings in search engines.A meticulously optimized homepage title, not only attracting potential users to click, but also clearly conveying the core value of the website to search engines.In AnQiCMS, we have a dedicated module to manage this core SEO element, filling it out properly can lay a solid foundation for the long-term development of the website.

2025-11-06

What is the impact of AnQiCMS home page keyword (Keywords) settings on search engine ranking?

Hello! As an experienced AnQi CMS website operations personnel, I am glad to give you a detailed explanation of the impact of AnQi CMS homepage keyword (Keywords) settings on search engine ranking.This is a topic that has long existed in the SEO field and is constantly evolving. It is crucial to understand its role in AnQiCMS and the operation of modern search engines.### Keyword setting of AnQiCMS homepage and its role in search engine ranking We attach great importance to SEO optimization in the AnQiCMS system

2025-11-06