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.