In content operation, effectively recommending relevant articles to readers can not only significantly increase user stay time and page views, but also indirectly promote the search engine to capture and allocate weight to the website content through internal link optimization.AnQi CMS is well-versed in this, providing a smart and flexible mechanism to help users easily implement the recommendation and display of related articles.
How to implement intelligent recommendation of related articles in AnQiCMS?
The AnQi CMS considers the balance between automation and manual intervention when designing the article recommendation feature, striving to ensure that the recommendation results are both accurate and controllable. Its 'intelligence' is mainly reflected in the following aspects:
Automatic matching based on content relevance:
- Keyword association: The system can identify the keywords of the article and automatically search for other articles with the same or similar keywords on the website to recommend.For example, an article about 'SEO optimization techniques' will be recommended by the system for other discussions on topics such as 'search engine ranking' and 'keyword research'.This is due to the fact that keywords can be manually filled in during article publication, even selecting from a keyword library, which lays a foundation for intelligent matching.
- Aggregation of articles in the same categoryIn most content management scenarios, articles in the same category often have a high degree of relevance.The Anqi CMS defaults to recommending other content under the current article's category.This means that if the user is reading an article under the 'website operation' category, the system will intelligently select more relevant operation skills, case studies, and other content from that category.
- Horizontal linking of tags (Tag):Besides the vertical attribution of categories, article tags provide a more flexible way of horizontal association.When multiple articles are assigned the same tags, such as "user experienceAnQi CMS also considers articles with these shared tags when recommending related articles, providing readers with a broader but still accurate reading path.
Precise intervention and enhancement of operation strategies:
- The decisive role of manual associationAlthough automated recommendations are powerful, in certain specific scenarios, content operators may need to specify more accurately which articles are 'related'.AnQi CMS provides the function of directly setting related articles in the article editing interface.In this way, the operator can manually establish associations between articles based on their deep understanding of the content and marketing objectives, ensuring the absolute accuracy of recommendations.
- Flexible application of content attributes: Anqi CMS articles support various recommendation attributes (such as headlines, recommendations, sliders, etc.).Although these properties are not directly used in the matching logic of "related articles
By combining these two mechanisms, Anqi CMS can provide a highly efficient and flexible article recommendation solution for websites.
How to flexibly display related articles on a page?
AnQi CMS, through its powerful template tag system, makes the display of related articles intuitive and highly customizable. The core lies inarchiveListTags, especially when used withtype="related"parameters.
In the template of the article detail page, we can usearchiveListtags to call related article data. Here is a common display method:
{# related 相关文档列表展示 #}
<div class="related-articles-section">
<h3>相关阅读推荐</h3>
<ul>
{% archiveList archives with type="related" limit="5" %}
{% for item in archives %}
<li>
<a href="{{item.Link}}">
<img src="{{item.Thumb}}" alt="{{item.Title}}" class="article-thumb" />
<h4>{{item.Title}}</h4>
<p>{{item.Description|truncatechars:80}}</p>
</a>
</li>
{% empty %}
<li>
当前没有相关文章推荐。
</li>
{% endfor %}
{% endarchiveList %}
</ul>
</div>
Let's decode this code:
{% archiveList archives with type="related" limit="5" %}:archiveListIt is the core tag used by Anqi CMS to obtain the article list.archivesIt is the variable name we define for the article list data obtained, you can use it in{% for item in archives %}Using a loopitemto access the details of each article.type="related"is a key parameter, it tells the system that we need to get articles related to the current article.limit="5"It specifies the number of related articles we want to display, here it is up to 5 articles. You can adjust this number based on the page layout and requirements.
- In
archiveListWe use within the tag.{% for item in archives %}To iterate over each relevant article obtained. - Inside the loop,
itemRepresents the current article object being processed, we can access various properties to build the display content:{{item.Link}}Get the link address of the article.{{item.Thumb}}Get the thumbnail address of the article, used to display in the list or card.{{item.Title}}Get the article title.{{item.Description|truncatechars:80}}Get a brief description of the article and usetruncatechars:80The filter truncates it to a maximum of 80 characters to prevent content from being too long and affecting the layout.
{% empty %}: It is a very practical tag, whenarchiveListIt will display when no relevant articles meeting the conditions are found{% empty %}The content in the block, rather than leaving it blank, improves the user experience{% endarchiveList %}: indicatesarchiveListEnd of tag.
Furthermore,type="related"It can also be配合likeparameters for more detailed control:
like="keywords"If you want the relevant articles to be mainly matched based on keywords, you can use it in this way:{% archiveList archives with type="related" like="keywords" limit="5" %}The system will match other articles based on the first keyword of the current article.like="relation"If the related article is manually set in the background, the precise associated content can be displayed using:{% archiveList archives with type="related" like="relation" limit="5" %}.
In this way, we can easily display related articles at the bottom or sidebar of the article detail page, beautifully, greatly enriching the readers' reading experience.
Summary
AnQi CMS provides a powerful and flexible solution for intelligent recommendation and display of related articles.It cleverly combines the content association logic based on keywords, categories, and tags with the controllable manual association mechanism of the operator, ensuring the intelligence and accuracy of recommendations.At the same time, through intuitive and easy-to-use template tags, website builders can easily implement highly customized related article displays on the frontend page, thereby effectively enhancing user engagement and the overall content value of the website.Whether you want the system to automatically filter or need manual selection, Anqi CMS can provide strong support to make your website content more attractive.
Frequently Asked Questions (FAQ)
Q1:archiveListin the labeltype="related"andlike="keywords"/like="relation"What are the differences between these parameters?
A1: type="related"It indicates the list of articles related to the current article you want to obtain.like="keywords"andlike="relation"It is a further definition and filtering rule for 'related'.
- When only using
type="related"Not specifyinglikeWhen the parameter is specified, Anq CMS will comprehensively consider the current article's category, keywords, and other factors to automatically match the closest article. like="keywords"The system will focus more on the keywords of the current article, searching for other articles containing the same or similar keywords to recommend.like="relation"It will be displayed first and only in the article editing backend, manually set by the operations personnel. This provides the operator with the highest level of precision control.
Q2: Can I recommend related articles on other pages besides the document detail page?
A2:Theoretically, it can, buttype="related"This intelligent recommendation mode is based on the context of the "current article", therefore it works effectively on the document detail page... If you want to recommend articles on the homepage, category page, or other non-document detail pages, you would usually usearchiveListOther parameters of the tag, such as throughcategoryIdSpecify popular articles under a specific category or throughflagFilter articles with specific operational tags (such as "Recommended
Q3: If I do not set keywords for the article or manually associate related articles, will the system still recommend related articles?
A3:I will. Even if there is no manual keyword setting or manual association, it belongs to Anqi CMS'stype="related"Labels will still try to recommend.It will default recommend other articles in the same category as the article.If the number of articles in the same category is insufficient, the system may also have a wider matching logic (such as recently published articles of the same model, etc.), in order to ensure that as much content as possible can be recommended, avoiding blank pages on the page, although the intelligence level of the recommendation may decrease.Therefore, it is recommended that you set keywords for the article as much as possible and use the manual association function to achieve **recommended effect.