In website operation, Title, Keywords, and Description (abbreviated as TDK) are the cornerstone of Search Engine Optimization (SEO).They not only describe the page content to search engines, but also directly affect the user's willingness to click on the search results page.AnQiCMS as a system focusing on content management, understands the importance of TDK, and therefore provides a powerful and flexible mechanism that allows users to easily generate and manage the website TDK dynamically and finely.
How to manage TDK in AnQiCMS: A systematic dynamic generation mechanism
The TDK management of AnQiCMS starts from the homepage of the website.Under the 'Background Settings' menu in the background, find the 'Home Page TDK Settings' area, where you will see three input boxes: 'Home Page Title', 'Home Page Keywords', and 'Home Page Description'.Here, you can customize the exclusive TDK information for the homepage of the entire website, establishing an overall SEO tone for the site.
In addition to the homepage, AnQiCMS also provides independent TDK setting options for various content types on the website, which is the core embodiment of its dynamic generation capability.Whether it is an article, product, single page, category, or tag, you can find SEO-related fields in their respective editing interfaces.
- Article and product detail pages:When publishing or editing articles/products, in addition to the usual 'Document Title', 'Document Content', and 'Document Introduction', you will also see fields such as 'SEO Title', 'Document Keywords', etc.The 'SEO Title' allows you to set a special title for the current document that is displayed on search engines, which may differ from the actual H1 title on the page to better meet SEO requirements; the 'Document Keywords' and 'Document Summary' directly correspond to the page's Keywords and Description.If you choose to leave these fields blank, AnQiCMS will not leave the TDK missing, but will intelligently extract content from the 'Document Title' and 'Document Summary' to fill in automatically, ensuring that each page has basic TDK information.
- Category and tag pages:For the category and tag pages, you can also set the "SEO Title", "Keywords", and "Category/Tag Description".This setting ensures that the category list page and tag aggregation page also have unique TDK, avoiding TDK repetition and thus improving the SEO value of these pages.
- Single page:Pages such as 'About Us' and 'Contact Us', which are independent single pages, also have dedicated TDK setting entries, including 'SEO Title', 'Keywords', and 'Single Page Description', allowing each independent page to be optimized accurately.
This layered and detailed TDK management mode ensures that each important page of the website has customized TDK, laying a solid foundation for the website to perform better in search engines.
How to call and display TDK tags in frontend templates
Set up the backend TDK information, the next step is how to correctly display it in the website front-end template. AnQiCMS provides a powerfultdkTags. Typically, these TDK tags are placed in the HTML document's<head>area, which is the standard location for search engines to crawl and identify TDK information.
The method to call different TDK information is as follows:
Page Title (Title)of the page
<title>Tags are one of the most important elements in SEO. In AnQiCMS templates, you can call it in the following way:<title>{% tdk with name="Title" %}</title>This simple tag will automatically get the **title** of the current page.It will prioritize displaying the 'SEO Title' you set on the content page (such as articles, categories), if not set, it will revert to a higher level (such as categories, models) until the home page TDK settings.
In addition,
tdkTags in the callTitleAlso provides more flexibility:- Additional Website Name:If you want to automatically add the brand name of the website after the page title, you can use
siteName=trueParameters:<title>{% tdk with name="Title" siteName=true %}</title> - Custom separator:By default, the website name is separated from the page title by a “-”. You can
sepuse a custom separator, such as an underscore “_”:<title>{% tdk with name="Title" sep="_" siteName=true %}</title> - display the parent category title:In some deeply nested content pages, you may want to reflect the name of the parent category in the title, in which case you can use
showParent=true:<title>{% tdk with name="Title" showParent=true siteName=true %}</title>
- Additional Website Name:If you want to automatically add the brand name of the website after the page title, you can use
page keywords (Keywords)Page Keywords
<meta name="keywords" content="...">Tags may have decreased in weight in modern SEO, but they are still an important supplement to page information. You can call it like this:<meta name="keywords" content="{% tdk with name="Keywords" %}">tdkTags will automatically aggregate keyword information from the current page and its inherited hierarchy.Page Description (Description))Page Description
<meta name="description" content="...">Tags are an important source of search engine result summaries and have a direct impact on user click-through rate. The calling method is as follows:<meta name="description" content="{% tdk with name="Description" %}">AnQiCMS will intelligently select the description information set for the current page or its upper layer for display.
Canonical Link (CanonicalUrl)Canonical Link
<link rel="canonical" href="...">It is crucial for avoiding content duplication and specifying the preferred URL. AnQiCMS also provides dynamically generated standard links:{%- tdk canonical with name="CanonicalUrl" %} {%- if canonical %} <link rel="canonical" href="{{canonical}}" /> {%- endif %}A
ifDetermine, ensure that the tag is output only when the page exists with the specified link, which is a robust practice.
The key to implementing dynamic TDK: hierarchy and priority
The strength of AnQiCMS's TDK management system lies in its intelligent dynamic generation and hierarchical inheritance mechanism. When you visit a specific page, AnQiCMS will retrieve TDK information in a certain priority order:
- Current page settings:The system will first check if there is an independent TDK setting for the current page (such as an article detail page, a category list page, a tag page, or a single page).If set, use this information directly.
- Parent inheritance:If the current page has not set TDK, the system will trace up to find whether the category or model it belongs to has been set.For example, if an article has not set TDK, it will try to use the TDK of its category.
- Global default:If after searching through all layers above and still no TDK information is found, AnQiCMS will ultimately use the global information you configured in the "Home TDK Settings" as the TDK for this page.
This hierarchical inheritance mechanism greatly reduces the burden on content operators.You do not need to manually fill in TDK for each page. Just set it at key nodes, and the system will intelligently fill in the blanks, ensuring that every page of the website has a complete TDK, which guarantees flexibility while also considering efficiency.
Through the above mechanism, AnQiCMS not only makes TDK management simple and efficient, but also provides strong technical support for website SEO optimization with its dynamic generation and intelligent inheritance features.
Common Questions (FAQ)
Q1: How does AnQiCMS handle the TDK of a page if it is not manually set?A1: AnQiCMS will automatically handle it according to priority.If the TDK field of a specific content page (such as an article, a single page) is left blank, it will attempt to inherit the TDK of its parent page (such as the category it belongs to, the model).If the parent page is not set either, it will trace back and use the global TDK information you configured in the 'Home Page TDK Settings' in the background.
Q2: Can I set different TDK display formats for different page types (such as article detail pages and category list pages)?A2: Yes, you can. AnQiCMS'stdkTags can dynamically retrieve corresponding TDK content based on the page type.For example, the article detail page will automatically obtain the TDK of the article, and the category list page will automatically obtain the TDK of the category.tdkWhen labeling, you can also use thesiteName/sepandshowParentparameters to<title>label to customize different display formats and achieve more fine-grained control.
Q3: What is the difference between the 'SEO Title' in TDK settings and the content displayed on the actual page?<h1>What is the difference between the 'SEO Title' and the tag content displayed on the actual page?A3: 'SEO title' is a title specifically optimized for search engines, which will be displayed on the page.<title>in the tags, and as a search engine results page