How to control the special display of articles in different areas of AnQiCMS's 'recommended attributes'?

Calendar 👁️ 59

In AnQiCMS, the "recommended attribute" is a very practical feature that allows us to refine the marking and classification of published content, thereby realizing a customized display in different areas of the website.The core of this feature lies in assigning specific "flags" or "tags" to articles, so that they can be selectively called in templates, thereby enhancing the exposure of content and the overall operational efficiency of the website.

What is the 'Recommended Attribute'?

In simple terms, 'recommended properties' are some special tags that we can add to an article when publishing or editing it.AnQi CMS provides eight preset recommended attributes, each attribute corresponds to a short letter identifier, which is convenient for calling in the front-end template.These properties include:

  • Headline [h]It is usually used to mark the most important and most concerned articles on the website, suitable for displaying in the most prominent position on the homepage.
  • Recommend [c]: Indicates that the article content is excellent and worth recommending to users, and can appear in areas such as the sidebar, related article lists, etc.
  • Slide [f]This type of article is often used in carousel or focus area to attract users with images and large headlines.
  • Special recommendation [a]: This article is recommended specially, it may have timeliness or special value, and is more prominent than ordinary recommendations.
  • Scroll [s]: Suitable for news bulletins, announcements, and other content areas that need to be scrolled on the page.
  • Bold [b]: Although named bold, in actual application, it is more like a general marker indicating that the content needs to be emphasized.
  • Image [p]: Specifically marks articles that are dominated by images and are suitable for display in areas such as photo walls and albums.
  • Jump [j]This kind of article is usually not for direct reading, but rather, clicking will jump to external links or other specific pages within the site.

On the article publishing interface, you can select one, multiple, or even no recommended attributes based on the characteristics of the article.This option is flexible, but remember that the letter identifiers corresponding to each recommended attribute are the key to the front-end call.

Why are 'recommended attributes' so useful?

The maximum value of this feature lies in the great flexibility it provides in content display, helping us better organize website content, improve user experience and content management efficiency:

  • Highlight key contentThrough properties like 'Headline' and 'Slider', you can easily place the most important or visually appealing content in the most prominent position on the website, quickly capturing the attention of visitors.
  • Enrich page layoutEach area of the website (such as the homepage, category page, sidebar, and article footer) has unique display requirements.The recommended attribute allows us to accurately allocate content to each area, such as displaying "recommended" articles in the sidebar and "related" articles at the bottom, thereby creating a more distinctive and attractive page layout.
  • Improve content discoverabilityWhen users browse specific types of content, they can be guided to discover more relevant or high-quality content through recommendation attributes, thereby increasing their time spent on the website.
  • Optimize operational strategy: Combine different recommendation attributes to target content marketing and SEO optimization, such as marking articles with high conversion rates as "Special Recommendation" for key display in specific promotional activities.

How to set the 'recommended attribute' of an article in the background?

It operates very intuitively. When you are in the AnQiCMS backend, under the "Content Management" section, adding or editing documents, on the right or below the article editing interface, there will be a setting area named "Recommended Properties".

This area is usually presented in the form of a set of checkboxes, each with a specific attribute name and its corresponding letter identifier, such as "Top News [h]", "Recommended [c]", and so on.You only need to check the corresponding properties according to the positioning and expected display effect of the article.After checking, remember to save the article, these properties will be successfully added to the article.

How to call an article with the 'recommended attribute' in the front-end template?

Display the set recommendation attributes on the website front-end, mainly depending on the template tag function of AnQiCMS, especiallyarchiveListThis powerful tag.

When you want to display articles with specific recommendation properties in a certain area of the website (such as a module on the homepage, the sidebar, or a category page), you can usearchiveListLabel, and by itsflagparameters to specify

Related articles

How to configure AnQiCMS to implement multilingual content switching and display?

