How to manage document tags (Tag) and associate them with documents of different content models?

Calendar 👁️ 68

As an experienced website operations expert, I fully understand the crucial role of an efficient content management system in the success of a website.AnQiCMS (AnQiCMS) provides great convenience for content operators with its flexible content model and powerful extensibility.Today, let's delve deeply into a very practical and powerful feature of Anqi CMS - the management of document tags (Tag), and how it cleverly associates with documents of different content models, thereby enhancing the content organization and user experience of the website.

Safe CMS Document Tag: The Efficient Secret of Content Association and Management

In the era of information explosion, users often find it difficult to quickly find what they need in a vast amount of content.At this time, in addition to the traditional classification system, a more flexible and more associative content organization method is particularly important - that is, tags (Tag).AnQi CMS is well-versed in this, and its built-in document tagging feature provides website operators with a 'tool' to control content.

I. The Essence and Value of Tags: Why Do We Need Them?

In Anqi CMS, document categories (Category) are usually hierarchical, used to organize content under fixed themes.And the tag (Tag) is a flat, non-hierarchical way of classifying content.No Distinction Between Categories and Content ModelsThe same tag can be applied to documents under different content models such as 'Articles', 'Products', 'Activities', and can even be used across sites.

This design brings huge operational value:

  1. Enhance content organization:Tags can describe content from multiple dimensions, linking seemingly unrelated documents through common keywords to form a content network.
  2. Enhance user experience:Users can quickly find other information associated with the current content by clicking on tags, whether it be similar articles or related products, greatly enhancing the discoverability of the content.
  3. Optimize Search Engine Optimization (SEO):The tab itself is an aggregated content page, providing more opportunities for search engines to crawl and index.Setting reasonable tag keywords can effectively cover more long-tail search terms and improve the visibility of the website in search engines.

Second, efficiently manage tags in the Anqi CMS backend

The AnQi CMS backend provides an intuitive and feature-rich interface for tag management. You can find the "Document Tag" feature under the "Content Management" module.

1. Create and edit tags:When you create or edit a tag, you can set the following key information:

  • Tag name:This is the text displayed on the front end of the label, which should be concise and clear, accurately reflecting the content theme.
  • Index letter:Used for letter sorting of tags (A-Z), convenient for users or backend to quickly find.
  • Custom URL:This is a very important SEO setting.You can customize a friendly URL path for tags instead of the system default ID path, which helps improve the search engine friendliness of the tab page.Please note that the custom URL must ensure the uniqueness across the entire site.
  • SEO title, tag keywords and tag description:These fields are designed specifically for SEO, where you can configure independent TDK (Title, Description, Keywords) for the tab page, helping search engines better understand the theme of the tab page and thus achieve better rankings.
  • Label content:If you want the tab page to display some introductory text in addition to the document list, you can fill it here.

2. The association between labels and documents:The strength of AnQi CMS lies in itscross-content model associationThe ability. When you add or edit any content model (such as articles, products, single pages, etc.) under "Content Management", you will see a "Tag label" field.

You can select an existing tag in this field, or directly enter a new tag name, then press Enter to create a new tag and associate it with the current document.It is worth emphasizing that whether the current document is a technical tutorial under the "Article Model" or a software application under the "Product Model

Three, flexibly call tags in the front-end template

The AnQi CMS template system provides a variety of tags, allowing you to flexibly display and call tags and their associated content on the website front-end according to your needs.The use of these tags is similar to the Django template engine, simple and efficient.

1. Display the tag list:You can usetagListTags are displayed in the sidebar, footer, or a dedicated tag cloud page on the website, showing popular tags or all tags.

