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

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

Core tags:archiveListuses

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

The most direct way is to usearchiveListTagstype="related"Parameter.When you use this parameter on the article detail page, the system will intelligently find and recommend other articles adjacent or similar to the current article category.

  • Intelligent matching based on keywords:If you want to recommend content that highly matches the current article keywords,type="related"On the basis of, addlike="keywords"Parameters. In this way, the system will prioritize the analysis of the keywords of the current article and recommend articles with a high degree of keyword overlap to ensure the accuracy of the recommendations.
  • Manually specify the association in the background.For some articles that require our manual intervention and establish clear associations, such as the upper and lower parts of a series of tutorials, or the matching introductions of specific products, we can manually associate them while editing articles in the background. At this time,archiveListthe label usetype="related"and combine withlike="relation"参数,就能准确地调取出这些我们精心挑选的关联内容。

利用标签(Tag)建立多维度关联

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

要利用Tag进行推荐,你可以先通过tagListLabel gets all tags of the current article, and then uses these tag IDs, combinedtagDataListTranslate the content of 'auto' to 'English', and maintain the original JSON array format.This method can break through the limitations of a single classification, recommend content from a wider range of interest areas to users, making the recommendation list richer and more diverse.

Flexible application of recommended attributes (Flag)

When publishing articles on the AnQi CMS backend, we often see options such as 'Recommended Attributes', such as 'Headlines[h]', 'Recommended[c]', 'Sliders[f]', and so on.These flags are not only used to display on the homepage or specific modules, they can also serve as filtering conditions for building recommendation lists.

For example, you can set up a "Featured Recommendations" module on the side column of the article detail page,archiveListtag.flag="c"(Recommended) orflag="a"(Featured)Parameters, can filter out those articles marked as high priority recommendations, even if they are not directly related to the current article, but are still the content we hope to highlight to users.

Previous/Next: The most natural context recommendation

Sometimes, the simplest recommendation is often the most effective.In many series of articles or blogs with high update frequency, "Previous" and "Next" links are the most natural recommendation method.prevArchiveandnextArchiveThese convenient tags. They automatically retrieve the direct preceding and following documents of the current article without any parameters, providing a smooth reading experience for users.

Application scenarios of the recommended content list

These flexible recommended content lists often appear in multiple locations on the website, with the aim of achieving **effect**:

  • At the bottom of the article detail pageWhen users finish reading the current article, the relevant recommendations displayed at the bottom can naturally guide them into the next reading section.
  • Sidebar:Whether it is "Hot Recommendations", "Latest Releases", or "Related Topics", the sidebar is an ideal location for displaying concise recommendation lists.
  • Content aggregation pageIn the category page or tag page, in addition to displaying the main content under the current category or tag, some cross-category but theme-related 'You May Also Like' content can also be interspersed.

By cleverly usingarchiveList/tagDataListandprevArchiveandnextArchiveTags, and combining 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 can significantly improve the user's browsing experience, but also bring a healthier traffic cycle and higher content value to the website.


Common Questions (FAQ)

1. How to control the number of recommended content listings displayed?

You can usearchiveListortagDataListthe tag inlimitParameters to easily control the display quantity, for examplelimit="5"It will display 5 recommended items. If you need more complex control, such as displaying 5 items starting from the 3rd one, you can uselimit="2,5"this format.

2. Can I recommend articles from different categories?

Of course you can. When usingarchiveListtags, if you do not specifycategoryIdparameters (or explicitly set tocategoryId="0"), the system will use other conditions (such astype="related"orflagSearch for related content across the entire site. If you want to specify multiple categories, you can separate the category IDs with commas, for example,categoryId="1,2,3".

3. How to set the 'related documents' for articles on the backend so that the frontend can call themlike="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.archiveList archives with type="related" like="relation"Such tags can retrieve these articles that you manually associate.