How does AnQiCMS display a list of recommended content related to the current article?

Calendar 👁️ 63

In content management and website operations, how to effectively attract visitors, extend their stay on the site, and guide them to discover more interesting content is a crucial issue.AnQiCMS provides a powerful and flexible mechanism, which helps us easily display the related recommended content list on the current article page, thereby greatly improving the user experience and the overall performance of the website.

Core mechanism:archiveListlabel'stype="related"property

AnQiCMS achieves content recommendation in the most direct and effective way by utilizing its powerfularchiveListtags, and cooperatetype="related"Property. When we are on an article detail page, this tag can intelligently recognize the current article and automatically fetch other related content.

By default,type="related"Based on the category of the current article, it recommends some nearby articles in the same category, which is a very basic and practical relevance judgment. But if you need more accurate recommendations, AnQiCMS also provideslikeParameters to refine the recommendation logic:

  • like="keywords":If you fill in keywords for the article when publishing it in the background (these keywords are usually also used for SEO optimization), thenarchiveListYou can use these keywords to find other articles with similar keywords for recommendation. This makes the recommended content more closely aligned with the theme of the article.
  • like="relation":For recommendation scenarios that require manual intervention, this parameter comes into play.You can manually specify other articles related to the current article when editing articles on the AnQiCMS backend. This way,archiveListOnly show the content you explicitly specify, achieving highly customized recommendations.

It is very intuitive to call such recommended content in the template. You just need to add it at the appropriate position in the article detail page.archiveListtags, and specifytype="related"andlimit(Control the number of displays), for example:

{# related 相关文档列表展示 #}
<div>
    <h3>相关推荐</h3>
    <ul>
        {% archiveList archives with type="related" limit="5" %}
            {% for item in archives %}
                <li>
                    <a href="{{item.Link}}">
                        <h5>{{item.Title}}</h5>
                        <p>{{item.Description}}</p>
                        {% if item.Thumb %}
                            <img alt="{{item.Title}}" src="{{item.Thumb}}">
                        {% endif %}
                    </a>
                </li>
            {% empty %}
                <li>暂无相关推荐内容。</li>
            {% endfor %}
        {% endarchiveList %}
    </ul>
</div>

In this code block,archivesis an array that contains recommended article information. You can easily obtain the titleitem.Title), link (item.Link),and thumbnail (item.Thumb) and brief descriptionitem.Description) of each article, and display them according to your page design.limit="5"It restricted the maximum display of 5 recommended items.

Enhance relevance: strategy using tags (Tags)

exceptarchiveListoftype="related"Outside of the properties, the tag feature of AnQiCMS is also a powerful tool for building related content lists. Tags can thematize content, allowing articles on the same topic to be associated with each other.

In the AnQiCMS backend, when you publish or edit an article, you can add multiple 'tags'.These tags are somewhat similar to topics, which can link content scattered in different categories through common keywords.For example, an article about 'SEO optimization techniques' can be tagged with 'SEO', 'website promotion', 'marketing strategy', and so on.

AlthougharchiveList type="related"Already intelligent, but if you want to recommend content strictly based on certain specific tags, you can adopt the following strategies:

  1. Display the tags of the current article:Firstly, you can display the list of tags associated with the current article on the article detail page. This itself can provide readers with clues for further exploration.
    
    <div>
        <strong>当前文章标签:</strong>
        {% tagList tags with itemId=archive.Id limit="10" %}
            {% for item in tags %}
                <a href="{{item.Link}}">{{item.Title}}</a>
            {% endfor %}
        {% endtagList %}
    </div>
    
  2. More articles based on tags:Next, you can combinetagDataListTags. Although this is usually used on tag detail pages

Related articles

How to display the title and link of the 'Previous' and 'Next' articles on the article detail page?

In website content operation, the navigation design of the article detail page is crucial.A well-designed user experience detail page that can clearly present the current content and naturally guide readers to browse more related or coherent articles.The display of the 'Previous' and 'Next' articles is a classic approach to enhance user stickiness and the efficiency of the website's internal link structure.AnqiCMS is an enterprise-level content management system developed based on the Go language, which fully considers the efficiency and flexibility of content management from the beginning of its design.It relies on a concise and efficient architecture

