How to manage and associate documents with tags in AnqiCMS?

Calendar 👁️ 73

As an experienced CMS website operation person in an enterprise security field, I fully understand the core value of tags (Tag) in content management and user experience.It is not only a valid supplement to content classification, but also a key tool for connecting relevant information, enhancing the internal link structure of the website, and optimizing search engine performance.In AnQi CMS, the management of tags and document association is designed to be intuitive and powerful, aiming to help operators efficiently organize content and enhance the convenience of user discovery.

The role of tags (Tag) in AnQi CMS and backend management

In Anqi CMS, tags are a cross-category, cross-model content association mechanism.Tags are more like topics or keywords of content rather than a strict classification system, and can be flexibly applied to documents of different types and themes.For example, an article about "website construction" and a product introduction about "SEO optimization" can both be tagged with "marketing", thus establishing a multi-dimensional association at the content level.

The tag management back-end is concentrated on the "Document Tag" page under the "Content Management" module.Here, the operator can add, edit, and delete all tags of the website uniformly.When creating or editing a tag, the system provides multiple key fields to ensure the completeness and SEO-friendliness of tag information:

FirstlyTag NameThis is the display name of the label on the front page, it should be concise and clear, accurately reflecting the content or topic it represents. Next isIndex letterIt is usually used to index tags in alphabetical order, making it easy for users to quickly search.

Custom URLIt is an important factor in improving SEO performance. Anqi CMS allows for the setting of independent static URLs for each tag, which helps search engines better understand the theme of the tag page.The system will automatically generate a pinyin URL based on the tag name, but the operator can also manually modify it as needed to ensure the uniqueness and readability of the URL.It should be noted that custom URLs support letters, numbers, and underscores only and cannot contain spaces.

In order to further optimize the search engine visibility of the tag page, Anqi CMS also providesSEO title/Tab keywordsandTab descriptionFields. These fields allow operators to customize exclusive TDK (Title, Description, Keywords) information for tag pages, making them more attractive in search engine results pages and thus improving click-through rates and rankings.Comma should be used between label keywords,Distinguish, this conforms to the inclusion habits of search engines.

This design of tags, independent of the classification and content model, gives operators great flexibility, enabling them to organize content from a more diverse perspective and meet complex content association needs.

Document and tag association mechanism

The value of a tag lies in its ability to effectively aggregate scattered document content.In AnQi CMS, the association operation between documents and tags is integrated in the "Add Document" or "Edit Document" interface, the operation process is very convenient.

In the document editing interface's "Tag" area, operators can directly add one or more tags to the current document.The system supports two methods: one is to select existing tags, quickly tag the document with related tags through keyword search or list selection;Another option is to create a new tag instantly, just type the text of the new tag in the input box, then press the Enter key, and the system will automatically convert it into a new tag and associate it with the current document.This 'what-you-see-is-what-you-get' creation method greatly simplifies the maintenance process of tags.

A document can be associated with multiple tags, which means the document can be found from different dimensions.For example, an article discussing “Go language programming” can be associated with tags such as “programming language”, “backend development”, and “technical sharing”.This multi-label association not only enhances the visibility of the document, but also provides users with a richer navigation path.

Calling and displaying tags in the front-end template (Tag)

To associate the backend management of tags with the document and implement it on the user-facing frontend page, it is necessary to make use of the powerful template tag system of Anq CMS.AnQi CMS provides dedicated tags for flexibly displaying tag lists, tag details, and document lists associated with specific tags in templates.

To display all popular tags on the website or related tags of a document, you can useDocument Tag List LabeltagList. This tag can be used to get a specified number of tags based on different parameters. For example, on the document detail page, you can{% tagList tags with itemId=item.Id limit="10" %}get the maximum 10 tags associated with the current document, then byforLoop throughtagsVariable, output the title and link of each tag. If you need to display the tag cloud of the entire site, you canitemIdthe parameter to0.

When the user clicks on a tag, they will be taken to the details page of the tag. At this point,Tag Details LabeltagDetailIt came in handy.tag/detail.htmlIn (or a similar label detail template), you can{% tagDetail with name="Title" %}to get the title of the current tag,{% tagDetail with name="Description" %}Get the description of the label to build a complete label detail page and display the background information of the label to the user.

What is more, users usually expect to see all documents associated with a tag on the tag detail page. At this point, it is necessary to useTag Document List LabeltagDataList. This tag can be used to specifytagIdRetrieve all documents under this tag. Combinetype="page"Parameters andPagination LabelpaginationOperators can easily be intag/list.htmlIn a (or similar tag document list template) to implement pagination display of documents under the tag. Users will be able to clearly browse all articles or products related to the tag topic.

The combination of these template tags ensures that the tags are seamlessly connected from creation to frontend display, providing users with a seamless content discovery experience, and also laying a solid foundation for the website's SEO.By carefully designing label strategies and front-end display, Anqi CMS can help operators effectively improve the organization and discoverability of website content.


