In the vast field of website operation, providing customized content services for different user groups is a key factor in improving user experience, enhancing user stickiness, and even realizing content monetization.As an experienced user and operation expert of AnqiCMS, I know well that its flexible and powerful functions are enough to support us in achieving these refined operation goals.archiveFiltersAnd focus on how to skillfully use it, providing exclusive content filtering options for specific groups such as VIP users.

PerceivearchiveFilters: Your intelligent filtering assistant

AnqiCMSarchiveFiltersLabels, like an intelligent content classification and retrieval assistant, it can automatically generate a series of filtering conditions for users to choose from based on the custom fields preset in your content model.Imagine if your website's content is diverse, users may need to search for interesting information based on multiple dimensions such as 'release year', 'content type', and 'specific tags'.archiveFiltersIt is for the purpose of meeting this need.

Its core magic lies in the deep integration with the flexible content model of AnqiCMS. When you define custom fields of the type "single selectionarchiveFiltersAutomatically identify and convert to the front-end filtering conditions.For example, a food blog can filter recipes based on 'cuisine' (Chinese, Western), 'flavor' (sweet, spicy, salty), etc.; a software download site can filter software based on 'operating system' (Windows, Mac, Linux) or 'licensing' (free, paid), etc.

archiveFiltersThe use of tags is very intuitive, usually you will call it on the document list page:

{% archiveFilters filters with moduleId="YOUR_MODULE_ID" allText="全部" %}
    {# 循环输出筛选条件的代码 #}
{% endarchiveFilters %}

Among themmoduleIdSpecify which content model's documents to filter (such as,1可能代表文章模型,2which may represent the product model),allTextThen defines the display text for the "All" option.

Unlock exclusive filters for VIP users: Operation Strategy and Implementation

AnqiCMS built-in user group management and VIP system, which provides us with the ability to distinguish user identity. CombinedarchiveFiltersWe can further provide exclusive filtering channels for VIP users, allowing them to access exclusive content faster and more conveniently.

The core idea is:Define a custom field in the content model to mark content access permissions, for exampleaccess_level,and set its options to “public content” and “VIP exclusive”.Then, in the frontend template, we judge the current user's VIP status to decide whether to display the 'VIP Exclusive' filter option.

Let's see how to implement it step by step:

  1. Define the access permission field in the content model:Firstly, you need to enter the AnqiCMS backend, navigate to "Content Management" -u003e "Content Model".Choose a content model you want to provide with VIP filtering (for example, the "article" model).When editing this model, click 'Custom fields of content model' to add a new field.
    • Parameter name:It can be 'Access Permission' or 'Member Level'.
    • Field call:It is recommended to use English letters, for exampleaccess_level.
    • Field Type:Choose 'Single Selection' or 'Dropdown Selection'.
    • Default value: