As an experienced veteran who deeply understands the ways 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 fine-grained 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 topics of the content.Tags allow us to classify content with a finer granularity and multi-dimensional categorization, unlike a strict classification system.Document tags are cross-category and cross-content model, which means a tag can be associated with articles under different categories, as well as documents under different content models such as articles and products.This flexibility greatly enhances the relevance and discoverability of content, helping users quickly find interesting content through keywords, and also provides richer semantic information for search engines.
Manage document tags in the AnQi CMS backend
The AnQi CMS provides an intuitive interface for managing our document tags.To access the tag management interface, we usually navigate to the 'Content Management' section of the backend and select the 'Document Tags' option.Here, we can add, edit, and delete all the tags of the website.
We can fill in multiple keyword fields when creating a new label.The translation of "首先是“标签名称”,这是标签在前端显示和后台识别的名称。" is: "The first is the label name, which is the name displayed on the front end and recognized in the back end."The term 'index letter' is used for the initial sorting or indexing of tags, and it must be a single letter from A-Z.An extremely important field is 'Custom URL', which allows us to set a friendly, SEO-friendly URL path for the label page.The custom URL must ensure the 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 intended to enhance the search engine visibility of the tag page, helping it to achieve a better ranking in search results.In which, the 'label keywords' should be separated by English commas for multiple keywords, and the 'label summary' can be used to generate the meta description for 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, and an 'Product Model' to showcase 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 tags" section in the document editing interface.This area usually provides an input box where we can enter the label name.The system intelligently recognizes existing tags and provides associative selection.If the input is a new label, simply press the Enter key after entering it, and the system will automatically create it as a new label and associate it with the current document.This convenient operation method ensures that the tags can be immediately connected to specific documents in the content model, regardless of the type of content model the document belongs to.In this way, an article about 'phone reviews' and a product of the 'latest model phone' can share '5G', 'smartphone', and other tags, thus establishing an organic connection between different content models.
Display and utilize tags in frontend templates
The value of tags is not only reflected in background management and document association, but more importantly in the display and interaction on the front-end page.The Anqi CMS provides a rich set of template tags, allowing us to flexibly display tags 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 done bytagListTag implementation. For example, by calling{% tagList tags with itemId=item.Id limit="10" %}, we can get the top 10 tags of the current document (specified byitemId), and inforLoop 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 a separate aggregated page for each tag, displaying all documents with that tag. On these tag aggregation pages (such as)tag/list.htmlTemplate), we can usetagDataListtags to list all documents related to the current tag. This tag supports various parameters, such astagId(automatically obtain the current tag ID),moduleId[Specify Content Model)]limit[Limited Display Quantity] as well astype="page"[Used for Pagination]. Combined withpaginationtags, we can easily build a feature-complete tag document list page.
In addition to specific documents or tabs, we can also display a 'Hot Tags' or 'All Tags' cloud at the sidebar or footer of the website. In this case, it is not necessary to specifytagListTagsitemIdorcategoryIdParameter, only for uselimitUse parameters to obtain a universal tag list, thereby improving the overall discoverability of content.
SEO strategy and **practice** of tag management
Effectively manage and utilize document tags can have a positive push on the website's SEO.The Custom URL feature allows label pages to have a clear and keyword-rich URL structure, which is crucial for search engines to understand the page topic.Setting independent SEO titles, keywords, and descriptions for tags allows these aggregated pages to better participate in search engine rankings.
During the label application process, we should follow some **practices.Firstly, avoid overusing tags, each document should only be associated with the fewest and most relevant and valuable tags.Too many tags can dilute the weight of each tag and may also lead to internal competition.Secondly, maintain consistency in tags, use unified names and naming conventions, and avoid creating tags with the same meaning but different names (such as "phone" and "mobile phone").Finally, regularly review and optimize the tag list, remove infrequently used or duplicate tags, 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 a powerful tool for connecting content. Through refined backend management and flexible frontend display, we can not only enhance the organization efficiency of website content and the user experience, but also achieve significant results in content marketing and SEO.
Frequently Asked Questions
What is the core difference between document tags and document categories?
Document tags and document categories are both ways of content organization, but they differ in flexibility and hierarchical structure.Categories are typically hierarchical, with clear parent-child relationships, used to organize content under major categories (e.g., News -> Industry News -> Technology Industry News).Each document typically belongs to one or a few categories.The 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 both be tagged with '5G', 'Camera phone', etc.).The purpose of tags is to provide multi-dimensional, flexible association, enhancing the discoverability of content.
Can the Secure CMS set exclusive tags for different content models, or are tags universal?
In AnQi CMS, document tags are universal, not categorized by type or model.This means that any tags you create in the background can theoretically be applied to documents under any content model, for example, applied to both articles and products simultaneously.help-content-tag.mdIt is explicitly stated: "The document tags are not classified by categories and models; the same tag can be assigned to documents of different content models simultaneously.This design is to maximize the relevance and discoverability of content, allowing different types of content to also be connected through common tag themes.
3. How to get all documents under a specific tag in a front-end template?
In the front-end template of Anqi CMS, you can usetagDataListTo get all documents under a specific tag, use the tag to filter. 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 auto-retrievaltagId),and display them in pages of 10 with pagination navigation. If you need to retrieve documents with a specific tag ID, you can explicitly pass it in the tagtagDataListsectiontagId="[你的标签ID]"Parameter.