How to effectively guide visitors to focus on key information, enhance the visibility and interactivity of content, is a common concern for operators when managing content in AnQi CMS.By reasonably setting the recommended properties of the document, we can finely control the display priority of the front-end content, thereby achieving this goal.This not only helps to optimize the user experience, but also better serves the overall operation strategy of the website.
Background setting of recommended properties: Clarify the content orientation
When we publish or edit a document, the content editing interface of the Anqi CMS provides a feature area named "Recommended Attributes".This area is the key to defining the weight and display method of content on the front end.Recommended properties are not a single option, but provide a variety of flexible tags to help us assign specific 'identities' to content.
Specifically, the Anqi CMS provides eight recommended attributes for selection, each with its own focus, which can be selected individually, in multiple combinations, or not selected at all, to adapt to different content strategies. These attributes and their code identifiers include:
- Top News
[h]:通常用于网站上最重要、最受关注的新闻或公告,旨在吸引用户第一时间注意。 - [en] Recommended
[c]:Represents high-quality content edited or recommended by the system, suitable for placement in modules such as 'You May Also Like' or 'Featured Recommendations'. - Slide
[f]:Specially designed for the homepage or special page carousel (slideshow), presenting content in large images or dynamic forms. - [en]Special Recommendation
[a]:A higher level of recommendation than the ordinary “recommendation”, which may mean deep, authoritative, or exclusive content. - Scrolling
[s]:For news marquee, scrolling announcements and other areas, displaying information quickly with concise text. - Bold
[h]Here:[h]With headlines[h]Same, usually used to emphasize the text title of the content, making it stand out more in the list. - Image
[p]Mark those contents mainly displayed with images, such as albums, product displays, etc., for easy priority display of images when templates are called. - Jump
[j]Indicates that the content may be an external link or requires the user to click to jump to a specific page, rather than displaying the full content directly on the current page.
When releasing documents, we can flexibly choose one or more attributes based on the importance of the content, presentation form, and operational objectives.For example, for a newly released major news, we can check both 'Headline' and 'Slideshow' to ensure it is highlighted in the headline area and also occupies a place in the carousel.
It should be noted that although multiple recommended properties can be selected for a document in the background, in practice, when the front-end template is called, typically only one recommended property can be used for filtering and displaying in a list area.This means that we need to plan in advance the type of content that each display area is expected to present.
Front-end template call: Display content according to the strategy
Set the recommended properties well, the next key is how to display these contents in the front-end according to our wishes. Anqi CMS provides powerful functionality at the template level.archiveListTags, combined with specific parameters, can accurately filter and display documents with recommended properties.
To make the template display content based on recommended properties, mainly usedarchiveListthe tag inflagParameters. For example, if you want to display documents marked as "Top News" in a certain news module on the homepage of your website.[h]"archiveListwhen calling the tag,flag="h"The parameter. As such, the template engine will dynamically filter all documents with the "headline" attribute from the database for rendering.
If you want to exclude all documents marked with a specific attribute from a list, you can useexcludeFlagParameters. For example, if you want to not display those marked as "scrolling" in the "Latest Articles" list[s]The document (because they may have already been displayed in other scrolling announcement areas), then you can inarchiveListthe label useexcludeFlag="s".
Sometimes, we not only need to filter content based on recommended attributes, but also hope to display which recommended attributes the document has directly next to the front-end list items, at this timeshowFlag=trueThe parameter can be put to good use. After enabling this parameter, you can access the document in the template.FlagProperty value, you can parse and display it as 'Headline', 'Recommendation', and other text labels to further strengthen the visual guidance of the content.
By flexibly using these tag parameters, you can build diverse content display areas. For example, design a "Featured Edit" module for the homepage, which is specifically calledflag="c"(Recommended) content; or display in the product list page above in a carousel form.flag="f"(Slide) star products.
Content operation strategy and practical application: maximize value.
The recommended attributes are not just simple technical tags, but also a key link in the implementation of content operation strategies. They help us classify content by priority and purpose for accurate delivery.
For example, you can mark the latest product release幻灯 [f]to ensure maximum exposure in the homepage carousel; mark important in-depth industry analysis articles特荐 [a]Placed in the sidebar or special topic page to guide users to further reading; documents pointing to external resources or cooperative content can be marked跳转 [j]Property, convenient for displaying in a specific area and配合 customized styles or hints.
It is crucial to regularly review and update the recommended properties of documents in practice.For example, as time goes by, a 'top news' article may no longer be a hot topic of the day. At this point, it should remove its 'top news' attribute and even update it to 'recommended' or 'no attribute', to make room for new content with higher priority positions.This dynamic adjustment can ensure that the website content always maintains vitality and freshness, optimizing the browsing experience of users at different times.
By flexibly using the recommended attributes provided by Anqi CMS, we can better control the presentation of website content, placing the most valuable information at the user's focal point, thereby effectively enhancing the attractiveness, user interaction, and conversion effect of the website.
Common Questions (FAQ)
1. Can a document be set with multiple recommended properties?Yes, when publishing or editing documents in the Anqi CMS backend, you can select multiple recommended properties for a document at the same time.For example, you can mark a document as both "Top News" and "Slide."However, it should be noted that when calling the front-end template, usually a content list (such as "Home Headline Area" or "精选推荐列表") will, according to its design logic, only filter and display documents with a specific single recommendation attribute.
2. Will setting recommended properties directly affect the website's search engine optimization (SEO)?Recommended attributes themselves do not directly serve as factors in search engine ranking.But by reasonably setting the recommended properties, it can effectively improve the organization structure, user experience, and page interactivity of the website.For example, marking important content as 'Top News' and displaying it prominently can increase the click-through rate and dwell time of this content. This indirectly communicates the value of the content to search engines, thereby having a positive impact on SEO.
3. How can I make the recommended content only appear in certain areas of the page and not in other areas?This is where the flexibility of recommended attribute design lies. You can call it in the front-end template.archiveListwhen labeling, by flexibly usingflagandexcludeFlagto achieve. For example, in a region usingflag="c"To specifically display "recommended" content, and use it in another areaexcludeFlag="j"To exclude documents with the 'jump' attribute. This way, you can customize the display rules of content according to the needs of different page modules.