As a senior security CMS website operations personnel, I am fully aware of the core status of content in website operations.High-quality content not only requires careful creation, but also an effective presentation method to attract and retain users.The "Recommended Attributes" (flag) feature provided by AnQi CMS is one of the key tools for accurate content presentation and improving user experience.

Deep understanding of AnQiCMS recommended attributes (Flag)

The recommended attribute of AnQi CMS, also known as Flag, is a special mark attached to document content.These tags transcend the traditional classification system, providing a more flexible and detailed way of categorizing content, thus enabling diverse display and management on the website front end.They are equivalent to the 'baton' of content editing, guiding the system on how to highlight, where to display, and in what form to present specific content.Use these properties reasonably to effectively increase the exposure of content, optimize the user browsing path, and it is an indispensable part of building a dynamic and attractive website.

How to set recommended attributes for documents

It is a straightforward and simple process to set recommended attributes for documents in the AnQi CMS backend.When you log in to the backend, go to the “Content Management” module, whether you are creating a new document or editing an existing document, you will find a setting area named “Recommended Attributes”.

This area lists all available recommended properties, each with a Chinese description and a brief single-letter code.You can flexibly choose one, several, or none of the properties based on the actual needs of the document and operational strategy.

  • Top News[h]: Usually used to mark the most important and most concerned news or articles on a website.
  • [en] Recommended[c]: Generally refers to high-quality content recommended by the system or editors.
  • Slide[f]:适用于需要在首页幻灯片或轮播图中展示的内容。
  • [en]Special Recommendation[a]:比“推荐”更高级别的特别推荐,可能占据更显眼的位置。
  • Scrolling[s]:适合在滚动新闻、公告栏等动态区域显示的内容。
  • Bold[h]:用于在列表或标题中突出显示内容,使其视觉上更醒目。(请注意,此处的auto翻译成English为:auto)[h]Shared the same code with the 'Headline', and its meaning needs to be distinguished according to the template logic or convention in practical applications.)
  • Image[p]: Indicates that the content contains important images or documents dominated by images.
  • Jump[j]English: Indicates that the document may contain an external link or a special internal jump link that requires handling.

Select the checkboxes before the corresponding properties to apply them to the document. After completing the selection, make sure to click the save button to ensure that the property settings take effect.

Utilize recommended properties to achieve flexible display of front-end content

Once the recommended properties of the document are set, we can precisely control the way these contents are presented on the website through the front-end template tags. The Anqi CMS mainly usesarchiveListandarchiveDetailTwo template tags are used to handle recommended attributes.

Filter and display specific attribute content on the list page:

To display content with certain recommended attributes in specific areas of the website, for example, allocating a column on the homepage to show all "recommended" articles, we can usearchiveListlabel combined withflagParameters. For example, to call all documents marked as “Recommended[c]{% archiveList archives with type="list" flag="c" limit="10" %}.

It should be noted that in the samearchiveListin the tag,flagParameters can only be used to filter one specific recommendation attribute at a time. This means that you need to configure a separate one for each type of recommendation content that needs to be displayed individually (such as “Headlines”, “Sliders”)}]archiveListLabels, to create clear, focused content blocks.

Exclude specific attribute content from the list page:

Sometimes, we may wish that certain content with specific attributes do not appear in the normal document list.For example, if the content of your 'slideshow' is already displayed in the homepage carousel, you may not want them to appear again in the 'latest articles' list.archiveListTagsexcludeFlagParameters:{% archiveList archives with type="list" excludeFlag="f" limit="10" %}This can effectively avoid content repetition and maintain the page's neatness and logical presentation.

Display recommended attributes in the document details page or list.

If you need to display the recommended attributes of the document directly on the detail page of the document, or display them in the document list (if the list tag is configured to display Flag), you can directly access the document object.FlagField. For example, in the document detail page, you can use{{archive.Flag}}to display all recommended properties of the document. InarchiveListloop, if recommended properties usage is setshowFlag=true, then{{item.Flag}}The recommended properties applied to this document will be displayed, usually presented in the form of a comma-separated string (for example,This is very useful for adding additional visual identifiers or metadata to content.

recommended properties usage**Practice

  • Unified planning:Before using recommended properties, it is best to communicate with the team internally first, define clear purposes and display positions for each property. For example, uniform regulations[f]used only on the homepage slider,[h]Only for the headlines of various channels.
  • Avoid Abuse:Not all content needs a recommendation attribute. Overuse can dilute its value, making it difficult for users to distinguish between truly important content.
  • Combined with template design:The value of the recommended attribute is ultimately reflected in the frontend display. Work closely with the template designer to ensure that each attribute is presented visually appropriately, for example, "bold[h]The content title is displayed in bold, slide.[f]The content is displayed in a large picture carousel.
  • Regular review:With the change of the website content strategy, it is recommended to regularly check and update the recommended properties of documents to ensure they always meet the current operational objectives.

Through these detailed settings and strategic applications, the recommendation attributes of Anqi CMS will become a powerful assistant for your content operation, helping you organize and display website content more effectively, and enhance the overall user experience.