Understand the importance of TDK tags in AnQiCMS in English

TDK, i.e., the page's title (Title), description (Description), and keywords (Keywords), is HTML<head>The three key meta tags. They convey the core information of the page to search engines and users.

  • Title (Title)This is the most important display content in the search results, as well as the text displayed on the browser tab. It directly affects the user's click intention and the search engine's judgment on the page theme.
  • Description (Description)Although it does not directly affect ranking, high-quality descriptions can act as summaries of search results, attract users to click, and improve click-through rate (CTR).
  • Keywords (Keywords)English: Although modern search engines have greatly reduced their weight, reasonable settings can still assist search engines in understanding the theme of the page, especially for some vertical or niche fields, which still have certain reference value.

The design concept of AnQiCMS includes SEO-friendly features, it has a complete TDK management system built-in, allowing us to finely control these important meta tags from global to local.

Global TDK Setting: Establish the tone of the website

When you set up a website for the first time or want to set a unified SEO tone for the entire website, you can start with the global TDK settings of AnQiCMS.

In the background management interface, you usually find the 'Background Settings' area, which includes a special 'Home Page TDK Settings' option. Here, you can configure the TDK information for the website's homepage:

  • Home Page TitleHere you usually fill in the core brand name of your website or the most core service/product name, which will be used on the homepage<title>Content of the tag.
  • Home page keywordEnter core keywords highly relevant to your website theme, separated by English commas,.
  • Homepage description:Write a concise and clear description that summarizes the overall content and core value of the website, which is often used as the abstract in search results.

These global settings mainly take effect on the home page of the website, laying the foundation for the SEO optimization of the entire website.

Dynamic TDK: Customized SEO information for each content

The true strength of AnQiCMS lies in its ability to dynamically set TDK, which means you can set unique, most suitable TDK information for each article, each category, and even each independent page on the website.This is like putting the most suitable label on each product, ensuring that they stand out among the massive search results.

  1. Article (document) page In the interface for publishing or editing articles, you will see fields such as "SEO title", "document keywords", and "document summary".

    • SEO titleHere is the title that will directly appear on the article page<title>Label content. If left blank, the system may automatically use the article title. You can write a unique and attractive title here that includes core keywords and reflects the content of the article.
    • Document keywords: Choose or input the most relevant keywords for the current article, separated by English commas,.
    • Document Summary: This is the article page.<meta name="description" ...>Label content.If left blank, AnQiCMS will automatically extract the first 150 characters from the article content as a description, but this is usually less accurate and less attractive than writing it manually.In addition, in the article editing interface, you can also set the 'Canonical URL', which is very important for handling content duplication issues and concentrating page authority.
  2. Category page: In managing and editing categories, similarly, you can also configure exclusive SEO information for each category.

    • SEO title:As the category page,<title>Tag content.
    • Keywords:Select or enter keywords for the current category page.
    • Category IntroductionEnglish: Here is the text that will be used as the category page<meta name="description" ...>Content.
  3. single page: For pages such as "About Us" and "Contact Us", AnQiCMS also provides a detailed TDK setting entry.

    • SEO title:Set up a single page.<title>Label.
    • Keywords:Add keywords for the single page.
    • Single page introduction:As a single page.<meta name="description" ...>Content.

Call TDK tags flexibly in the template.

Set the background TDK information correctly, and the next step is to correctly reference them in the front-end template, so that the browser and search engines can crawl this information. AnQiCMS provides a powerful 'Universal TDK Tag'}}]{% tdk %}English makes this work very convenient.

You just need to use the template file (usually)head.htmlorbase.htmllocated in the HTML<head>area) to dynamically output TDK information in the following way:

  • Page Title (Title):

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

    Here,name="Title"Tell the system the page title you want to retrieve.siteName=trueIndicates that the global name of the website is automatically appended after the title.sep="-"Then defines the separator between the title and the website name, you can set it to other characters according to your preference, for example_or|If the current page is a category page and you want to include the name of the parent category in the title, you can also addshowParent=true.

  • Page Keywords (Keywords):

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

    This tag will output the keyword content of the current page.

  • Description:

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

    This label will output the description content of the current page.

  • Canonical URL: For specifications link, to avoid outputting empty tags, we usually check if it exists first before outputting:

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

    Here,{%-and-%}This is a special syntax of AnQiCMS template engine, used to remove the whitespace on both sides of the tag to ensure the generated HTML code is neater.

Through this method, AnQiCMS will automatically call the corresponding TDK settings based on the type of page visited by the user (home page, article page, category page, single page, etc.).If a specific page does not set TDK, the system will also intelligently backtrack to the parent category or global settings to ensure that each page has default SEO information.

Concluding remarks

The TDK tag dynamic setting function built into the Anqi CMS provides great convenience and flexibility for website operators.From the global brand positioning of the website, to the personalized optimization of each specific content, it can handle it easily.Make good use of these tools, convert technical information into easy-to-understand and practical expressions, and your website's performance in search engines will surely soar, attracting more target users.


Common Questions (FAQ)

1. If I have not set SEO title, keywords, and description for a certain article or category, how will AnQiCMS handle it?AnQiCMS will take an intelligent rollback mechanism.If a specific page does not have this information set, the system will try to trace up, such as looking for the settings of its category.If the category is not set either, the home page TDK information from the global settings of the website will be used.This means that even if you forget to set it, your page will not be completely lacking in TDK information, it may just not be accurate enough.

2. What is the role of the 'Canonical URL' in TDK tags? When should I use it?The canonical URL (Canonical URL) is used to inform search engines which URL is the 'preferred' or 'canonical' version when there are multiple URLs pointing to the same or very similar content on a website. This is mainly used to solve content duplication issues, such as different URL parameters generating