As a website operator who deeply understands the operation of AnQiCMS, I fully understand 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 and improving website traffic and conversion rates.AnQiCMS as an enterprise-level content management system, from the beginning of its design, has fully considered SEO requirements and provided powerful and flexible TDK management and template calling mechanisms.

The management and importance of TDK in AnQiCMS

AnQiCMS integrates TDK settings into all aspects of content management, ensuring that each page of content has accurate metadata.This includes but is not limited to the homepage, article detail page, category list page, single page, and tag aggregation page.By fine-tuning the TDK configuration, the website can accurately convey the page theme to search engines, improve its ranking in search results, and attract users to visit with engaging titles and descriptions.

For the website homepage, AnQiCMS allows operators to uniformly configure the website's Title, Keywords, and Description through the "Homepage TDK Settings" in the background.This provides global control for the shaping of the brand image and the highlighting of core business keywords.On the content level, whether it is publishing new articles, products, or managing categories and single pages, the system provides independent SEO title, keywords, and introduction fields.These fields allow operators to customize SEO copywriting for specific content, avoiding the negative impact of duplicate content on SEO and enabling more precise matching of user search intent.For example, when adding a document, there are special fields for 'SEO Title', 'Document Keywords', and 'Document Description';In the "Document Classification" management, "SEO title", "keywords", and "category introduction" are also provided.Similarly, 'Single Page Management' and 'Document Tag' also have similar TDK customization functions.

AnQiCMS also supports pseudo-static rules and 301 redirect management, ensuring the friendliness of the URL structure, which is crucial for search engine crawling and indexing.At the same time, advanced SEO tools such as Sitemap generation, keyword library management, and more, also provide strong support for the implementation of TDK strategies.

Get TDK information in AnQiCMS template

AnQiCMS template system is based on Django template engine syntax, providing powerful tags to dynamically obtain page TDK information. Among them, the 'Universal TDK tag'tdkIt is the core tool we use to obtain the current page TDK information in the template, which can intelligently obtain and output the corresponding TDK data according to the type of the current page (home page, article, category, single page, tag, etc.)

Get page title (Title)

In<head>Within the tag, we need to dynamically set the page title. UsetdkThe tag for getting the page title is very intuitive. By default, it will get the optimized title of the current page.

<title>{% tdk with name="Title" %}</title>

In order to better showcase the brand and SEO, we may need to add the website name after the title.tdkTags providedsiteNameThe parameter, when set totrueWhen it is, the website name will be automatically appended to the page title. We can also customize the separator for the title, bysepparameter to set, for example using an underscore_As a separator. In addition, if you need to display the title of the parent category for the category page, you canshowParentthis parameter.

