How to set up the `` and ` meta keywords ` and ` meta description ` tags are dynamically set?<h1>
<div class="flex items-center gap-4 text-sm text-gray-400 dark:text-gray-500 mb-6 pb-6 border-b border-gray-100 dark:border-gray-800">
<span>📅 </span>
<span>👁️ 40</span>
</div>
<p>As an experienced enterprise CMS website operations personnel, I know that website SEO optimization is the core work of attracting and retaining users, and enhancing the visibility of the website.Amongst them, accurately setting the <code><title></code>, <code><meta keywords></code>, and <code><meta description></code> tags (collectively known as TDK, i.e., Title, Description, Keywords) is crucial.Our Anqi CMS fully considered SEO-friendliness from the very beginning, providing strong and flexible TDK dynamic setting capabilities, allowing operations personnel to easily achieve fine-grained control over page metadata.</p>
<h3>Importance of Dynamic TDK Setting in Anqi CMS</h3>
<p>In today's internet environment, search engines are the main way users discover content.The page's TDK information directly affects the search engine's understanding, indexing, and ranking of the content.A clear, relevant, and attractive title can increase click-through rate, precise keywords help the content be retrieved by target users, and an appealing description can effectively enhance the exposure effect of the page.The dynamic TDK setting feature provided by AnQi CMS is to ensure that each page can generate metadata that is most suitable for SEO standards and user search habits based on its unique content, thereby maximizing the value of the content.</p>
<h3>Use AnQi CMS backend to configure TDK information</h3>
<p>AnQi CMS backend management system integrates the TDK configuration entry in the content publishing and management process, ensuring the synchronization update of content and metadata.For the <strong>homepage</strong>, operators can directly configure the global title, keywords, and description of the website under the 'Homepage TDK Settings' in the 'Backend Settings'.The content set here will serve as the metadata benchmark for the entire website, effective for the homepage and other pages that have not been configured with specific TDK.</p>
<p>When creating or editing a <strong>document</strong>, such as an article or product page, AnQi CMS provides fields such as 'SEO Title', 'Document Keywords', and 'Document Description'.Operators can directly enter exclusive TDK information for this document here.If the 'Document Summary' is not manually filled in, the system will intelligently extract the first 150 characters from the document content as the default description, alleviating some of the workload for operations personnel.<p></p><p>For the <strong>category page</strong>, such as article category or product category, the editing interface also has fields such as 'SEO title', 'keywords', and 'category description'.By configuring unique TDK for each category, it can better reflect the aggregated topic of the content under the category and improve the search engine performance of the category page.</p>
<p>Similarly, the <strong>single page</strong> (such as </p>
<h3>Dynamic invocation of TDK tags in the template</h3>
<p>Safe CMS adopts a Django-style template engine, which realizes dynamic rendering of data through specific template tags.To dynamically display TDK information in the <code><head></code> area of the front-end page, Anqi CMS provides a powerful <strong>万能TDK tag <code>{% tdk %}</code></strong>.This tag can intelligently obtain and output the most relevant TDK data based on the context of the current page (such as a document page, category page, or home page).<p></p>
<p>In the <code>head</code> section of the template file, the <code>{% tdk %}</code> tag is usually used like this:</p>
<pre><code class=\</p>
<ul>
<li><code>siteName=true</code> Attribute: The website name can be automatically appended to the page title.For example, if the page title is "Advantages of AnQi CMS", and the website name is "AnQi CMS", then the final displayed title may be "Advantages of AnQi CMS - AnQi CMS".This is very beneficial for brand exposure.
Attribute: Can customize the separator between title and website name, default is hyphen.For example, the <code>sep="_"</code> will change the separator to underscore.<li>
<li><code>showParent=true</code> Property: On category or subcategory pages, you can control whether to display the title of the parent category in the title to provide more complete hierarchical information.<li>
</ul>
<li>
<li>
<p>
<strong>Page keywords (
code>meta keywords</code>)</strong>:
Through <code>{% tdk with name="Keywords" %}</code> to dynamically insert the keyword list.The Anqi CMS will prioritize the use of specific keywords configured for the current page, and if there are none, it will intelligently fill according to the page type.<p><li>
<li><p><strong>Page description (code<meta description>code):</strong> Insert page description dynamically using code{% tdk with name="Description" %}code.</p>This will prioritize the description of the page-specific configuration, otherwise, it will use the document summary, category summary, or the default system description.<p><li></li><p><li>Standard link (code <link rel="canonical"><code>) : <code>{% tdk canonical with name="CanonicalUrl" %}</code> to get the page's standard link.</code>Standard links are crucial for avoiding duplicate content issues and concentrating page authority, especially for foreign trade websites.Suggest using the <code>if</code> statement to ensure that the tag is only output when a standard link exists.The dynamic TDK mechanism of AnQi CMS ensures that no matter which page of the website you are on, you can obtain the most optimized and accurate metadata information for the current content through a consistent tag calling method, greatly enhancing the SEO efficiency and management convenience of the website.</p>
<h3>**Practical and Optimization Suggestions</h3>
<p>Dynamic setting of TDK is not a one-time task, continuous optimization is the key to website operation.</p>
<p>First, <strong>ensure the uniqueness and relevance</strong> of the content.Each page's title and description should accurately summarize the core content of the page, avoiding generic or repetitive expressions.Keywords should match the content closely, avoiding irrelevant or excessive repetition.</p>
<p>Secondly, <strong>Make full use of the TDK inheritance and override mechanism of Anqi CMS</strong>.Using the backend to set TDK for the homepage, categories, documents, single pages, and tags can form a clear metadata hierarchy structure.When the page does not have specific settings, the system will automatically provide default values, but it is still recommended to manually optimize on critical pages to achieve **effect.**</p>
<p>Moreover, <strong>focus on user intent and click-through rate</strong>.The title and description are not only for search engines, but also for users.Write while simulating the user's search scenario, so that the user can see the value of the page at a glance in the search results, thereby increasing the click-through rate.<p></p>
<p>Last, <strong>Regular monitoring and adjustment</strong>.Through traffic statistics and crawler monitoring tools, analyze the TDK performance of the page.If you find that some pages have low click-through rates or poor rankings, you should timely adjust their TDK content and conduct A/B testing to find the **solution.The "Advanced SEO Tool" and "Traffic Statistics" features of Anqi CMS can provide you with data support.</p>\n\n<h3>Common Questions and Answers (FAQ)</h3>\n\n<p><strong>Q1: Why isn't my page title displaying according to the 'SEO title' I set?</strong>
A1: Please check if the <code><title></code> tag is used correctly in your template file's <code>{% tdk with name="Title" %}</code> tag.At the same time, confirm that the "SEO title" field on this page has been filled in in the content management backend.The TDK tags of Anqi CMS will prioritize reading the SEO settings at the page level, followed by the content title, and finally the global title of the website.If your template uses the <code>siteName=true</code> attribute, the website name will also be appended to the title, which may make you feel that the title is not entirely the 'SEO title' you manually entered.</p>
<p><strong>Q2: What happens if I do not set the 'Document Summary' or 'Category Summary' for a document or category?</strong>
A2: If these summary fields are not manually set, Anqí CMS will intelligently extract a portion of the text from the document content or category content as the page's <code><meta description></code> content.This is typically the first 150 characters or so of the content. Although the system provides automatic filling, we still recommend that you manually write and optimize these introductions for more precise control of the attractiveness of the description and keyword density.<p></p>
<p><strong>Q3: Can I set a universal TDK template for a specific content model (such as </strong>
A3: The design philosophy of Anqi CMS's TDK tag supports high customization, it will read the most specific TDK configuration of the current page first.Although there is no direct feature to provide 'Model Level TDK Template', you can add custom fields (such as 'Product SEO Description Template') in the content model, and then judge whether these custom fields exist in the template logic, if they exist, use them preferentially.Or, by using the classification TDK settings under the content model, you can centrally manage the TDK of products under the same product category, which can also achieve a similar effect.</p>
</article>
</!>-- Prev / Next -->
<div class="mt-12 pt-6 border-t border-gray-200 dark:border-gray-800">
<nav class="flex items-center justify-between gap-4">
<div class="flex-1">
<a href="https://en.anqicms.com/blog/3853.html" class="prev-next-link group flex flex-col items-start px-5 py-3 rounded-lg border border-gray-200 dark:border-gray-700 hover:border-blue-500 dark:hover:border-blue-400 transition-all duration-200 min-w-[140px]">
<span class="text-xs text-gray-400 dark:text-gray-500 mb-0.5">Previous</span>
<span class="text-sm font-medium text-gray-700 dark:text-gray-300 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors flex items-center gap-1">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"
></path>
</svg>
How to call the contact information set in the AnQiCMS background template? />
</span>
</a>
</div>
</nav>
</div>
</span>
</a>
</div>
<div class="flex-1 justify-end">
<a href="https://en.anqicms.com/blog/3855.html" class="prev-next-link group flex flex-col items-end px-5 py-3 rounded-lg border border-gray-200 dark:border-gray-700 hover:border-blue-500 dark:hover:border-blue-400 transition-all duration-200 min-w-[140px]">
<span class="text-xs text-gray-400 dark:text-gray-500 mb-0.5">Next</span>
<span class="text-sm font-medium text-gray-700 dark:text-gray-300 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors flex items-center gap-1">
How to Build Multilevel Navigation Menu in AnQiCMS Template?
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
</svg>
</span>
</a>
</div>
</nav>
</div>
<!-- Related articles -->
<div class="mt-10">
<h3 class="text-base font-semibold text-gray-800 dark:text-gray-200 mb-4">Related articles</h3>
<div class="grid sm:grid-cols-2 gap-4">
<a href="https://en.anqicms.com/blog/3853.html" class="p-4 rounded-xl bg-gray-50 dark:bg-gray-900 hover:bg-blue-50 dark:hover:bg-blue-900/20 border border-gray-100 dark:border-gray-800 transition-colors group">
<h4 class="text-sm font-medium text-gray-800 dark:text-gray-200 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors">How to call the contact information set in the AnQiCMS background template?As an experienced senior personnel proficient in Anqi CMS content operation, I am well aware of the importance of the efficiency of website information management in attracting and retaining users.Especially contact information such as this fundamental and critical information, its unified management and flexible access are the foundation for improving operational efficiency and ensuring the accuracy of information.Below, I will introduce how to call the contact information set in the background of AnQiCMS template.
***
### Unified Management of Contact Information in AnQiCMS Back-end
Contact information for the website is centrally managed in AnQiCMS.
<span class="text-xs text-gray-400 mt-2 block">2025-11-06</span>
</a>
<a href="https://en.anqicms.com/blog/3852.html" class="p-4 rounded-xl bg-gray-50 dark:bg-gray-900 hover:bg-blue-50 dark:hover:bg-blue-900/20 border border-gray-100 dark:border-gray-800 transition-colors group">
<h4 class="text-sm font-medium text-gray-800 dark:text-gray-200 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors">How to obtain and display the website name and Logo in AnQiCMS templates?As an experienced CMS website operation personnel, I am well aware of the importance of effectively displaying brand information in templates for user experience and brand recognition.The following article will provide a detailed guide on how to obtain and display the website name and logo in the AnQiCMS template.
### In AnQiCMS template, a practical guide to obtain and display the website name and Logo
Clearly displaying the brand identity is a key element to attract users and build trust in any website operation.The website's name and logo are the core visual elements of the brand</p> <span class="text-xs text-gray-400 mt-2 block">2025-11-06</span> </a>
<a href="https://en.anqicms.com/blog/3851.html" class="p-4 rounded-xl bg-gray-50 dark:bg-gray-900 hover:bg-blue-50 dark:hover:bg-blue-900/20 border border-gray-100 dark:border-gray-800 transition-colors group"> <h4 class="text-sm font-medium text-gray-800 dark:text-gray-200 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors">What template engine syntax does AnQiCMS support, and what are the formats of variables and tags?As an experienced AnQiCMS website operations manager, I know the importance of an efficient and easy-to-use template system for website content management and user experience.AnQi CMS performs very well in this aspect, it provides a powerful and flexible template mechanism, making content presentation intuitive and highly customizable.Now, let's delve into the syntax, variables, and tag formats supported by the AnQiCMS template.The core of AnQiCMS template system lies in its support for **Django template engine syntax**, and its expression method is similar to popular</p>
<span class–="text-xs text-gray-400 mt-2 block">2025-11-06</span>
</a>
<a href–="https://en.anqicms.com/blog/3850.html" class–="p-4 rounded-xl bg-gray-50 dark:bg-gray-900 hover:bg-blue-50 dark:hover:bg-blue-900/20 border border-gray-100 dark:border-gray-800 transition-colors group">
<h4 class–="text-sm font-medium text-gray-800 dark:text-gray-200 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors">How to use custom templates for specific documents, categories, or single pages of AnQiCMS?As an experienced AnQiCMS website operation personnel, I am well aware of the importance of content in attracting and retaining users, and the flexible template system is the key to achieving personalized content display.AnQiCMS provides powerful custom template functionality, allowing operation personnel to create unique page layouts and styles according to different content needs.
### AnQiCMS Template Working Principle Overview
AnQiCMS's template system is based on the Go language and adopts syntax similar to Django's template engine, files are formatted with `</p>
<span class="text-xs text-gray-400 mt-2 block">2025-11-06</span>
</a>
<a href="https://en.anqicms.com/blog/3855.html" class="p-4 rounded-xl bg-gray-50 dark:bg-gray-900 hover:bg-blue-50 dark:hover:bg-blue-900/20 border border-gray-100 dark:border-gray-800 transition-colors group">
<h4 class="text-sm font-medium text-gray-800 dark:text-gray-200 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors">How to Build Multi-level Navigation Menus in AnQiCMS Templates?Hello, I am your familiar Anqi CMS website operation veteran.The importance of navigation menus in daily website maintenance and content optimization is self-evident; they are not only guides for users to browse the website but also crucial for search engines to understand the website structure.Today, let's delve into how to build a flexible and efficient multi-level navigation menu in the AnQiCMS template.Understanding AnQiCMS Navigation SystemAs an experienced CMS website operation person, I am well aware of the importance of a clear and efficient website navigation system for user experience and search engine optimization (SEO).Breadcrumbs navigation is an important part of the website auxiliary navigation, which can intuitively show the user's position on the website and provide a convenient return path.AnQi CMS with its flexible template engine makes it easy and efficient to generate breadcrumb navigation in website templates.
### How to generate breadcrumb navigation path in AnQiCMS template
Integrate breadcrumb navigation in AnQiCMS template</p>
<span class="text-xs text-gray-400 mt-2 block">2025-11-06</span>
</a>
<a href="https://en.anqicms.com/blog/3857.html" class="p-4 rounded-xl bg-gray-50 dark:bg-gray-900 hover:bg-blue-50 dark:hover:bg-blue-900/20 border border-gray-100 dark:border-gray-800 transition-colors group">
<h4 class="text-sm font-medium text-gray-800 dark:text-gray-200 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors">How to list category information in AnQiCMS template by module or parent relationship</h4>
</a>The detailed guide on how to list classified information by module or parent relationship in AnQiCMS (AnQiCMS) template
As an experienced AnQiCMS website operator, I am well aware of the importance of content organization.A clear, easy-to-navigate classification system not only improves user experience, but is also the foundation of SEO optimization.The AnQi CMS, with its flexible content model and powerful template tag system, provides us with various ways to display category information in website templates by module or parent-child relationship.This article will delve into how to make efficient categorized lists using these features.
###<p>
<span class="text-xs text-gray-400 mt-2 block">2025-11-06</span>
</a>
<a href="https://en.anqicms.com/blog/3858.html" class="p-4 rounded-xl bg-gray-50 dark:bg-gray-900 hover:bg-blue-50 dark:hover:bg-blue-900/20 border border-gray-100 dark:border-gray-800 transition-colors group">
<h4 class="text-sm font-medium text-gray-800 dark:text-gray-200 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors">
How to obtain and display detailed information of a specified category in AnQiCMS template?</h4>
</a>
As an experienced security CMS website operator, I am well aware that effectively and accurately displaying content in templates is crucial for the attractiveness and SEO performance of the website.Category information is the core of website architecture, able to accurately obtain and present on the front-end page, not only improving user experience, but also providing a clear structure for search engine crawling.Today, let's discuss in detail how to obtain and display detailed information of a specified category in the Anqi CMS template.
### Understanding Anqi CMS Template and Content Display Basics
Anqi CMS uses a syntax similar to the Django template engine</p>
<span class="text-xs text-gray-400 mt-2 block">2025-11-06</span>
</a>
</div>
</div>
</div>
</div>
<!-- ==================== FOOTER ==================== -->
<footer class="border-t border-gray-200 dark:border-gray-800 bg-white dark:bg-[#0f172a]">
<div class="max-w-[1440px] mx-auto px-4 sm:px-6 lg:px-8 py-12">
<div class="grid sm:grid-cols-2 lg:grid-cols-4 gap-8">
<div>
<div class="flex items-center gap-2.5 mb-4">
<div class="w-8 h-8 flex items-center justify-center">
<img src="https://en.anqicms.com/uploads/202606/15/2144e205d561d0a5.webp" alt="搜外科技安企CMS" />
</div>
<span class="text-lg font-bold text-gray-800 dark:text-gray-100">搜外科技安企CMS</span>
</div>
<p class="text-sm text-gray-500 dark:text-gray-400 leading-relaxed">Based on GoLang, memory usage is reduced by about 80% compared to PHP CMS, supports multiple sites, multi-language, AI intelligent dialogue and tool calls, is the preferred solution for small and medium-sized enterprises to build high-performance websites. </p> <div class="mt-4">
<ul class="flex gap-2 text-sm text-gray-500 dark:text-gray-400">
<li><a href="https://github.com/fesiong/anqicms" target="_blank" class="hover:text-blue-600 dark:hover:text-blue-400 transition-colors">GitHub</a></li>
<li><a href="https://gitcode.com/anqicms/anqicms" target="_blank" class="hover:text-blue-600 dark:hover:text-blue-400 transition-colors">GitCode</a></li>
</ul>
</div>
</div>
<div>
<h4 class="text-sm font-semibold text-gray-800 dark:text-gray-200 mb-4">安企CMS</h4>
<ul class="space-y-2 text-sm text-gray-500 dark:text-gray-400">
<li><a href="/about.html" class="hover:text-blue-600 dark:hover:text-blue-400 transition-colors">About</a></li>
<li><a href="/download.html" class="hover:text-blue-600 dark:hover:text-blue-400 transition-colors">Download</a></li>
<li><a href="/price.html" class="hover:text-blue-600 dark:hover:text-blue-400 transition-colors">Price</a></li>
<li><a href="/demo.html" class="hover:text-blue-600 dark:hover:text-blue-400 transition-colors">Demo</a></li>
<li><a href="/changelog" class="hover:text-blue-600 dark:hover:text-blue-400 transition-colors">Changelog</a></li>
<li><a href="/donation.html" class="hover:text-blue-600 dark:hover:text-blue-400 transition-colors">Authorization & Donation</a></li>
</ul>
</div>
<div>
<h4 class="text-sm font-semibold text-gray-800 dark:text-gray-200 mb-4">Documentation</h4>
<ul class="space-y-2 text-sm text-gray-500 dark:text-gray-400">
<li><a href="/help" class="hover:text-blue-600 dark:hover:text-blue-400 transition-colors">Help</a></li>
<li><a href="/manual" class="hover:text-blue-600 dark:hover:text-blue-400 transition-colors">Template Development</a></li>
<li><a href="/anqiapi/10553.html" class="hover:text-blue-600 dark:hover:text-blue-400 transition-colors">API Documentation</a></li>
<li><a href="/design/1" class="hover:text-blue-600 dark:hover:text-blue-400 transition-colors">Template Market</a></li>
<li><a href="/question" class="hover:text-blue-600 dark:hover:text-blue-400 transition-colors">Question Exchange</a></li>
<li><a href="/blog" class="hover:text-blue-600 dark:hover:text-blue-400 transition-colors">AnQi Blog</a></li>
</ul>
</div>
<div>
<h4 class="text-sm font-semibold text-gray-800 dark:text-gray-200 mb-4">Contact</h4>
<ul class="space-y-2 text-sm text-gray-500 dark:text-gray-400">
<li><span class="text-gray-400">WeChat: websafety</span></li>
<li><img class="w-36 h-36" src="https://en.anqicms.com/uploads/202606/15/b16d713b5a923eb6.webp" /></li>
</ul>
</div>
</div>
<div class="mt-10 pt-6 border-t border-gray-100 dark:border-gray-800 flex flex-col sm:flex-row items-center justify-between gap-4 text-sm text-gray-400 dark:text-gray-500">
<p>Copyright © 2019-2025 Shenzhen Souwai Technology Co., Ltd., AGPL-3.0 License.
<a href="/privacy.html">Privacy Policy</a>
<a href="/terms.html">Terms</a>
<a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">粤ICP备2024356999号</a>
</p>
<p><a href="https://en.anqicms.com/" target="_blank">AnQi Content Management System (AnQiCMS)</a>,Making the world a safer website</p>
</div>
</div>
</footer>
<script src="https://en.anqicms.com/static/official/js/app.js"></script>
<body>
<script>
(function() {
var al = document.createElement("script");
al.src = "/api/log?action=views&code=200&id=3854&path=http%3A%2F%2Fwww.anqicms.com%2Fblog%2F3854.html&type=archive&nonce="+Date.now();
document.body.appendChild(al);})();\n\u003c/script\u003e\n\n\u003c/html\u003e