How to effectively organize and display massive amounts of content while operating a website is the key to improving user experience and content value.AnQiCMS (AnQiCMS) provides a very practical feature, that is, to manage and filter the content list in a fine-grained manner through 'recommended attributes'.This can not only make the website content more dynamic, but also help visitors find the information they are interested in faster.

Understanding 'recommended attributes': a tool for content organization

In Auto CMS, when we publish or edit documents, we will find an option named "Recommended Attributes.This set of properties allows us to tag content with unique identifiers, giving it an additional 'identity' beyond conventional categories and tags.The document lists in detail eight recommended attributes and their corresponding single-letter identifiers: such asThese properties are not simple text descriptions, but are the key basis for front-end template calls.For example, we can mark an important news as 'Top News', a premium product as 'Recommended', or a beautiful picture as 'Slideshow', so that it can be showcased specially in different areas of the website.

Through the background document editing interface, we can flexibly select one or more recommended properties for each document.For example, a document can be both a 'headline' and a 'recommendation'.Each list can only be filtered and displayed based on one recommendation attributeThis means that when designing the page layout and content strategy, we need to clearly define the type of recommended content each content block is expected to display.

How to implement precise filtering and display on the content list page

The powerful function provided by the AQ CMSarchiveListTags, it is a core tool for filtering content lists based on recommended attributes.This tag allows us to retrieve document lists based on various conditions, including our "recommended attributes".

To implement filtering by recommended attributes, we just need toarchiveListintroduce tags inflagParameters, and specify the corresponding single-letter identifier. For example, to display the list of content marked as "recommended" (c) as such template code can be written:

{% archiveList recommendedArticles with flag="c" limit="10" %}
    {% for article in recommendedArticles %}
        <a href="{{ article.Link }}">{{ article.Title }}</a>
        {# 这里可以继续展示文章的其他信息,例如摘要或缩略图 #}
    {% endfor %}
{% endarchiveList %}

This code will filter out documents with theflag="c"toflag="f"English. When we need to exclude the content of some specific properties,archiveListtags also provideexcludeFlagparameter. For example, if you want to display all content but exclude the content marked as "scrolling" (sThe content can be written like this:{% archiveList allContent without excludeFlag="s" %}This provides great flexibility for content display.

Actual application scenarios: Make content more attractive

Understanding and applying the 'recommended attribute' can bring many operational conveniences to the website. Imagine the following scenario:

  • Home page headline area:Place a prominent position on the home page of the website,flag="h"(Top News) content list, attract visitors' attention in the first time.
  • Slideshow carousel:Utilizeflag="f"(Slideshow) document, quickly build a home page slideshow to showcase selected content or products.
  • Sidebar Hot Articles:Use in the sidebarflag="c"(Recommended) orflag="a"(Special Recommended) article list, recommending high-quality or hot reading content to users.
  • Content topic aggregation:Even if the content is scattered across different categories, as long as a specific recommendation attribute is applied, it can be aggregated and displayed on a certain topic page, for example, all lists of 'New Products [p]' or 'Redirect [j]'.

Through these strategies, we can flexibly retrieve and present content at different positions on the website based on the importance of the content, its display form, or the marketing purpose, greatly enhancing the dynamic feel and user stickiness of the website.

Attention Points and **Practice

In actual operation, there are several small details to pay attention to. First, as mentioned before,archiveListthe label duringflagfiltering,only one recommended attribute can be specified at a timeThis means that if you want to display both "Top Stories" and "Recommended" content in the same list area, you need to call it twicearchiveListTags, or set a unified new recommendation attribute for these contents in the background (if the system supports custom extensions).The recommendation of property settings should have clear planning to avoid abuse leading to confusion in content management.Establish a set of internal content recommendation standards helps to maintain the logic and consistency of the website content.最后,要记得定期检查内容的推荐属性,确保它们的时效性和相关性,例如,一篇旧的“头条”文章可能需要被移除“头条”属性,为新内容腾出位置。

Summary

The "Recommended Attributes" feature of Anqi CMS provides powerful content filtering and display capabilities for website operators.It breaks through the limitations of traditional classification, allowing content operation strategies to be more refined and flexible.