How does AnQiCMS implement intelligent recommendation and display of related articles?

Calendar 👁️ 61

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:

  1. 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.
  2. 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.
  • InarchiveListWe 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 usingtype="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.

Related articles

How to display the links and titles of the previous and next articles on the article detail page?

When a reader visits an article of interest, they often hope to browse related or continuous content seamlessly, rather than returning to the list page to search again.Provide navigation links to "Previous" and "Next" articles on the article detail page of the website, which is an effective way to enhance this reading experience and increase user stickiness.It can not only guide users to explore the website content in depth, but also optimize the internal link structure of the website to a certain extent, making it friendly to search engines.AnQiCMS (AnQiCMS) is a powerful content management system that fully considers the needs of content operation

2025-11-08

How to call and display custom field content in the article detail page of AnQiCMS?

In AnQiCMS, managing and displaying content, custom fields play a crucial role, enabling our website to flexibly carry various unique information, not limited to common attributes such as titles and content.Whether it is to add detailed technical parameters for product detail pages or to supplement author biographies and external reference links for articles, custom fields can provide strong support.Understand how to call and display these custom fields on the article detail page, which will greatly enhance the richness and customization of the website content. AnQiCMS

2025-11-08

How to get and display the detailed information of a single article in AnQiCMS?

Managing and displaying content in AnQiCMS is one of its core functions.It is crucial to understand how to accurately retrieve and display the detailed content of a specific article when you need to present it to visitors.AnQiCMS provides a直观 and powerful template tag system that allows you to flexibly control the layout and content of the article detail page. ### Overview of AnQiCMS Template System The AnQiCMS template uses syntax similar to the Django template engine.In the template file, you will encounter two main markers: - **Double braces

2025-11-08

How to display all documents under the current category and its subcategories in AnQiCMS template?

In AnQiCMS template design, flexibly displaying content is the key to website operation.When you need to display articles under a category page not only, but also hope to present all subcategory articles together, or display them in a more structured way, AnQiCMS provides powerful template tags to meet these needs.This article will introduce in detail how to implement this feature in your AnQiCMS template.### Understanding AnQiCMS's classification and document mechanism In AnQiCMS, content is usually organized under "document model" and "classification"

2025-11-08

How to display the publish time and update time of articles in AnQiCMS templates?

Understand the publication and update time of an article, which not only helps readers judge the timeliness of the content and avoid outdated information, but also is an important consideration for search engine optimization (SEO).AnQiCMS as an efficient content management system provides flexible template functions, allowing you to easily display these key time information on your website.

2025-11-08

How to customize the URL static rules of the article detail page in AnQiCMS?

In website operation, a clear and friendly URL structure is crucial for search engine optimization (SEO) and user experience.AnQiCMS provides flexible URL rewriting (URL rewrite) functionality, allowing users to customize the URL format of article detail pages according to their needs.This article will introduce in detail how to customize the URL static rules for the article detail page in AnQiCMS.Why do you need to customize URL static rules?

2025-11-08

How to set the page title (Title) in AnQiCMS template and automatically append the website name?

In website operation, the page title (Title) is a crucial element, it not only directly affects the willingness of users to click in the search engine results page (SERP), but is also a key indicator for search engines to judge the relevance of page content.A clear, standardized title that includes the website brand name, which can effectively enhance the professionalism and brand recognition of the website.AnQiCMS provides a flexible and powerful mechanism for setting website titles, allowing you to easily control the title of each page and automatically attach the website name

2025-11-08

How does AnQiCMS dynamically display the page keywords (Keywords) and description (Description)?

AnQiCMS has always been committed to providing flexible and powerful functions in content management and SEO optimization, with the dynamic display of page keywords (Keywords) and descriptions (Description) being one of its core highlights.For any website that hopes to perform well in search engines, precise TDK (Title, Description, Keywords) configuration is indispensable.

2025-11-08