In the Anqi CMS,flagRecommended attributes are a very practical feature in content operation, allowing us to categorize and label document content, thereby realizing personalized display and filtering in different areas of the website.Understanding the meanings represented by these brief letter codes can help us manage and present website content more efficiently.

FlagWhere can I find the properties?

This is an important one.flagThis property appears in several key interfaces. It is not only a characteristic of the document itself, but also an important basis for our query and filtering of documents.

Firstly, in obtainingthe document detail interface(archive/detailThe return parameter will show, you will seedataThere is a field containing aflagField. The value of this field represents which recommended attributes are assigned to the current document. For example, if a document is a headline, it may have a recommended attribute associated with it.htag.

Secondly, in obtainingDocument List Interface(archive/list) ,flagThe attribute is not only one of the properties of each article in the return result, but can also be used as a request parameter. This means that you can not only find the articles of eachflagcan also be filtered and retrieved based on specificflagvalues to get the document list you want. For example, if you want to get all recommended articles, you can specify it in the requestflag="c".

analyze variousFlagrecommendation attributes

【en】A single-character tag set has been preset for us by Anqi CMSflagEach of these tags represents different types of content recommendation or display. Let's go through these commonly used tags one by one:

  • hTop News / Bold his a special marker, in the document it is defined as "Top News" and "Bold". Usually, when we mark a documenthWhen marked as [Top News], it means that this content has the highest priority and is suitable for prominent display at the top of the website homepage, category pages, and other visible positions to attract user attention.As for the 'bold', it is more of a hint to the front-end to treat the title as bold in display to enhance the visual effects, but its core function is still to act as an important level mark for the content.

  • cRecommended cRepresents 'Recommended'. This is the most commonly used one.flagThis indicates that this document is considered high-quality content worthy of recommendation by the website operator.Generally, this content can appear in modules such as "Hot Recommendations

  • f: Slide fRepresents 'Slide'. If your website's homepage or a specific page has a carousel, slide area, then it hasfThe documents marked are prepared for these areas. This type of content usually requires high-quality images as covers to achieve good display effects in the carousel.

  • a: Recommended arepresents "Recommended". This property's recommendation level is usually higher than "Recommended"cCan be understood as "Special Recommendation" or "Premium Recommendation."Applicable to content that is very important, time-sensitive, or of high value, which may be displayed in a dedicated 'Featured' area of the website.

  • s: Scroll srepresents "Scroll". Properties with thisflagThe document, commonly used in website modules such as 'Scrolling News', 'Announcements', or 'Latest Updates', etc., these modules usually present content titles in a running text or automatic scrolling manner to maintain a sense of real-time information updates.

  • p: Picture pRepresents “image”.This attribute indicates that the document is mainly image content, or it is very suitable for presentation in the form of images.pAggregate the marked documents to form a picture wall or picture list.

  • j: Redirect jRepresents “redirect”. ThisflagMarking that this document is not a regular content page, but an entry point to other pages or external links.When the user clicks, the article detail page will not open, but will be directly redirected to the preset link address. This is very convenient for publishing friendship links, promoting external cooperation, or creating special navigation entries.

FlagUse of the property: content operation strategy

Mastered theseflagmeaning, we can apply them flexibly to the content operation of the website:

  1. Background editing and managementIn the Anqi CMS backend, editors can select or fill in the corresponding options when publishing or editing documents, based on the nature of the content and display requirements.flagProperties. This greatly simplifies the classification and promotion of content, and the display style of content on the front end can be adjusted without modifying the code.
  2. Front-end Display and Filtering: ThrougharchiveListinterface, we can according toflagProperties can easily implement dynamic content calls on the frontend page. For example, calling the "头条区域" on the homepageflag="h"in the "推荐阅读" section of the sidebarflag="c"[en]The article. This way, even with a large content library, different types of content can be presented accurately at the appropriate locations.
  3. [en]Application of multi-attribute combinations[en]: A document can have multiple attributes at the same timeflagAn attribute, for example, a 'recommendation' 'headline' article, itsflagmay behc. When we arearchiveListrequestingflag="h", the system will return all articles containinghThe document of the property, whether it has it at the same time or notcThis design provides great flexibility, allowing a piece of content to have multiple display purposes.

Summary

Anqi CMS'sflagRecommended properties are a powerful tool for content management and website operation.It helps us to fine-tune and filter content in a concise and efficient manner, thereby enabling personalized and dynamic content display on the website's frontend, greatly enhancing user experience and the discoverability of content.flagCan make your website content more attractive and rich in layers.


Common Questions (FAQ)

  1. Q: Can a document be set with multiple properties? For example, both a headline and a recommendation?flagA: Yes, a document can have multiple settings at the same timeflagproperties. In AnQi CMS, it is usually to combine multipleflagcharacter combinations into a string, for examplehcmeans that this document is both a headline (h) and a recommendation (c) as well.archiveListWhen querying through the interface, if you requestflag="h", all containinghThe documentation of properties will be returned, which gives the content great flexibility.

  2. Q: The details of the document mentionhIt represents both 'headline' and 'bold', what is the difference between these two meanings?A: In practical applications,hPrimarily used as a more advanced recommendation attribute called 'Headline', indicating the importance of the content. 'Bold' is usually a frontend style representation, which may mean that it containshThe document title of the property will be bold by default when displayed to highlight it. But in content filtering and logical judgment,hMore it reflects the classification role of 'Headlines' rather than a simple text format.If you need more detailed formatting control, it is usually combined with CSS or the content editor to achieve this.

  3. Q: How do I base onflagDo properties display different content modules on the front-end page?A: You can call the interface provided by Anqi CMS.archiveListand passflagto implement the parameter. For example, in the "精品推荐" module on the homepage, you can requestarchive/list?flag=a&limit=5to get 5 specially recommended articles; in the "图片精选" module, you can requestarchive/list?flag=p&limit=8. In this way, differentflagProperties can correspond to different content display areas, making the website layout more flexible and personalized.