How to display the list of recommended content related to the current document in AnQi CMS?

Calendar 👁️ 67

When operating a website, we often hope that users can smoothly find more interesting content after reading an excellent article.This not only extends the user's stay time, reduces the bounce rate, but is also an effective way to enhance the overall content value and SEO performance of the website.AnQi CMS knows this, and therefore it provides various flexible ways to display the list of recommended content related to the current document, helping us better guide users.

To implement relevant content recommendations, we first need to understand how Anqi CMS defines 'relevant'.In system design, 'related' can be reflected at several levels: it may be the same category articles under the same content model, having similar keywords or tags, or content manually specified as strongly related in the background.Based on these different association logic, Anqi CMS provides powerful template tags, allowing us to easily implement these recommendations on the frontend page.

Core tags:archiveListusefulness

In the AnQi CMS template system,archiveListThe tag is undoubtedly the core tool for obtaining a content list. It can not only pull regular articles or product lists but is also good at intelligently filtering out the recommended content we need according to different parameter combinations.

The most direct way is to utilizearchiveListlabel'stype="related"Parameter. When you use this parameter on the article detail page, the system will intelligently find other articles that are adjacent or similar to the current article category for recommendation.You can even further refine this definition of 'relevant':

  • Intelligent matching based on keywordsIf you want to recommend content that is highly matched with the current article keywords, you can addtype="related"on this basislike="keywords"Parameter. In this way, the system will prioritize the analysis of the keywords of the current article and recommend articles with a higher degree of keyword overlap to ensure the accuracy of the recommendation.
  • Manually specify the association in the background.: For some articles that require our manual intervention to establish clear associations, such as the preceding and following parts of a series of tutorials or the accompanying introductions of specific products, we can manually link them when editing articles in the background. At this time, inarchiveListUsed in tagstype="related"coordinate withlike="relation"Parameters can accurately retrieve these carefully selected associated content.

Use tags (Tag) to establish multi-dimensional associations

In addition to the aforementioned direct association methods, the 'Tag' of the article is also a powerful tool for building a recommended content list.The Anqi CMS allows us to add multiple tags to each article, which are like 'interest points' for the content.

To use Tag for recommendations, you can first go throughtagListLabel to get all the Tags of the current article, and then use these Tag IDs to combinetagDataListUse tags to search for other articles with the same Tag. This method can break through the limitations of single categories, recommend content from a broader range of interest areas, and make the recommendation list more diverse and varied.

Flexible application of recommendation attributes (Flag)

When publishing articles on the Anqi CMS backend, we often see options for 'recommendation attributes', such as 'Top [h]', 'Recommended [c]', 'Slideshow [f]', and so on.These flags are not only used to display on the homepage or in specific modules, but they can also become filtering conditions for building recommendation lists.

For example, you can set up a "Featured Recommendations" module in the sidebar of the article detail page, byarchiveListthe tag withflag="c"(Recommended) orflag="a"Recommended parameters, you can filter out those articles marked as high priority recommendations, even if they are not directly related to the current article, but they are still the content we want to highlight for users.

Previous/Next: The most natural context recommendation

Sometimes, the simplest recommendations are also the most effective. In many series of articles or blogs with high update frequency, 'Previous' and 'Next' links are the most natural way to recommend.Security CMS provided for thisprevArchiveandnextArchiveThese convenient tags. They can automatically retrieve the direct previous and next documents of the current article without any parameters, providing users with a smooth reading experience.

Application scenarios of the recommended content list.

These flexible recommended content lists usually appear in multiple locations on the website to achieve **effect:**

  • Article detail page bottomAfter the user reads the current article, the relevant recommendations displayed at the bottom can naturally guide them to the next reading phase.
  • SidebarNo matter it is "Hot Recommendations", "Latest Releases" or "Related Topics", the sidebar is an ideal location to display a compact recommendation list.
  • Content Aggregation PageIn the category page or tag page, in addition to displaying the main content of the current category or tag, some "Guess You Like" content related to the theme but across categories can also be interspersed.

By cleverly usingarchiveList/tagDataListas well asprevArchiveandnextArchiveTags, combined with the backend's careful settings for article classification, keywords, tags, and recommendation attributes, we can build an intelligent and personalized content recommendation system for users.This not only significantly improves the user's browsing experience, but also brings a healthier traffic cycle and higher content value to the website.


Frequently Asked Questions (FAQ)

How to control the number of recommended content list displayed?

You can accessarchiveListortagDataListin the labellimitParameters to easily control the display number, for examplelimit="5"It will display 5 recommended items. If you need more complex control, such as starting from the 3rd item and displaying 5, you can uselimit="2,5"This format.

2. Can I recommend articles from different categories?