2025-11-08

How does AnQiCMS's 'Time Factor - Scheduled Publishing' feature affect the public display of content?

In the era where content is king, the timing and rhythm of website content release often determines its propagation effect and user reach rate.For content operators, manually launching content at every important moment is not only time-consuming and labor-intensive, but also prone to missing the opportunity due to carelessness.AnQiCMS knows this pain point and has specially introduced the "Time Factor-Scheduled Publishing" feature, aiming to make the content launch process more intelligent and accurate, providing users with a more relaxed content management experience.Understanding the operation mechanism of "Time Factor-Scheduled Publishing" In the AnQiCMS management background

2025-11-08

How to retrieve and display detailed information of a specific category, such as the category introduction and Banner image?

In website operation, clear and attractive categorization information is crucial for improving user experience and optimizing search engine performance.A well-designed category page can not only help users quickly understand the theme of the category, but also attract users by displaying relevant visual elements (such as banner images) and provide rich content for SEO.Strong and flexible features provided by AnQi CMS, making it easy to achieve these goals. ### Configure Category Information in AnQi CMS Backend Managing detailed category information in AnQi CMS is very intuitive.Log in to the backend management interface after

2025-11-08

How to display the category list and its hierarchical relationship in AnQiCMS template?

When building a website, a clear classification structure is the key to improving user experience and content discoverability.AnQiCMS with its flexible content model and powerful template engine, allows us to easily display category lists and their hierarchical relationships on the website front-end.Today, let's delve deeper into how to implement this feature in the AnQiCMS template.### Get to know the AnQiCMS category list tag: `categoryList` The AnQiCMS template is based on the Django template engine syntax in Go language

2025-11-08

How to loop through custom parameters of articles in a template (such as author, source)?

In AnQi CMS, flexibly displaying customized article parameters is the key to enhancing the personalization and information richness of the website content.In order to better describe product features, or to clearly mark the author and source in an article, custom parameters can provide strong support.The AnQi CMS provides a simple and efficient way to define and call these parameters, allowing you to easily display them in website templates. Next, we will step by step discuss how to implement the loop display of article custom parameters in Anqi CMS template.### Step 1

2025-11-08

How does AnQiCMS's 'Document Parameter Filtering' feature help users perform combined filtering of content lists on the front end?

Today, with the rich content of websites, how to help visitors quickly and accurately find the information they are interested in has become a key challenge in content operation.Imagine if your website had thousands of articles, products, or cases, and visitors could only filter through them with simple categorization and search, it would undoubtedly greatly reduce their exploration efficiency and satisfaction.AnQiCMS is well-versed in this field and has provided us with a highly efficient and flexible solution - the "document parameter filtering" feature.This feature is like an intelligent guide, able to meet various conditions we preset

2025-11-08

How to display the Tag list of articles and detailed information of a single Tag as well as associated documents in AnQiCMS?

How to effectively organize and display content in a content management system is the key to improving user experience and search engine friendliness.AnQiCMS provides a powerful Tag feature, helping us to classify and display content more finely.This article will provide a detailed introduction on how to flexibly use tags in AnQiCMS, including displaying tag lists, viewing detailed information of individual tags, and listing documents associated with specific tags.The role of tags in AnQiCMS Tags are a flexible content organization method in AnQiCMS

2025-11-08

How does AnQiCMS display the website message form and customize the form field display?

AnQi CMS: Flexible display and field customization of the website message form In website operation, the message form is an important bridge connecting users and the website.Whether it is to collect customer feedback, provide consulting services, or interact with users, a well-functioning and easy-to-use comment form is particularly important.AnQiCMS (AnQiCMS) is well-versed in this field, providing users with a powerful and flexible feedback form feature, which can be easily displayed on the website front-end and supports in-depth customization of form fields to meet various business needs.### One,

2025-11-08