As an experienced CMS website operation personnel, I fully understand the core position of content in website operation.High-quality content not only requires careful creation, but also effective presentation to attract and retain users.The 'recommended attribute' (flag) feature provided by AnQi CMS is one of the key tools for accurate content presentation and improving user experience.
Deep understanding of the recommended attribute (Flag) of AnQiCMS
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 to categorize content, thereby realizing 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 enhance the visibility of the content, optimize the user's browsing path, and it is an indispensable part of building a dynamic and attractive website.
How to set recommended properties for a document
It is a straightforward and simple process to set recommended properties 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 Properties".
This area lists all available recommended properties, each with a Chinese description and a short 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.These properties and their corresponding codes include:
- Headline
[h]It is usually used to mark the most important and most concerned news or articles on the website. - Recommended
[c]It generally refers to high-quality content recommended by the system or editor. - Slide
[f]:Applicable for content that needs to be displayed on the homepage slider or carousel. - Featured
[a]:A higher level of special recommendation than “Recommended”, which may occupy a more prominent position. - Scrolling
[s]: Content suitable for display in scrolling news, bulletin boards, and other dynamic areas. - Bold
[h]: Used to highlight content in lists or titles, making it visually more prominent. (Please note that the[h]Sharing the same code with 'Headline', its meaning needs to be distinguished according to template logic or convention in actual application. - Image
[p]: Indicates that the content contains important images or documents dominated by images. - Jump
[j]: Indicates that the document may contain an external link or an internal jump link that requires special processing.
Select the checkbox in front of the corresponding property to apply it to the document. After making your selections, be sure to click the Save button to ensure that the property settings take effect.
Utilize recommended attributes to achieve flexible display of front-end content
Once the recommended properties of the document are set, we can precisely control the presentation of these contents on the website through frontend template tags. Anqi CMS mainly usesarchiveListandarchiveDetailTwo template tags to handle recommended properties.
Filter and display specific property content on the list page:
To display content with certain recommended attributes in a specific area of the website, for example, by setting up a column on the homepage to display all 'recommended' articles, we can usearchiveListLabel collaborationflagParameter. 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 samearchiveListTagged,flagThe parameter can only be used to filter a specific recommendation attribute. This means that you need to configure an independent one for each type of recommendation content that you need to display separately (such as "Headlines", "Sliders")archiveListLabel to create clear, focused content blocks.
Exclude specific property content from the list page:
Sometimes, we may want certain content with specific properties not to appear in the normal document list.For example, if the content of your 'slide' has already been displayed in the homepage carousel, you may not want it to appear again in the 'latest articles' list.This can be used at this timearchiveListlabel'sexcludeFlagparameters:{% archiveList archives with type="list" excludeFlag="f" limit="10" %}This can effectively avoid content repetition, maintain the page's neatness and the logic of content presentation.
Display recommended attributes in the document details page or list.
If you need to directly display the recommended attributes of the document 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'sFlagField. For example, on the document detail page, you can use{{archive.Flag}}to display all the recommended properties of the document. InarchiveListloop, if you have setshowFlag=true, then{{item.Flag}}The recommended properties applied to the document will be displayed, usually presented in the form of a comma-separated string (for example, This is very useful for adding additional visual identification or metadata to content.
the use of recommended properties**Practice
- Unified planning:Before using recommended properties, it is best to communicate with the team internally first, defining clear purposes and display locations for each property. For example, a unified rule
[f]is only used for the homepage slider,[h]It is only used for the headlines of all channels. - Avoid abuse:Not all content needs a recommendation attribute. Overuse will dilute its value and make it difficult for users to distinguish between truly important content.
- Combined with template design:The value of the recommended attribute ultimately manifests on the front-end display. Collaborate 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 image carousel. - Regular review:With the change of the website content strategy, regularly check and update the recommended properties of the documents to ensure that they always meet the current operational objectives.
Through these detailed settings and strategic applications, the recommended attributes of Anqi CMS will become your powerful assistant for content operation, helping you organize and display website content more effectively, and improve the overall user experience.