Of course you can. In usingarchiveListWhen labeling, if you do not specifycategoryIdParameter (or explicitly set tocategoryId="0"),the system will base on other conditions such astype="related"orflagSearch for related content throughout the entire site. If you want to specify multiple categories, you can separate the category IDs with commas, for examplecategoryId="1,2,3".

3. How to set up the 'related documents' in the backend for the frontend to calllike="relation"?

In the Anqi CMS backend, when you edit or publish articles, there will be clear options in the "Other Parameters" or similar area to allow you to select or add "related documents"。Generally, you can establish this manual association by searching or selecting existing articles.After setting up, the front-end usesarchiveList archives with type="related" like="relation"With such tags, you can retrieve these articles that you manually associated.

Related articles

How to get and display the previous/next content of the current document?

In content-based websites, providing visitors with a convenient navigation experience is crucial, among which the 'Previous' and 'Next' functions are standard features of the article detail page.They can not only guide users to continue browsing more content, effectively increase the website's PV (Page View), but also help search engines better understand the structure of the website's content to optimize SEO performance.AnQiCMS fully considered this requirement, providing us with very simple and intuitive template tags to easily implement this feature.### Learn about AnQiCMS template mechanism At

2025-11-07

How to display the detailed content of articles or products and support lazy loading of images?

A Guide to Displaying Content Details and Lazy Loading Images in AnQi CMS in Today's Digital World, the way websites present content directly affects user experience and search engine rankings.Whether it is a detailed article introduction or a beautiful product display, how to present the content efficiently and aesthetically to the visitors and ensure the website loading speed is a challenge that every operator needs to face.AnQiCMS (AnQiCMS) is a powerful content management system that provides us with flexible tools to meet these challenges.This article will delve into how to fully utilize the functions of Anqi CMS

2025-11-07

How to display document recommendation attributes (such as headline, recommendation) on the document list or detail page?

It is crucial to highlight the key content on the website in a content management system to attract users and increase page views.AnQiCMS (AnQiCMS) provides powerful document recommendation attribute functions, allowing website operators to flexibly mark and display articles.This article will introduce how to cleverly use these recommended attributes in the document list and detail page of Anqi CMS to make your website content more vivid and guiding.### Learn about the recommended features of AnQi CMS AnQi CMS has designed various recommended features for each document

2025-11-07

How to display a list of articles or products under a specific category in AnQiCMS?

In AnQiCMS, displaying a list of articles or products under a specific category is a common need in website content management.To build subpages under the navigation menu or to showcase selected content from different modules on the homepage, AnQiCMS offers a flexible and powerful way to achieve this goal.Understanding the content organization logic and the use of template tags will allow you to easily present the required content on the website.### Understanding AnQiCMS content model and categories Firstly, the organization of AnQiCMS content is based on "content model" and "categories"

2025-11-07

How to customize the display of thumbnail and cover images for articles or products?

In website content operation, the visual appeal of images is crucial.Whether it is to show the essence of an article or highlight the highlights of a product, a suitable thumbnail and cover image can greatly enhance the user experience and have a positive impact on the spread of content.AnQiCMS (AnQiCMS) offers rich and flexible features, allowing us to easily customize the display of images for articles or products according to specific needs.This article will introduce how to manage and display thumbnails and cover images in AnQi CMS from two aspects: background configuration and template calling.--- ### One

2025-11-07

How to display the page views and comment count of the document?

In website content operation, accurately displaying the document's page views and user comment numbers is a key indicator of the popularity and user activity of the content.AnQiCMS provides flexible and intuitive template tags, helping us easily display these important data in the various corners of the website without delving into complex backend logic.### Show view count and comment number on document detail page When you want to display the current view count and total number of comments on a single document detail page (such as an article, a product detail page), AnQiCMS's

2025-11-07

How to specify and display different templates for specific documents or categories?

AnQi CMS provides a flexible and powerful template management mechanism that allows users to specify and display unique templates for documents, categories, and even single pages based on different content types or specific needs.This feature greatly enhances the personalized display capabilities and operational efficiency of the website content.Understanding the significance of template customization In website operations, the diversity of content often requires different presentation methods.An in-depth technical article may require a concise and clear layout so that readers can focus on the content itself;A promotional activity page may require prominent visual elements and call-to-action buttons

2025-11-07

How to display extra field data under a custom content model in Anqi CMS?

In AnQi CMS, the flexibility of the content model is one of the highlights of the project, allowing us to create and manage various content structures according to the actual business needs.Whether it is an article, product, event, or any other information that requires a specific field to describe, it can be easily realized through a custom content model.After adding exclusive additional fields to these models, the next step naturally is how to accurately and beautifully display this valuable data on the website front-end.This is not a complex task, Anqi CMS provides intuitive and convenient template tags to complete it

2025-11-07