When building a website, Search Engine Optimization (SEO) is a key element to ensure that content is discovered by search engines and attracts potential visitors.While the SEO title (Title), keywords (Keywords), and description (Description), abbreviated as TDK, are one of the most fundamental and important elements in website optimization.They directly affect the display and click-through rate of the website in search results.

AnQiCMS was designed with SEO-friendliness in mind from the very beginning, incorporating a comprehensive TDK setting function, allowing you to easily carry out fine-grained SEO configuration at all levels of the website, and flexibly display it in the frontend template.

Website Global TDK Settings

First, let's take a look at the TDK settings of the website homepage or on a global level. This is usually a reflection of the core slogan and main keywords of your website brand.

Log in to the AnQiCMS backend management interface, you will find a menu item named “Backend settings”. Click to enter, then select “Homepage TDK settingsIn here, you can see the three main input boxes:

  • Home Page Title:This is the main title displayed on your website's homepage in the browser tab and search engine results page (SERP).A good homepage title should contain your core brand name and the most important keywords, while also being attractive to encourage users to click.
  • Home page keywords:These are words highly relevant to the content of your website.Although modern search engines have reduced the weight of keywords, reasonable settings still help search engines understand the theme of your website.Suggested to use commas to separate multiple keywords.
  • Home page description:This is usually a short snippet displayed below the title on the search engine results page.It should concisely summarize the main content of your website, the services or product advantages provided, to attract users to click.

These global settings will be used as the default TDK for the website, applied to pages that do not have a separate TDK set.

Content level TDK fine-tuning configuration

The strength of AnQiCMS lies in its ability to allow independent TTDK configuration for each content type on the website.This means you can tailor the most suitable TDK according to the specific content of articles, products, categories, single pages, even tags, thus achieving more accurate SEO optimization.

1. TDK settings for documents (articles and products)

Whether it is publishing new articles or products, AnQiCMS provides detailed SEO setting options.

When you select “Content management” under “Publish documentWhen editing a new document or editing an existing document, in the "Other Parameters" section (usually expanded) of the editing page, you will see fields related to TDK:

  • SEO title:This title will override the global settings and the document's own title, serving as the exclusive title displayed in search engine results.If you want the document title to be different from the actual title displayed on the page, you can set it here.
  • Document keywords:For the specific keywords of the current article or product, it is also recommended to use English commas to separate them.
  • document summary:Write a summary that accurately reflects the core content of the article or product. If you leave it blank, the system will automatically extract the first 150 characters from the article content as the introduction.

2. Category page TDK settings

The category page of the website (such as "News and Dynamics", "Product Categories") also needs to have its unique TDK to help search engines understand the content theme of the category.

In “Content managementSelect from the menuDocument CategoryThen click on the category you want to edit. In the category editing page, you can find it in the "Other parameters" section:

  • SEO title:Custom title for this category page, usually containing the category name and some general keywords.
  • Keywords:Overall keywords for the content under this category.
  • Category Introduction:Describe the content scope and features of this category page.

3. Single-page TDK Settings

For single pages like 'About Us', 'Contact Us', etc., the TDK settings are equally important.

Through “Page Resources" menu under the "Page ManagementYou can edit any single page. In the relevant location of the editing page, you can set:

  • SEO title:The exclusive title of a single page.
  • Keywords:Keywords for the content of a single page.
  • Single page introduction:An overview of the content of a single page.

4. Tag page TDK settings

AnQiCMS also supports setting independent TDK for Tag label pages, which is very beneficial for Tag pages aggregating specific thematic content.

In “Content management" under the "Document LabelIn the editor, when you edit a label, you will find:

  • SEO title:The title of the label page.
  • Tag keywords:The keywords associated with this label.
  • Tag introduction:Describe the content theme represented by this label.

Through these detailed settings, you can ensure that each level and specific content of the website has the most optimized and relevant TDK, thereby enhancing the overall SEO performance.

Display TDK in front-end template

After setting up the TDK information, how to correctly call and display them in the website's front-end template is a key step for achieving SEO effects.AnQiCMS provides a straightforward and powerful template tag system to accomplish this task.

AnQiCMS内置了一个名为tdkThe universal tag, which can intelligently identify the type of the current page and automatically obtain the highest priority TDK information for display. For example, when you visit a document detail page,tdkLabels will give priority to the TDK set separately for the document; if the document has not set it, it will try to call the TDK of the document's category; if neither is available, it will call the global TDK.This hierarchical calling mechanism greatly simplifies the development and maintenance of templates.

usually, you will place the TDK tags in the website template file (such asbash.htmlorheader.html) of<head>area. Here is a typical usage example:

<head>
    <meta charset="UTF-8">
    <!-- 页面标题,附加网站名称后缀,使用短横线分隔 -->
    <title>{% tdk with name="Title" siteName=true sep="-" %}</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 %}

    <!-- 其他头部信息 -->
</head>
  • {% tdk with name="Title" siteName=true sep="-" %}:This tag will get the SEO title of the current page.siteName=trueThe parameter indicates that the website name will be automatically appended to the page title (e.g., “Page Title - Website Name”), andsep="-"It specifies the separator between the title and the website name.
  • {% tdk with name="Keywords" %}:Used to output the keywords of the current page.
  • {% tdk with name="Description" %}:Used to output the description of the current page.

Moreover, in SEO optimization, the canonical URL is also a very important part, which is used to inform search engines which URL is the original version of the content, to avoid duplicate content issues. AnQiCMS also providesCanonicalUrlThe calling method:

  • {%- tdk canonical with name="CanonicalUrl" %}and{%- if canonical %}:This code will first try to get the canonical link of the current page. If it exists, it will be in<head>to generate the corresponding<link rel="canonical" href="..." />Label.-The symbol before and after the template tag is used to remove the blank lines that may be generated by the tag, making the HTML code cleaner.

By this means, you do not need to write complex logic in each page template to judge the source of the TDK,tdkThe universal tag automatically handles these details, ensuring that the website's TDK is always presented to search engines and users in an optimized form.

AnQiCMS through this layered, refined TDK setting and intelligent template calling, provides you with powerful and flexible SEO optimization capabilities, helping your website stand out in a highly competitive online environment.


Common Questions (FAQ)

1. I set the SEO title in a document, but the website name in the homepage TDK settings is not appended to the document title. Why is that?

This is becausetdkThe universal tag will not append the website name suffix by default when calling the page title. If you want to append the website name to the SEO title of the content such as documents, categories, and single pages, you need to specify it explicitly when calling the templatesiteName=trueParameter, for example: <title>{% tdk with name="Title" siteName=true %}</title>like this,tdkTags will be automatically added to the page title when displayed according to your settings.

**2. I have set up the TDK for all pages, but the search engine has not yet indexed them.