As an experienced veteran in the field of CMS content operation, I am well aware of the importance of tag management for website content organization, search engine optimization (SEO), and user experience.The Anqi CMS provides a solid foundation for our refined content operations with its flexible content model and powerful features.Next, I will elaborate on how to effectively manage document tags in Anqi CMS and ingeniously apply them to different types of content models.
Overview of document tags in Anqi CMS
In AnQi CMS, document tags are a flexible metadata used to describe keywords or themes of content.Different from the strict classification system, tags allow us to classify content in a more granular, multi-dimensional manner.The document tag is cross-category and cross-content model, which means a tag can be associated with articles in different categories, and even documents under different content models such as articles and products.This flexibility greatly enhances the relevance and discoverability of content, helping users quickly find the content they are interested in through keywords, and also provides richer semantic information for search engines.
Manage document tags in AnQi CMS backend
Aqin CMS provides an intuitive interface to manage our document tags.To access the label management interface, we usually navigate to the "Content Management" section of the backend and select the "Document Label" option.Here, we can add, edit, and delete all tags on the website.
When creating a new tag, we can fill in multiple keyword fields.The label name is the name displayed on the front end and identified in the background.The next is the 'index letter', this field is used for the initial sorting or indexing of tags, and it can only be a single letter from A-Z.A very important field is "Custom URL", which allows us to set a friendly, SEO-friendly URL path for the tab page.The custom URL must ensure uniqueness across the entire site. If the system detects a duplicate, it will automatically add a suffix to ensure its uniqueness.In addition, fields such as 'SEO Title', 'Tag Keywords', and 'Tag Description' are designed to enhance the search engine visibility of the tag page, helping it to rank better in search results.Among them, "label keywords" should be separated by English commas for multiple keywords, while "label description" can be used to generate the meta description of the label page.
Apply tags to different content models
One of the core strengths of AnQi CMS is its "flexible content model" feature, which allows us to customize the content structure according to business needs, such as creating an "article model" to publish blog posts or news information, as well as a "product model" to display product details.The design of document tags fully considers this flexibility, allowing us to apply the same or different tags to documents under any content model.
When creating or editing a document (whether an article or a product), we can find the "Tag" section in the document editing interface.This area usually provides an input box, where we can enter the label name.The Anqi CMS intelligently recognizes existing tags and provides associative selection.If the input is a new tag, just press Enter after the input, and the system will automatically create a new tag and associate it with the current document.This convenient operation method ensures that the label can be immediately connected to the specific document in the content model, regardless of the type of content model the document belongs to.In this way, an article about 'mobile phone reviews' and a product of the 'latest model smartphone' can share tags such as '5G', 'smartphone', etc., thereby establishing an organic connection between different content models.
Display and utilize tags in the front-end template
The value of tags is not only reflected in backend management and document association, but more importantly in their display and interaction on the front-end page.AnQi CMS provides rich template tags, allowing us to flexibly display labels and content based on tags at any location on the website.
On the document detail page, we often need to display tags associated with the current document. This can be achieved bytagListtags. For example, by calling{% tagList tags with itemId=item.Id limit="10" %}, we can obtain the current document (byitemIdSpecify) up to 10 tags andforLoop through these tags to generate a list with tag names and links. Clicking on these tags will take the user to the aggregation page of the tag.
To provide a better user experience and SEO effect, Anqi CMS usually generates an independent aggregation page for each tag, displaying all documents with that tag. For example, on these tag aggregation pagestag/list.htmlTemplate), we can usetagDataListTags to list all documents related to the current tag. This tag supports various parameters, such astagId(Automatically retrieve the current tag ID),moduleId(Specify the content model),limit(Limit the number of displayed items) as well astype="page"(Used for pagination). Combinepaginationtags, we can easily build a fully functional tag document list page.
Except for specific documents or tag pages, we can also display a 'popular tags' or 'all tags' cloud in the sidebar or footer of the website. At this time, it is not necessary to specifytagListlabel'sitemIdorcategoryIdParameters, only uselimitUse parameters to obtain a universal tag list to improve the overall discoverability of content.
SEO strategy and **practice of tag management
Effectively manage and utilize document tags, which can positively promote the SEO of a website.The custom URL feature allows tag pages to have clear and keyword-rich URL structures, which is crucial for search engines to understand the page theme.Set independent SEO titles, keywords, and descriptions for tags to allow these aggregated pages to better participate in search engine rankings.
In the process of applying labels, we should follow some practices.First, avoid overusing tags, each document should only be associated with the most relevant and valuable few tags.Too many tags can dilute the weight of each tag and may also lead to internal competition.Secondly, maintain consistency in labels, use uniform names and naming conventions, and avoid creating labels with the same meaning but different names (for example, "phone" and "mobile phone").Finally, regularly review and optimize the tag list, remove tags that are not commonly used or duplicated, and add relevant tags based on content trends and user behavior to ensure that the tag system remains vibrant and relevant.
In summary, the document tags in Anqi CMS are powerful tools for connecting content, through refined backend management and flexible frontend display, we can not only improve the organization efficiency and user experience of website content, but also achieve significant results in content marketing and SEO.
Frequently Asked Questions
1. What is the core difference between document tags and document categories?
Documents and document categories are both ways of organizing content, but they differ in flexibility and hierarchical structure.Categories are typically hierarchical, with clear parent-child relationships, used to classify content under major categories (for example: News -> Industry News -> Technology Industry News). Each document usually belongs to one or a few categories. Tags are more flattened, without a fixed hierarchy, and can be freely associated across categories and content models, used to describe the specific topics, keywords, or attributes of content (for example, an article on 'smartphone reviews' and a product of 'the latest model phone' can be tagged with '5G', 'camera phone', and so on).The purpose of tags is to provide multi-dimensional, flexible association, enhancing the discoverability of content.
2. Can AnQi CMS set exclusive tags for different content models, or are tags universal?
In AnQi CMS, document tags are general and do not differentiate by category or model.This means that any tag you create in the background, theoretically, can be applied to any content model under documents, such as applied to articles and products at the same time.This point is in the documenthelp-content-tag.mdIt is explicitly stated that document tags are not categorized by type and model; the same tag can be used to label documents for different content models.This design is to maximize the relevance and discoverability of content, allowing different types of content to be connected through common tag themes.
3. How to get all documents under a specific tag in a front-end template?
In the AnQi CMS front-end template, you can usetagDataListTag to retrieve all documents under a specific tag. For example, if you want to display documents associated with the current tag on a tag aggregation page (such astag/list.html), you can use it in this way:
{% tagDataList archives with type="page" limit="10" %}
{% for item in archives %}
<p><a href="{{item.Link}}">{{item.Title}}</a></p>
{% endfor %}
{% pagination pages with show="5" %}
{# 分页导航代码 #}
{% endpagination %}
{% endtagDataList %}
This code snippet will retrieve the document list under the current tag ID (default is auto-retrieval)tagId), and display 10 articles per page at the same time, and also generate pagination navigation. If you need to specify a specific tag ID to retrieve the document, you can also pass it in thetagDataListtag explicitly.tagId="[你的标签ID]"Parameter.