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, hot recommendations, ad banner rotations, etc.) in prominent positions on the homepage or category pages of the website.If relying solely on content publishing time or views to control, it is often difficult to meet the refined operational needs.This is when the "Recommended Attribute" feature of AnQi CMS becomes particularly important, as it helps us accurately control the display position of front-end content, effectively enhancing the visibility and operational effectiveness of the website.
What is the recommended attribute, and what benefits does it bring to content display?
The recommended attribute is an additional tagging mechanism provided by Anqí 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 areas on the website's front end.By these properties, we can flexibly adjust the display priority and position of the content without changing the content release time or category.
The Anqi CMS is built-in with 8 recommended attributes, each attribute has a corresponding letter identifier, convenient for calling in templates:
- Headline [h]: Usually used for the focus news of the website, the most important announcements, etc., often displayed in the most prominent position at the top of the page.
- Recommend [c]: Articles suitable for editing and attention, which can be displayed in the sidebar, content area, and other locations.
- Slide [f]: Designed specifically for carousels, focus images, usually with images, displayed in a scrolling form at the top of the homepage or specific pages.
- Special recommendation [a]Similar to 'Special Recommendation', it emphasizes its importance and can be used for important themes or activities.
- Scroll [s]: Suitable for small rolling news, bulletin boards, etc., the content will appear in the form of a running scroll or list scroll.
- Bold [h]: (Please note that this attribute shares the same identifier as
- Image [p]Indicates that the content is suitable for display in a multimedia or purely visual format, such as a picture news stream.
- Jump [j]meaning that clicking on the content may directly jump to an external link or a specific page within the site, rather than just the article detail page.
The flexible application of these recommended properties can help us:
- Enhance the visibility of important content: Quickly convey key information to visitors.
- optimize user experience: Help users quickly find the content they are interested in by categorizing display.
- Enhance content operation efficiency: Adjust content layout without modifying code to achieve dynamic updates.
- Support SEO strategy: A reasonable layout can enhance the page authority and is helpful for search engines to crawl and index.
How to set the recommendation attributes of the content in Anqi CMS background?
The recommended attributes of the content are very intuitive. When we publish new content or edit existing content in the background, we can find the "Recommended Attributes" item on the content editing page.
- Enter the content editing interfaceIn AnQi CMS backend, navigate to "Content Management" -> "Document Management", then select "Add New Document" or edit an existing document.
- Find recommended attribute areaOn 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 "Recommended Properties".
- Select the recommended propertyHere will be listed all available recommended attributes, such as "Headline[h]", "Recommend[c]", "Slide[f]", etc.
- You can choose one or more properties based on the actual importance and expected display of the content.For example, an article that is both important news and beautifully illustrated, you can check both
- Please note that while multiple recommendation properties can be set for a piece of content in the background, when the front-end template is called, only one
archiveListtag can usually be based on oneflagParameters to filter content (for example 参数来过滤内容(例如,只调用“头条”内容,或者只调用“推荐”内容)。这意味着如果你想让同一篇文章既显示在“头条区域”又显示在“推荐列表”,你需要确保这两个区域在前端是通过不同的flagParameters are handled individuallyarchiveListTag calling. - Especially note that 'Top News[h]' and 'Bold[h]' share the same identifier
hThis means that if the content is marked as both 'Headline' and 'Bold', when the template passesflag="h"When called, it will match both types of content. In actual operation, it may be necessary to decide whether to use both meanings according to specific requirements and the implementation of the template.hProperty, or the template only handles one meaning specifically.
By simply checking, you can give your content unique display capabilities. Save the content after setting it up.
How to call and display the recommended attribute content in the front-end template?
After setting up the recommended properties, you need to write code in the website's front-end template to call and display this content. Anqi CMS providesarchiveListtags, with the help offlagThe parameter can easily achieve this goal.
`archiveList