The AnQiCMS (AnQiCMS) is a powerful content management system that provides great flexibility for content operators.In daily content publishing work, we often need to display specific content (such as news headlines, popular recommendations, advertising carousel images, etc.) in prominent positions on the homepage or category pages of the website.If relying solely on content publication time or views to control, it is often difficult to meet the refined operational needs.This is where the "Recommended Attributes" feature of AnQi CMS becomes particularly important, as it helps us accurately control the display position of front-end content, effectively enhancing the visibility of content and the operation effect of the website.

What are the recommended attributes, and what benefits do they bring to content display?

Recommended properties are an additional marking mechanism provided by Anqi CMS for content (such as articles, products, etc.).You can imagine it as attaching different 'tags' to the content, which can indicate that the content should be displayed in different special areas on the website front end.Through these properties, we can flexibly adjust the display priority and position of the content without changing the content release time or category.

Auto CMS is built-in with 8 recommended attributes, each attribute has a corresponding letter identifier, making it easy to call in the template:

  • Headline [h]: Usually used for the focus news, the most important announcements on websites, often displayed in the most prominent position at the top of the page.
  • Recommend [c]: 适用于编辑精选、值得关注的文章,可以在侧边栏、内容区域等位置展示。
  • Slideshow [f]: 专门为轮播图、焦点图设计,通常带有图片,在首页或特定页面的顶部以滚动形式展示。
  • [en] Recommended [a]: Similar to “Special Recommendation”, emphasizing its importance, it can be used for some important topics or events.
  • [en] Scroll [s]: 适用于小型滚动新闻、公告栏等,内容会以跑马灯或列表滚动形式出现。
  • 加粗 [English]: (Please note: This property shares the same identifier with 'Headline[h]', and attention should be paid when calling the template) may mean that the text will be displayed in bold in some display scenarios to attract users' attention.
  • [en] Image [p]: Indicates that the content is suitable for display in the form of pictures and text or pure images, such as image news streams.
  • [en] Jump [j]: 意味着点击该内容后,可能会直接跳转到外部链接或站内特定页面,而不仅仅是文章详情页。

The flexible use of these recommended properties can help us:

  • Increase the exposure rate of important content:Deliver key information to visitors quickly.
  • Optimizing user experienceThrough classification display, help users quickly find the content they are interested in.
  • Enhance the efficiency of content operationNo code modification is required to adjust the content layout, realizing dynamic updates.
  • Support SEO strategiesReasonable layout can enhance page authority, which is helpful for search engines to crawl and index.

How to set the recommendation attributes of content in the Anqi CMS background?

Setting the recommended attributes of the content is very intuitive. When we publish new content or edit existing content in the background, we can find the item 'Recommended Attributes' on the content editing page.

  1. Enter the content editing interfaceIn the Anqi CMS backend, navigate to 'Content Management' -> 'Document Management', then select 'Add New Document' or edit an existing document.
  2. Find the recommended attribute area:On the right or below the document editing page (the specific location may vary slightly depending on the backend interface version), there will be a section named "Suggested Properties"。
  3. Select recommended attributesHere will list all available recommended properties, such as
    • You can choose one or more properties based on the actual importance of the content and the expected display style.For example, an article that is both important news and beautifully illustrated, you can check both 'Headline[h]' and 'Image[p]' at the same time.
    • Please note that although multiple recommendation attributes can be set for an article in the background, only onearchiveListtag can usually be selected according to oneflagParameters are used to filter content (for example, only call "HeadlinesflagParameter is set individuallyarchiveListlabels.
    • Special attention should be paid to the fact that 'Top News[h]' and 'Bold[h]' share the same identifierhThis means that if the content is marked as both 'Headline' and 'Bold', when the template is usedflag="h"When called, it will match both types of content simultaneously. In actual operation, it may be necessary to decide whether to use both meanings based on specific needs and the implementation of the template.hProperties, or templates are only specially processed for one of the meanings.

By simple selection, you can give your content unique display capabilities. Save the content after setting up.

How to call and display the recommended attribute content in the front-end template?

Set the recommended properties first, and then you need to write code in the website's front-end template to call and display these contents. The Anqi CMS providesarchiveListtags, withflagParameter, can easily achieve this goal.

`archiveList