How to effectively guide visitors to pay attention to 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 attributes of the document, we can finely control the display priority of the front-end content, thereby achieving this goal.This not only helps optimize the user experience, but also better serves the overall operation strategy of the website.

Set recommended attributes in the background: clarify content positioning

When we publish or edit a document, the Anqi CMS content editing interface provides a feature area named "Recommended Properties".This area is the key to defining the weight and display method of content on the front end.The recommended attribute is not a single option, but provides a variety of flexible tags to help us assign a specific 'identity' to the content.

In particular, AnQi CMS provides eight recommended attributes for selection, each with its focus, which can be selected singly, multiply, or not selected at all, to adapt to different content strategies. These properties and their code identifiers include:

  • Headline[h]This is usually used for the most important and most关注的 news or announcements on websites, aiming to attract users' attention immediately.
  • Recommended[c]: Indicates high-quality content edited or recommended by the system, suitable for placement in modules like 'You May Also Like' or 'Handpicked Recommendations'.
  • Slide[f]: Designed specifically for the website homepage or special page carousel (slideshow), presenting content in large images or dynamic forms.
  • Featured[a]: A more advanced level of recommendation than the ordinary one, which may imply depth, authority, or exclusive content.
  • Scrolling[s]: Suitable for news marquee, scrolling announcements, and other areas, displaying information quickly with concise text.
  • Bold[h]Here is the[h]With headlines[h]Same, usually used to emphasize the text title of the content, making it more prominent in the list.
  • Image[p]: Mark those contents that are mainly displayed with images, such as albums, product displays, etc., so that images can be displayed first when the template is 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 properties based on the importance of the content, the display form, and the operation objectives.For example, a newly released major news, we can select both 'Headline' and 'Slide' to ensure it is highlighted in the headline area and occupies a place in the carousel.

It should be noted that although multiple recommended attributes can be selected for a document in the background, when the front-end template is actually called, it is usually only possible to filter and display based on one recommended attribute in a list area.This means we need to plan in advance the content type expected to be presented in each display area.

Front-end template call: display content according to strategy

After setting up the recommended properties, the key is how to display these contents in the front-end according to our wishes. Anqi CMS provides strong support on the template level.archiveListLabels, combined with specific parameters, can accurately filter and display documents with recommended attributes.

To make the template display content based on recommended attributes, the main method used isarchiveListin the labelflagParameters. For example, if you want to display only the documents marked as "top news" in a news module on the home page of a website[h]"when callingarchiveListthe tag withflag="h"The parameter. In this way, the template engine will dynamically select all documents with the "headline" attribute from the database for rendering.

On the contrary, if you want to exclude all documents marked with a specific attribute from a list, you can useexcludeFlagParameters. For example, if you want not to 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) can be accessed onarchiveListUsed in tagsexcludeFlag="s".

Sometimes, we not only need to filter content based on recommended attributes, but also hope to directly display which recommended attributes the document has next to the list items on the front page, at this timeshowFlag=trueParameters can be put to good use. After enabling this parameter, the document can be obtained in the template.FlagAttribute value, you can parse it and display it as 'Top News', 'Recommendation', and other text labels to further strengthen the visual guidance of the content.

By flexibly using these tag parameters, you can build a diverse content display area. For example, design a "Editor's Choice" module for the homepage, specifically to callflag="c"Recommended content; or display in a carousel at the top of the product list page.flag="f"Star products of the slide.

Content operation strategy and practical application: maximize value.

Recommended attributes are not just simple technical tags, but also an important link in the implementation of content operation strategies. They help us classify content according to priority and purpose, achieving precise placement.

For example, you can mark the latest product release as幻灯 [f]to get maximum exposure in the homepage carousel; mark important in-depth industry analysis articles as特荐 [a]Place on the sidebar or topic page to guide users to read further; those pointing to external resources or cooperative content documents can be marked with跳转 [j]A property that facilitates concentration in a specific area and is complemented by customized styles or hints.

It is crucial to regularly review and update the recommended properties in practice.For example, as time goes by, a headline news may no longer be a hot topic on that day. At this point, it should remove its 'headline' attribute, and even update it to 'recommended' or 'no attribute' to make way for new content.This dynamic adjustment can ensure that the content of the website 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 in the user's line of sight, thereby effectively enhancing the attractiveness, user interaction, and conversion effect of the website.


Frequently Asked Questions (FAQ)

Can a document be set with multiple recommended attributes?Yes, when publishing or editing documents on 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 'Headline' and 'Slide.'However, it should be noted that when calling the front-end template, a content list (such as the "Home Headline Area" or "Featured Recommendation List") usually only selects and displays documents with a specific single recommendation attribute according to its design logic.

Will setting recommended attributes directly affect the website's search engine optimization (SEO)?The recommended attribute does not directly act as a search engine ranking factor.But by reasonably setting the recommendation attributes, it can effectively improve the organization structure, user experience, and page interactivity of website content.For example, marking important content as 'Top Story' and displaying it in a prominent position can increase the click-through rate and dwell time of this content, which indirectly communicates the value signal of the content to search engines, thus having a positive impact on SEO.

3. How can I display recommended content only in certain areas of a page and not in others?This is the flexibility of the recommended attribute design. You can call it in the front-end template.archiveListwhen labeling, by using flexibility.flagandexcludeFlagto achieve it. For example, in an area usingflag="c"To display “recommended” content specifically, while using it in another areaexcludeFlag="j"Exclude documents with the 'jump' attribute. This way, you can customize the display rules based on the needs of different page modules.