How to guide visitors to more related content naturally after they finish reading an article in content operation, which can not only significantly improve user experience, but also effectively extend the time visitors stay on the website, reduce the bounce rate, and thus have a positive impact on search engine optimization (SEO).A safe CMS understands this well, it provides an intelligent and flexible mechanism that allows us to easily implement this 'You may also like' content recommendation.
Content tags: The first step to building associations
The core of AnQi CMS realizing intelligent content association lies in its powerful "label" function.When editing articles in the background, we can add one or more tags to each article. These tags are like keywords or thematic categories of the content, but they are more flexible and detailed than traditional categories.
For example, an article discussing 'website SEO optimization techniques' can be tagged with 'SEO', 'search engine ranking', 'website promotion', and so on.These tags not only help us organize content, but more importantly, they build bridges for the interconnection of content in the Anqi CMS.The system analyzes these tags, enabling it to "understand" the potential connections between different articles, laying the foundation for subsequent intelligent recommendations.
In the AnQi CMS backend, adding tags to articles is a very intuitive process.In the "Publish Document" interface, find the "Tag Tag" section, where you can either select an existing tag or enter a new tag name and press Enter. The system will then automatically create and add it to the article.This convenient operation encourages us to set precise tags for each article, thus building a rich and accurate content association network.
The secrets of intelligent recommendations:archiveListlabel'stype="related"mode
It is not enough to add tags to achieve intelligent recommendations, the truly powerful place of Anqi CMS lies in how it converts these tags into actual recommended content. This is mainly through the templates inarchiveListTo implement tags, especially when we willtypethe parameter to"related".
When we use the template on the article detail page{% archiveList archives with type="related" %}Such code, AnQi CMS will default to recommending other articles with similar themes and publication dates based on the current article's category.This means that even without additional configuration, the system can provide a set of basic intelligent recommendations, which is very convenient for users who want to quickly build a website and have basic content association functions.
However, if we need to control the recommendation logic more finely, Anqi CMS also provides additionallikeparameters:
Intelligent matching based on keywords:
like="keywords"If you want the recommended content to focus more on the keywords of the article, you cantype="related"on this basislike="keywords"The parameter. At this point, the system will prioritize matching other articles that are highly契合 with the current article's keywords (especially the first keyword of the article).This is thanks to the built-in keyword library management function of AnQi CMS, which can help us standardize the use of keywords and ensure the accuracy of content recommendations.In this way, an article about 'AnQiCMS installation tutorial' can intelligently recommend related articles such as 'AnQiCMS deployment guide' or 'AnQiCMS multi-site configuration'.Handpicked related recommendations:
like="relation"For some scenarios that require human intervention and fine selection of related content, such as product page matching recommendations, AnQi CMS also provides:like="relation"Options. This means that when we edit articles in the background, we can manually specify which articles this content should be associated with and recommended.This gives us complete customization of recommendation capabilities, ensuring that every recommendation conforms to our preset operational strategy.
Display intelligent recommendations on the page
The process of displaying these smart recommendations to visitors is also very direct. Usually, we will use a concise loop at the bottom of the article detail page to list these recommended contents.
A typical template code snippet might look like this:
<div class="related-articles">
<h3>您可能也喜欢:</h3>
<ul>
{% archiveList relatedPosts with type="related" limit="5" %}
{% for item in relatedPosts %}
<li><a href="{{item.Link}}">{{item.Title}}</a></li>
{% empty %}
<li>暂无相关推荐文章。</li>
{% endfor %}
{% endarchiveList %}
</ul>
</div>
Through this code, the system will automatically query and display 5 recommended articles related to the current article topic. If combined withlike="keywords"orlike="relation"Parameters, the recommended accuracy will be further improved.
If you still want to display all the tags of the current article on the article detail page, for easy user exploration, you can usetagListTags:
<div class="article-tags">
<span>标签:</span>
{% tagList currentTags %}
{% for tag in currentTags %}
<a href="{{tag.Link}}">{{tag.Title}}</a>
{% endfor %}
{% endtagList %}
</div>
Optimize content association, enhance website value
By flexibly using the tag functions of Anqi CMS,archiveListlabel'stype="related"Pattern, our website not only provides visitors with a better browsing experience, but also achieves significant improvement in search engine optimization.A precise internal link structure helps search engine spiders better crawl and understand website content, and high-quality, relevant content recommendations can effectively extend user time on site, reduce bounce rate, and these are all key factors in building a high-quality website and obtaining a higher search engine ranking.
The intelligent tag and related document recommendation function of AnQi CMS provides a set of efficient and flexible tools for content operators. Whether relying on the system's default intelligent matching or through keyword and manual selection