How can carefully crafted articles be seen by more readers and presented in the most prominent position on the website, which is the core concern of every operator.AnQiCMS provides a set of intuitive and powerful article recommendation attribute settings, helping us easily achieve fine-grained content management and front-end display optimization.This article will elaborate on how to use these properties to cleverly influence the sorting and display of your website's front-end content.
What is the article recommendation attribute?
When we add or edit articles on the AnQiCMS backend, we will notice the "Recommended Properties" item.It is not a simple classification or label, but a series of identifiers that confer a special "identity" on articles, intended to guide the system in treating and displaying these contents in a specific manner.These properties can help us mark articles as important content of different types, so that they can be displayed differently on the front page.
AnQiCMS provides a series of eight different recommendation attributes for us to choose from, each representing different display tendencies and operational purposes:
- Headline[h]It is usually used to mark the most important and most concerned focus articles, suitable for prominent positions on the home page, such as large carousel or headline area.
- Recommended[c]This is the most common recommendation type, suitable for modules such as "Recommended Reading", "Featured Articles", etc. on the website, used to present high-quality or promotional content.
- Slide[f]: Designed specifically for the carousel, articles marked as 'slide' will usually be displayed in the form of image + title in the homepage or other designated slide areas.
- Special recommendation[a]: Specifically recommended content, which may be used for a special topic, event page, or time-limited promotion of premium articles.
- Scroll[s]: Suitable for news scroll bars, bulletin boards, and other applications that require short content displayed in scrolling text format, which is usually time-sensitive information.
- Bold[h]In some designs, it may be used to visually emphasize article titles in lists, making them stand out among the content (note that the letters here are
hDuplicate with the headline attribute, but in actual use, AnQiCMS usually handles it as priority or distinguishes it in different calling scenarios) - Image[p]This indicates an article suitable for display mainly with images, commonly used in image lists, galleries, or areas that need to emphasize visual elements.
- Jump [j]This is a special attribute, usually indicating that this article itself is a link to an external page or another page within the site, which will jump directly when clicked.
These properties can be used individually, or combined according to the importance or display requirements of the article, for example, an article that is both a 'top story' and 'with images'.It should be noted that when the front-end template calls the content list, it can usually only be filtered and displayed based on one attribute.
How to set the article recommendation attribute?
Setting the recommended properties of the article is very simple and intuitive.Log in to the AnQiCMS backend, under 'Content Management', edit existing articles in 'Publish Document' or 'Document List', and find the 'Recommended Attributes' area.These properties are usually presented in the form of a series of checkboxes.
You only need to check or uncheck the corresponding properties based on the content characteristics and operational strategy of the article.For example, if you want a newly published article to be displayed in the homepage carousel, remember to check the 'Slide[f]' attribute when editing the article.After setting up, save the article, and the properties will take effect immediately.
How does the recommendation attribute affect the front-end content display and sorting?
The recommended attributes of the article are like special tags applied to the content, guiding the front-end template on how to present them to the user. The AnQiCMS front-end template is powerfularchiveListLabel to call the article list, one of the key parameters isflag.
When the template needs to display articles with specific recommended attributes, it will useflagParameters to filter. For example, if you want to display the latest headline news at the top of the homepage, your template developer may use something similar{% archiveList archives with type="list" flag="h" limit="5" %}such code to retrieve the content. Hereflag="h"Tell the system precisely, only retrieve the articles marked as 'headline'.
It needs to be emphasized again that while an article can have multiple recommendation attributes at the same time, each timearchiveListWhen calling the tag, it is usually only possible to specify oneflagFiltering properties. This means that if you want to display an article in the 'Top Stories' area and also in the 'Recommended Reading' area, you need to make sure that your template uses both areas when calling them separately.flag="h"andflag="c".
After filtering articles with specific recommended attributes, you can also combineorderparameters to further control their sorting, such asorder="views desc"(sorted by views in descending order, i.e., the most popular) ororder="id desc"(Sorted by ID in descending order, i.e., the most recent). This allows you to implement more refined needs such as 'displaying the most popular recommended articles' or 'showing the latest headlines'.
Content operation strategy: let the recommendation attribute maximize its value
Understood the settings and calling methods of the recommended properties, the next step is how to巧妙ly use them in content operation to maximize the value of the content.
- Emphasize the core contentUse "Headline[h]" and "Slideshow[f]" to push the most important, most time-sensitive, or most promoted content on the website to the C position on the homepage, attracting users to click.
- Build a special zoneWhen creating content for a specific topic or event, use the "Special Recommendation [a]" attribute consistently. Then, on the website's special page or sidebar, through
flag="a"Fetch this content, form content aggregation, enhance the user's in-depth reading experience on a specific topic. - Optimize the user discovery pathAt the bottom of the article detail page, you can fetch
flag="c"The "Recommended Reading" list, or intelligently match according to the content of the articleflag="p"The "related album", guiding users to continue browsing and reducing the bounce rate - Enhance timeliness of information exposureFor the latest announcements and industry news, mark as 'Scroll[s]'.