Frequently Asked Questions (FAQ)

  • Question 1: What is the difference between tags and categories, and how should I choose to use them?Labels and categories are both content organization tools, but they focus on different functions.Categories are usually tree-like, hierarchically structured, used to organize content under a few clear themes, and a document typically belongs to only one main category.Tags are more flattened, they can cross categories and content models, used to describe multiple specific keywords or topics of content, a document can be associated with multiple tags.You can consider categories as the 'directory' of a website, and tags as the 'keyword index'.In practice, it is recommended to first build the main structure of the website using categories, and then use tags for more granular and flexible content association.

  • Question 2: How is the URL structure of the tag page set and optimized in Anqi CMS?The AnQi CMS supports setting custom URL aliases for tags and combines with pseudo-static rules to optimize the URL structure of tag pages.You can set a unique custom URL for each tag in the "Content Management" "Document Tags" section in the background.At the same time, under the "Function Management" and the "Static Rule" option, you can configuretagIndex(Label Home) andtagThe pseudo-static rules of (Label Document List Page), for exampletag===/tag-{id}(-{page})ortag===/topic/{filename}(-{page})A well-structured and meaningful URL helps improve the SEO performance of the tab page, making it easier for search engines to crawl and rank.

  • Question three: Can I display not only the tag name but also the number of documents associated with the tag in the Anqi CMS template?The document tags provided currently (tagList/tagDetailEtc.) can directly obtain the ID, title, link, and description of the tag, but there is no direct field for "number of associated documents." If you need to display the number of documents associated with a tag, you usually need to obtain it through programming logic on the backend or combine it in the front-end template.tagDataListLabel and its internal pagination information (TotalItems) to achieve indirectly. For example, when looping through labels, usetagDataListto get the document list of each label and readpages.TotalItemsProperty, but this may involve multiple database queries and front-end performance needs to be considered.

Related articles

How to customize fields in AnqiCMS content model and set their types and default values?

As an experienced AnQi CMS website operations manager, I am well aware of the importance of the flexibility of the content model for website operation efficiency and personalized content display.The powerful content model customization feature of AnQi CMS is instrumental in making it the preferred tool for small and medium-sized enterprises and content operation teams.Today, let's discuss in detail how to customize the content model fields in AnqiCMS and set their types and default values.

2025-11-06

How to manage document categories and set exclusive templates in AnqiCMS?

HelloAs a website operator who has been deeply involved in AnQiCMS for many years, I am very clear about the importance of efficient content management for attracting and retaining users.Document classification is not only the skeleton of content, but also the key to user experience and search engine optimization.Today, let's delve deeply into how to manage document categories finely in AnQiCMS and set up exclusive templates for them.

2025-11-06

How to operate the document recycle bin feature in AnqiCMS, and how long is the document retention period?

As a senior security CMS website operator, I am well aware that the core of content management lies in the management of the lifecycle of content, including creation, publication, and even the final deletion and recovery.AnQi CMS fully considered these operational needs from the beginning of its design, integrating a practical document recycle bin function to ensure the flexibility and security of content operations. ### Security CMS Document Recycle Bin Operation Guide In Security CMS, the document recycle bin provides an important content protection mechanism. It does not simply physically delete content, but adopts a "soft delete" strategy.

2025-11-06

How is the document thumbnail and SEO title set and effective in AnqiCMS?

As a website operator proficient in AnQiCMS, I am well aware of the power of content in the digital world and how to attract and retain users through carefully crafted content.In AnQiCMS, document thumbnails and SEO titles are an essential part of the content publishing process. They not only affect the visual presentation of the content but also directly relate to the performance of the content in search engines.Below, I will elaborate on how these two key elements are set and take effect in AnQiCMS.--- ###

2025-11-06

How to manage single page content and image video resources in the AnqiCMS background management?

As a website operator who deeply understands the operation of AnqiCMS, I know that efficient content management and optimization is crucial for attracting and retaining users.AnqiCMS with its concise and efficient architecture provides us with powerful tools to handle all aspects of the website.Today, I will elaborate on how to manage single-page content on the AnqiCMS backend, and effectively utilize images and video resources to enhance the content quality and user experience of your website.### Efficient Management of Single Page Content Single page, such as "About Us", "Contact Information", or "Service Introduction"

2025-11-06

What can be configured in the AnqiCMS global function settings for website basic information and security options?

As an experienced CMS website operation personnel in the security industry, I know that the foundation of a website lies in its perfect basic information configuration and reliable security protection.These global settings not only define the facade and identity of the website, but are also the key to ensuring the safe, stable, and efficient operation of the content.A enterprise CMS provides comprehensive and flexible configuration options, allowing operators to comfortably build and maintain their digital platforms. The detailed explanation of the global function settings of Anqi CMS, where you can configure the basic website information and security options.###

2025-11-06

How to create multi-level menus and customize navigation categories in the website navigation settings?

As a senior website operator, I am well aware of the importance of a clear and efficient website navigation for user experience and Search Engine Optimization (SEO).It is not only a map for users to explore the content of the website, but also a key for search engines to understand the structure of the website.AnQiCMS provides flexible and powerful website navigation settings, allowing us to easily create multi-level menus and customize navigation categories to meet the needs of different business scenarios.

2025-11-06

How does the homepage TDK setting affect the title, keywords, and description optimization of the website?

AnQi CMS is an enterprise-level content management system designed for small and medium-sized enterprises, self-media operators, and users with multi-site management needs, one of its core advantages lies in its deep support for search engine optimization (SEO).In website operation, the setting of the home page TDK (Title, Description, Keywords) is the cornerstone of SEO work, which directly determines the first impression and preliminary performance of the website on the search engine results page (SERP).At Anqi CMS backend

2025-11-06