As an experienced CMS website operation personnel for an information security company, I am well aware of the core role of content in website construction and SEO optimization.The TDK (Title, Description, Keywords) tag is an important basis for search engines to understand page content and determine page relevance, as well as the information that users see first on the search results page.Efficiently setting and optimizing TDK is crucial for attracting target users and improving website ranking.AnQi CMS provides us with flexible and powerful TDK management functions, allowing us to finely control the metadata of each page.

Overview of TDK settings in AnQiCMS

In AnQi CMS, the TDK settings follow the principle of hierarchical management, with both global website homepage TDK configurations and refined settings for specific content pages, ensuring that we can flexibly adjust according to different content types and optimization goals.

Website Home Page TDK ConfigurationThe website's homepage TDK usually represents the core business and brand positioning of the entire site.In the background management interface of Anqi CMS, we can enter the 'Background Settings' under 'Home Page TDK Settings' through the navigation menu to configure the title, keywords, and description of the website homepage.

  • Home Page TitleThis is the main title displayed in the browser tab and search results for the website's homepage. When writing, it should include the brand name and core business keywords, aiming to accurately summarize the theme of the website.
  • Home page keywordAlthough the weight of keywords in modern SEO has decreased, they can still be set in the Anqi CMS.Suggest filling in core keywords highly relevant to the overall content of the website, separated by English commas.
  • Homepage descriptionThis is the summary information displayed on the website homepage in search results. It should attract users to click and accurately convey the value of the website, including key information and a call to action.

Content-level TDK ManagementIn addition to the homepage, Anqi CMS also allows us to set independent TDGs for various content types on the website, including documents (articles, products, etc.), category pages, single pages, and tag pages.This provides great convenience for us to carry out detailed page-level SEO optimization.

  • Document TDKIn the process of adding or editing documents, such as articles or product detail pages, we can find fields such as 'SEO Title', 'Document Keywords', and 'Document Summary' in the editing interface.
    • SEO title【en】:Used to override the default document title, usually for optimization purposes, and includes core keywords.
    • Document keywords【en】:Enter keywords closely related to the content of the document, separated by English commas.
    • Document SummaryThe system will automatically extract the first 150 characters of the document content as the default summary, but we can also manually write a more attractive and keyword-rich description.
  • Category TDKFor the category page of articles or products, in the 'Document Category' management interface, each category can be set with 'SEO Title', 'Keywords', and 'Category Description'.These settings will be applied to all document list pages under this category.
  • Single Page TDKFor independent single pages such as 'About Us' and 'Contact Us', we can set 'SEO Title', 'Keywords', and 'Single Page Introduction' for them in 'Page Management'.
  • Tag TDKThe tag feature of AnQi CMS is powerful, each tab can also be independently set with 'SEO Title', 'Tag Keywords', and 'Tag Description', which helps optimize long-tail keywords.

These content-level TDK settings have a higher priority than the global settings on the website homepage, ensuring that the metadata of each specific page accurately reflects its content, thereby achieving better search performance.

UtilizetdkTags implement the flexible invocation of TDK in the template

In the template system of AnQi CMS,tdk

Page Title (<title>) setting and appending the site nameThe page title is the most important element in TDK, directly affecting click-through rate and ranking. UsetdkThe basic syntax for calling the page title tag is{% tdk with name="Title" %}.

To achieve adding the website name to the title,tdkTags providesiteNameProperty. When we want to automatically add the website name after the page title, we just need tositeNamesettrue:

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

this partsiteName=trueWill intelligently obtain the website name from the system settings and append it to the end of the current page title. In addition, we can alsosepAttribute custom separator between title and website name, default is hyphen-:

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

For category or document detail pages, we may also need to reflect the parent structure in the title, at this timeshowParentProperties come into play:

{# 显示父级分类标题 #}
<title>{% tdk with name="Title" siteName=true showParent=true %}</title>

Page keywords (<meta name="keywords">) configurationPage keywords aremetaLabel presentation, although its direct impact on SEO is not as strong as before, it is still a way to convey the page theme to search engines. In Anqi CMS, we can call the page keywords in the following way:

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

tdkThe tag will automatically retrieve the keywords set on the current page (whether it is the homepage, document page, category page, or tag page).

Page Description (<meta name="description">(for optimization)The page description is an abstract in the search results, its writing quality directly affects the user's willingness to click. ThroughtdkThe tag calls the page description in a way similar to keywords:

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

The system will first obtain the description configured on the current page, if not set, it will be filled according to the default rules (such as document summary).

Standard link (<link rel="canonical">) usageThe规范链接 is an important SEO element, used to address content duplication issues, specifying the 'preferred' URL that search engines should index.In AnQi CMS, both documents and single pages can be set with standard links.

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

Here we first assign the value of the specification linkcanonicalto a variable, then we judge whether the variable exists. If it exists, only then do we output<link rel="canonical">the tag, which is a safe practice.

Comprehensive Example: Building a Complete Page Header TDK

Integrate the above TDK tags into the website template<head>Region, which can constitute a perfect page header TDK structure. Usually, these codes are placed in the template file.bash.html(Public header file) or specific page template.

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    {# 页面标题,附加网站名称,并显示父级分类标题 #}
    <title>{% tdk with name="Title" siteName=true showParent=true %}</title>
    {# 页面关键词 #}
    <meta name="keywords" content="{% tdk with name="Keywords" %}">
    {# 页面描述 #}
    <meta name="description" content="{% tdk with name="Description" %}">

    {# 规范链接 #}
    {%- tdk canonical with name="CanonicalUrl" %}
    {%- if canonical %}
    <link rel="canonical" href="{{canonical}}" />
    {%- endif %}

    {# 其他SEO元数据或CSS/JS链接 #}
    <link rel="stylesheet" href="{% system with name="TemplateUrl" %}/css/main.css">
    {# ... #}
</head>
<body>
    {# 页面内容 #}
</body>
</html>

Through such configuration, the Anqi CMS can dynamically generate metadata most suitable for the current visited page type and its TDK information configured in the background, greatly enhancing the flexibility and efficiency of SEO.

The importance of TDK optimization in website operation

The optimization of TDK tags is not just about filling in a few keywords; it is a continuous and strategic task.A well-optimized page title and description can effectively attract users to click on the search results page, enhancing the website's traffic.An accurate keyword layout helps search engines better understand the page theme, thereby providing more relevant rankings.Applying standard links can avoid duplicate content issues caused by URL parameters, pagination, etc., and concentrate page authority.As website operators, we should regularly review and adjust the TDK to keep it consistent with the latest content, marketing activities, and SEO trends, thereby maximizing the potential of the CMS in search engine optimization.


Common Questions and Answers (FAQ)

Why did I set TDK on the back-end, but the front-end page of the website did not display or displayed incorrectly?This usually has several reasons. First, please make sure that your template file uses it correctly.tdktags to call this information, for example<title>{% tdk with name="Title" siteName=true %}</title>.Next, if the TDK is set on a content page (such as articles, categories), please check if the changes have been saved on the corresponding content editing page in the background.Finally, check if the website has caching enabled.If caching is enabled, you may need to clear the system cache to make the changes take effect.

How does Anqi CMS handle the TDK priority of different pages, such as when the TDK of articles conflicts with the TDK of categories?

What are the specific benefits of adding the website name in TDK for SEO?Several benefits come with appending the website name to the page title.Firstly, it helps with brand exposure and recognition; seeing a familiar brand name in search results increases the sense of trust in clicking.Secondly, for user experience, it allows users to clearly know which website the current page belongs to.From an SEO perspective, it strengthens the brand keywords of the website to some extent and helps to improve the ranking of brand words in some long-tail searches.{% tdk with name="Title" siteName=true %}It provides a convenient and unified way to manage this practice.