Today, with the increasing popularity of globalization, multilingual support for websites is no longer an optional feature, but an important cornerstone for enterprises to expand into international markets and serve global users.AnQiCMS (AnQiCMS) is an efficient and customizable enterprise-level content management system that fully considers this requirement and provides a flexible multi-language content switching and display solution.This article will discuss in detail how to configure and manage multilingual content in AnQiCMS, allowing your website to easily face the world.--- ### One

2025-11-08

How to ensure that custom fields of the content model are correctly displayed on the front page in AnQiCMS?

In AnQiCMS, we often encounter situations where we need to display various personalized content.The built-in articles and product models are powerful, but sometimes they still cannot meet specific business needs.At this time, the custom fields in the content model become our helpful assistants, making website content management more flexible.But the custom field is set up, how can we ensure that they are displayed correctly on the website front-end for visitors to see?Today, let's delve deep into this issue. ### Custom Field Creation and Management of Content Model Firstly

2025-11-08

How to customize AnQiCMS URL static rules to optimize search engine link display?

In today's digital world, a clear, friendly, and easily searchable URL structure is crucial for the visibility of a website.As one of the core functions of a content management system, the custom ability of URL static rules can make your website perform better in search engines.AnQiCMS is a content management system that focuses on SEO optimization and provides very flexible static configuration options, allowing you to easily achieve this goal.### Understanding the Importance of URL Rewrite Static Firstly, let's briefly understand what a pseudo-static URL is

2025-11-08

How does AnQiCMS achieve independent display of multi-site content under different domain names?

When using AnQiCMS to build and manage websites, users often face the need to create independent sites for different brands, businesses, or regions, and they also hope that these sites can be displayed independently under their respective domain names.AnQiCMS powerful multi-site management function, which is designed to solve this pain point.It allows users to easily create and operate multiple websites with independent content and domain names on the basis of a set of AnQiCMS core programs.### AnQiCMS The Core Concept of Multi-Site Management AnQiCMS

2025-11-08

How can I automatically convert AnQiCMS document content to Markdown format and correctly render it on the webpage?

AnQiCMS as a powerful content management system provides great flexibility in content creation and presentation.For users accustomed to writing in Markdown syntax, AnQiCMS also provides convenient support, allowing content creators to focus on the text itself without paying too much attention to formatting details.Starting from version 2.1.1, AnQiCMS has deeply integrated support for Markdown editors, making it easy to format document content in Markdown and render web pages

2025-11-08

How to set image lazy loading in AnQiCMS to optimize page display performance?

Website loading speed is one of the key factors in user experience and search engine optimization.Among the many factors affecting page performance, images are often the elements that consume the most resources and take the longest to load.To provide users with a smoother browsing experience and improve the website's performance in search engines, it is particularly important to optimize the image loading strategy.AnQiCMS itself is known for its efficiency and lightness, developed in Go language, with excellent high concurrency processing capabilities and fast response speed.On this basis, by introducing the Lazy Load image technology

2025-11-08

How to display the category list and its hierarchical relationship in AnQiCMS template?

When building a website, a clear classification structure is the key to improving user experience and content discoverability.AnQiCMS with its flexible content model and powerful template engine, allows us to easily display category lists and their hierarchical relationships on the website front-end.Today, let's delve deeper into how to implement this feature in the AnQiCMS template.### Get to know the AnQiCMS category list tag: `categoryList` The AnQiCMS template is based on the Django template engine syntax in Go language

2025-11-08

How to retrieve and display detailed information of a specific category, such as the category introduction and Banner image?

In website operation, clear and attractive categorization information is crucial for improving user experience and optimizing search engine performance.A well-designed category page can not only help users quickly understand the theme of the category, but also attract users by displaying relevant visual elements (such as banner images) and provide rich content for SEO.Strong and flexible features provided by AnQi CMS, making it easy to achieve these goals. ### Configure Category Information in AnQi CMS Backend Managing detailed category information in AnQi CMS is very intuitive.Log in to the backend management interface after

2025-11-08