{% tagList tags with limit="10" %} {# 获取最新的10个标签 #}
    {% for item in tags %}
        <a href="{{item.Link}}">{{item.Title}}</a>
    {% endfor %}
{% endtagList %}

Create an eye-catching tag cloud easily with this call, leading users to discover more related content.

2. Get tag details:When the user clicks on a tag to enter the tag detail page,tagDetailThe tag can help you retrieve detailed information about the tag, such as tag name, description, custom URL, etc., which is used to build professional tag landing pages.

{% tagDetail with name="Title" %} {# 获取当前标签页的标题 #}
{% tagDetail with name="Description" %} {# 获取当前标签页的描述 #}

3. Call the tag associated document:This is the core of the tag feature.tagDataListTags can retrieve all documents associated with the current tag, whether it is articles, products, or other content models.

{% tagDataList archives with type="page" limit="10" %} {# 获取与当前标签关联的文档列表,并支持分页 #}
    {% for item in archives %}
        <h3><a href="{{item.Link}}">{{item.Title}}</a></h3>
        <p>{{item.Description}}</p>
        {# 还可以根据需要显示文档所属的分类,甚至判断其内容模型 #}
        <span>所属分类:{% categoryDetail with name="Title" id=item.CategoryId %}</span>
        <span>发布日期:{{stampToDate(item.CreatedTime, "2006-01-02")}}</span>
    {% empty %}
        <p>该标签下暂无内容。</p>
    {% endfor %}
{% endtagDataList %}
{# 别忘了配合分页标签 `pagination` 来显示分页导航 #}
{% pagination pages with show="5" %}
    {# ... 分页导航代码 ... #}
{% endpagination %}

BytagDataListYou can easily build a tag aggregation page to display all content tagged with specific tags, regardless of which category or model the content belongs to.

4. Display related tags on the document detail page:On the detail page of a single document, you can also use:tagListtags (with配合itemIdThe parameter automatically retrieves the current document ID) to display all tags associated with the document. This not only enhances the connection between documents but also provides an entry for users to further explore.

{% tagList tags with itemId=archive.Id limit="5" %} {# 假设archive是当前文档的变量 #}
    {% for item in tags %}
        <a href="{{item.Link}}">{{item.Title}}</a>
    {% endfor %}
{% endtagList %}

The application strategy of tags in content operation

  • Building a content matrix:Utilize the cross-model characteristics of tags to link together content of different forms but with consistent themes (such as the "AI Technology" tag can associate with technical articles, AI product introductions, AI industry news, etc.), forming a rich content matrix.
  • Long-tail keyword coverage:Create a large number of precise long-tail tags for content, such as "AnQi CMS tutorial
  • User discovered path optimization:Place popular or related tags in the article sidebar, bottom recommendation area, to provide users with a convenient navigation path, reduce bounce rate, and increase page views.
  • Topic Aggregation and Special Topic Production:Tags are naturally the carriers of special topic pages. Through carefully planned tags, all content of a specific topic can be quickly aggregated without manually creating a special topic.

The document tag function of AnQi CMS is much more than a simple keyword listing, it is a powerful tool that connects content, enhances experience, and empowers SEO.By deeply understanding and flexibly applying its functions, your website content will be more vibrant, making it easier for users to find value and helping your website stand out in the fierce competition.


Frequently Asked Questions (FAQ)

Q1: What is the difference between Tags and Categories in AnQi CMS, and how should I choose to use them?

A1: Category is typically in Anq CMSHierarchical with main and secondary levelsThis is used to summarize content into major topics, focusing more on the overall structure and navigation of the website.For example, you can have a primary category of 'Technical Articles', under which there are subcategories such as 'Go Language' and 'Web Development'.Flat, non-hierarchicalof, mainly used to describe content from different dimensions, emphasizing the correlation between contentrelevanceand can be used across content models. For example, a "Go language" tag can be associated with both "technical articles"

Related articles

How to set SEO title, keywords, and custom URL for document categories?

As an experienced website operations expert, I know how important it is to stand out in the age of digital content explosion and make your website content prominent in search engines.AnQiCMS (AnQiCMS) takes advantage of its powerful SEO features, providing content operators with the tools they need to work comfortably.Today, let's delve deeply into a frequently overlooked but extremely important aspect: how to set up professional SEO titles, keywords, and custom URLs for your document categories, so that the category page can also become a traffic growth engine.### Start the SEO Optimization Journey for Category Page Category Page

2025-11-06

How to manage document categories and set their unique templates and Banner images?

As an experienced website operations expert, I am more than happy to delve into the powerful functions of AnQiCMS (AnQiCMS) in document classification management, template customization, and Banner image settings.AnQi CMS, with its efficient and flexible features, empowers operators to easily create personalized, high-conversion websites.Below, we will discuss how to make full use of these features to enhance your website performance.--- ## Optimize website content presentation: Anqi CMS category management, template and Banner settings in-depth analysis In the world of content operation

2025-11-06

What custom field types does AnQiCMS content model support? How to add product parameter fields?

As an experienced website operations expert, I fully understand the importance of a flexible and powerful content management system for corporate websites.AnQiCMS (AnQi CMS) is exactly such a tool that deeply understands the needs of operators, with its exquisite design in the content model, making the management and display of website content unprecedentedly free.Today, let's deeply analyze the custom field types supported by the AnQiCMS content model, and demonstrate how to add exclusive parameter fields to your product with practical examples, making the content truly come to life.

2025-11-06

Intelligent control of time, precise reach: In-depth analysis of AnQiCMS article/product scheduled publishing function

In the fast-paced digital content world, how to ensure that your information reaches the target audience at the right time is a challenge faced by every operator.AnQiCMS is a management system designed specifically for content operations, deeply understanding this, its built-in timer publishing function is precisely for this purpose.This seemingly simple feature actually contains strong strategic value and can help you achieve the automation and precision of content publishing.What is the timing publishing feature in AnQiCMS?In simple terms, it allows you to create and schedule content in advance (whether it's articles, press releases,

2025-11-06

How to batch replace specific keywords or links in the AnQiCMS background?

## SecurityCMS Batch Keyword and Link Replacement: The Efficiency Multiplier for Content Operations As an experienced website operations expert, I am well aware that in daily content management, it is a common and time-consuming task to batch replace specific keywords or links on the website.Whether it is the upgrade of the brand name, the unification of product terminology, the update of broken links, or the global anchor text adjustment for SEO strategy, manually modifying thousands of articles one by one is undoubtedly a nightmare-like task.Fortunately, AnQiCMS (AnQiCMS) deeply understands the pain points of operators

2025-11-06

How to operate the document recycle bin function? How long will deleted documents be retained?

## SecureCMS Document Recycle Bin Function Detailed Explanation: Peace of Mind Management, A Comprehensive Guide from Deletion to Restoration In the world of content management, accidental operations always cause concern.Hard work writing and carefully formatted articles, accidentally clicked "delete", and they disappeared instantly, that anxiety is something that every content operator can deeply understand.Luckyly, AnQiCMS (AnQiCMS) deeply understands user needs and provides a solid 'safety net' for your content assets - the powerful document recycling station feature.

2025-11-06

How to manage single pages (such as About Us, Contact Us) in AnQiCMS and set custom templates?

As an experienced website operations expert, I know that when building a professional and user-friendly website, those seemingly simple but crucial 'single pages' play an indispensable role.From 'About Us' to 'Contact Us', these pages carry the core information of the company and are the foundation of brand image and user trust.In AnQiCMS (AnQiCMS) such an efficient and powerful content management system, the management and customization of single pages are also given great flexibility, allowing operators to easily create unique and exquisite exclusive pages.### Single Page in AnQi CMS

2025-11-06

How to upload and manage images, videos, and other media resources in AnQiCMS?

As an experienced website operations expert, I know that in the era of content marketing, high-quality media resources are the key to attracting users, improving user experience, and even optimizing search engine rankings.AnQiCMS (AnQi CMS) provides a powerful and intuitive set of features in this regard, making the upload and management of media resources efficient and easy. Next, I will focus on how to upload and manage images, videos, and other media resources in AnQiCMS?This topic, for you to understand how AnQiCMS empowers your content operation.--- ###

2025-11-06