{# 显示网站名称后缀,使用短横线作为分隔符(默认行为) #}
<title>{% tdk with name="Title" siteName=true %}</title>

{# 使用下划线作为分隔符 #}
<title>{% tdk with name="Title" sep="_" %}</title>

{# 对于分类页面,显示父级分类的标题 #}
<title>{% tdk with name="Title" showParent=true %}</title>

Obtain page keywords (Keywords)

Page keywords are important clues for search engines to understand the theme of a page, although their weight has decreased, a reasonable setting is still beneficial. BytdkTag, we can easily get the keywords of the current page.

<meta name="keywords" content="{% tdk with name="Keywords" %}">

Get page description (Description)

The page description is the content summary that users see in search results, directly affecting the click-through rate. An attractive description can effectively enhance the exposure effect of the page.

<meta name="description" content="{% tdk with name="Description" %}">

Get the canonical URL of the page

Standard links are crucial for resolving content duplication issues, as they inform search engines which is the 'authoritative' version of the page.AnQiCMS also provides a mechanism for obtaining standard links.As not all pages must set up standard links, we usually first check if they exist.

{%- tdk canonical with name="CanonicalUrl" %}
{%- if canonical %}
<link rel="canonical" href="{{canonical}}" />
{%- endif %}

excepttdkUniversal tags, for specific content types, we can also directly obtain TDK information through their detail tags. For example,archiveDetail/categoryDetail/pageDetailandtagDetailsuch tags also provide direct accessSeoTitle/Keywords/DescriptionThe ability of fields, which is very useful in some customized scenarios. However,tdkThe advantage of tags lies in their versatility and intelligent judgment, they can automatically obtain the most suitable TDK information according to the current page context.

SEO optimization strategy for TDK information

Effectively manage and call TDK information in AnQiCMS, which is a key step in achieving website SEO optimization.But it's not enough to just obtain and display this information, what's more important is how to use it strategically.

Make full use of the "Keyword Library Management" function of AnQiCMS, and conducting a detailed keyword research is the basis for formulating TDK strategy.By analyzing user search habits and industry hotwords, select keywords with high relevance and moderate search volume, and arrange them reasonably in the title, description, and content of the page.AnQiCMS also supports functions such as 'Keyword Auto-Expansion' and 'Keyword Auto-Capture', which can help operation personnel build and maintain a keyword library more efficiently.

When writing a page title, make sure it contains core keywords and is also attractive to click on.The title length should be within the range suggested by the search engine and avoid keyword stacking.The "SEO Title" field provided by AnQiCMS is specifically designed for this purpose, allowing us to write a dedicated optimized title for each page to be displayed in search engines, rather than just using the default title of the article or category.

The optimization of the description is equally important. A high-quality Meta Description should not only contain keywords but also provide a concise, engaging summary of the page content to spark user interest.It should be like a mini-ad, accurately conveying the value of the page.The "Document Introduction", "Category Introduction", and other fields of AnQiCMS provide direct editing access.

The correct use of the canonical URL can avoid duplicate content issues caused by URL parameters, multi-version pages (such as mobile version and PC version with the same content but different URLs), etc., and concentrate the SEO weight of the page. AnQiCMS provides the 'canonical link' field in document and category settings, combined with the template intdkThe label, it can ensure that the search engine correctly identifies the main page.

In addition, AnQiCMS's 'pseudo-static rules' can optimize the URL structure, making it more readable and semantically meaningful, which helps search engines better understand the content of the page.Regularly generate Sitemap and configure Robots.txt, which can guide search engine spiders to efficiently crawl and index website content, avoiding unnecessary crawling waste.

By combining these features and strategies, AnQiCMS not only simplifies the management process of TDK, but also empowers website operators to continuously improve the performance of their websites in search engines through professional SEO means.


Frequently Asked Questions (FAQ)

When using AnQiCMS to manage and optimize TDK, website operators may encounter some common problems.

1. Why is my page TDK information not displaying or updating correctly?

First, please check if you have filled in the SEO title, keywords, and description fields correctly in the corresponding content editing interface of AnQiCMS backend (such as document editing, category editing, single page editing, homepage TDK settings).If the content has been saved but the front-end template has not been updated, it may be a browser cache issue. Please try clearing the browser cache or accessing in incognito mode.Also, please confirm that you have used the correct in the template filetdkFor example, use the tags to call this information, such as<title>{% tdk with name="Title" %}</title>. If you have set a custom template for a specific page, please also check if the custom template includes the TDK call tag.

How to ensure that different types of pages (such as articles, categories, single pages) have unique TDKs?

AnQiCMS was designed with this in mind. You can set unique TDK for different pages in the following way:

  • home page TDKIn AnQiCMS backend, go to "Backend Settings" -> "Home TDK Settings" for global configuration.
  • Article/Product TDKIn the 'Content Management' -> 'Publish Document' or 'Edit Document', fill in the 'SEO Title', 'Document Keywords', and 'Document Description'.
  • Category Page TDKWhen editing categories under "Content Management" -> "Document Categories" -> "Edit Categories", fill in the "SEO Title", "Keywords", and "Category Description".
  • Single Page TDKFill in "SEO Title", "Keywords", and "Single Page Description" when accessing "Page Resources" -> "Page Management" -> "Edit Page".
  • Tab TDKWhen in 'Content Management' -> 'Document Tags' -> 'Edit Tags', fill in 'SEO Title', 'Tag Keywords', and 'Tag Description'. AnQiCMS'stdkTags automatically retrieve and output the most relevant TDK information based on the context of the current page (for example, whether it is an article detail page, category list page, etc.), ensuring that each page has its unique metadata.

3. The TDK tag containssiteName/sep/showParentWhat is the role of these parameters, and how should I use them?

These parameters provide more refined TDK customization capabilities, especially when dealing with page titles:

  • siteName=trueWhen you want to automatically add the website name at the end of the page title (usually for brand exposure), use it.For example, the article title will become "Article Title - Your Website Name."
  • sep="_": Used to customize the separator between the website name and page title. The default separator is a hyphen.-You can change it to an underscore according to your brand preference or SEO habits._etc.
  • showParent=true: It is mainly used for the title of the category page. When set totrueIt will display the title of the parent category before the current category title, which helps to build a richer title hierarchy, and may be helpful for covering long-tail keywords.

The reasonable use of these parameters can make your page title more readable and SEO-friendly, please configure selectively according to your specific SEO strategy and website design requirements.