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:
- Enhance content organization:Tags can describe content from multiple dimensions, linking seemingly unrelated documents through common keywords to form a content network.
- 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.
- 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"