How to set the recommendation attribute to affect the display priority of the front-end content when publishing a document?

Calendar 👁️ 59

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.

Related articles

How to format timestamps and display them on the page as a readable date and time?

In website operation, the timeliness of content is often the key to attracting readers' attention.Whether it is the release date of the article or the update time of the product, these pieces of information, if presented in a clear and easy-to-understand manner on the page, will greatly enhance the user experience.However, you may find that the time information recorded by AnQiCMS backend, when directly called in the template, often appears as a long series of numbers, which is what we usually call a timestamp.These original timestamps are convenient for internal system processing, but they lack readability for ordinary users.It's lucky that

2025-11-08

How to iterate over list data in a template and display it one by one?

Managing and displaying content in Anqi CMS is one of its core advantages.When we need to display dynamic list data on the front end of a website, such as the latest articles, popular products, and content collections under categories, understanding how to efficiently iterate through these data in templates and display them one by one is an essential skill for website operators and template developers.The Anqi CMS template system adopts syntax similar to Django, which is intuitive and powerful, making the transformation of technical information and practical application extremely convenient.### Core Loop Syntax: `{% for %}`

2025-11-08

How to use conditional judgment logic in a template to control the display and hiding of content?

In the presentation of website content, we often need to decide based on different situations which information should be displayed to visitors and which should be temporarily hidden.AnQiCMS (AnQiCMS) provides flexible template conditional judgment logic, making content display and hide intuitive and efficient.By these judgments, you can easily implement personalized page layouts, content display under permission control, and adjustment of page elements based on data status, which greatly enhances the dynamicity and user experience of the website.The Anqi CMS template system uses a syntax similar to the Django template engine

2025-11-08

How to display breadcrumb navigation on the page to enhance users' understanding of the content structure?

When we browse websites, we often see a line of text at the top or above the content area, clearly indicating the position of the current page within the overall website structure, like "Home > Product Center > Some Product Category > Some Product Detail" and so on.This is what we commonly refer to as 'Breadcrumb Navigation'.It can not only help users quickly understand the content hierarchy of the website, avoid getting lost, but also play an important role in user experience and search engine optimization (SEO).Aq CMS fully understands the importance of breadcrumb navigation

2025-11-08

How to customize the document URL alias to optimize its display in browsers and search results?

In website operation, a URL (Uniform Resource Locator) is not only the address of the content, but also the first step for users and search engines to recognize the website.A clear, meaningful, and friendly URL alias that can greatly enhance the display effect of content in the browser and achieve better visibility in search results.AnQiCMS provides flexible and powerful features, allowing us to easily customize documents, categories, tags, and even the URL aliases of the page itself, thereby optimizing the overall performance of the website.Why is it important to use custom URL aliases?Firstly, for search engines

2025-11-08

How to use the scheduled publishing feature to automatically go live and display documents at specified times?

## Precisely Control Content Rhythm: A Practical Guide to AnQi CMS Scheduled Publishing Function In today's increasingly refined content operation, how to ensure that content reaches the target audience at the most appropriate time is a core challenge faced by every operator.Manually publishing is inefficient and is prone to delays or errors due to temporary affairs or time differences.Fortunately, AnQi CMS provides a powerful and practical feature - scheduled publishing, which can make content going live automated and precise, bringing unprecedented flexibility and efficiency to website operations.The timing release function of Anqi CMS, as the name implies

2025-11-08

How to add multiple Tag tags to documents and associate them for display and filtering on the front end?

In AnQiCMS, adding Tag tags to documents and associating them for display and filtering on the front end is an effective way to enhance the organization of website content and user experience.Tag labels can not only help users find the content they are interested in faster, but also optimize the keyword layout of the website from the SEO level, increasing the exposure of the content.Next, we will discuss in detail how to implement this feature in AnQiCMS. ## One, add Tag label to document in the background Adding a Tag label to the AnQiCMS backend is a straightforward and convenient process. First

2025-11-08

How to use Markdown formatting in document content and ensure it is correctly rendered as HTML?

AnQi CMS provides flexible content editing methods for content creators, among which the support for Markdown format greatly improves the efficiency and expressiveness of content creation.Understand how to use Markdown correctly in document content and ensure that it is perfectly rendered as HTML on the website front-end is the key to bringing this feature into play. ### Enable and Use Markdown Editor To start using Markdown in AnQiCMS, you first need to make simple configurations in the background.This is usually completed in **Global Settings -> Content Settings**

2025-11-08