How to set up the AnQi CMS user group and VIP system to display exclusive paid content?

Calendar 👁️ 76

In AnQi CMS, to achieve exclusive display of paid content, it usually requires combining its powerful user group management and VIP system features.This can not only help your website effectively monetize content, but also provide differentiated service experiences for users at different levels.Next, we will step by step explore how to set up so that your exclusive content is only visible to paying users.

Understand the core concept: User groups and content reading levels

The core of implementing paid content in Anqi CMS lies in the concepts of 'user groups' and 'content reading levels'.

  • User groupYou can classify website users into different groups, such as "normal users", "VIP members", "senior VIPs", and so on.Each user group can be assigned a specific "level".
  • Content Reading Level: Each article, product, or other content you post can be set to a "Reading Level". This level corresponds to the user group level.

When a user tries to access a piece of content, the system automatically checks whether the user's group level has reached or exceeded the reading level of the content.If the condition is met, the user can view normally; otherwise, the content will be hidden or only part of the summary will be displayed.

The first step: configure user groups in the Anq CMS backend

Firstly, we need to define different user groups in the backend and set their corresponding permission levels.

  1. Log in to the backend:Use your administrator account to log in to the AnQi CMS backend management interface.
  2. Enter user group management: Find the "Administrator Management" or similar "User Management" entry in the left navigation bar, where there is usually an option for "User Group Management".
  3. Create or edit a user group:
    • Default User GroupYour website usually has a default 'regular user' group.You can edit it, for example, set its level to "0" (indicating the lowest permission, usually used for non-logged-in users or general registered users).
    • Create VIP User Group: Click the 'Add New User Group' button to create user groups such as 'VIP Member' and 'Senior VIP' and so on.
      • Set Name: Name the user group clearly, such as "VIP Member".
      • Set the level (Level)This is the key.Set the level of 'VIP Member' to '1', set the level of 'Senior VIP' to '2', and so on.These numbers will directly match the reading level of the content.The higher the level number, the higher the permission.
      • Set the purchase price (Price): If this is a paid user group, you can set the purchase price and discount price of the members here. This information can be called from the front-end page to display VIP purchase options.
      • Setting Introduction (Description): Briefly describe the benefits of the user group, convenient for your own management and display on the front end.
  4. Save SettingsAfter completing the configuration of the user group, remember to save the changes.

With such settings, we have laid the foundation for the website's user system, and user groups of different levels are ready.

Step two: Set exclusive reading permissions for paid content

Next, we need to associate the content you want to set as paid or exclusive with a specific user group level.

  1. Enter content managementIn the left navigation bar of the background, click "Content Management", then select "Document Management" or any other content model you need to set permissions for (such as "Product Management" or "Page Management").
  2. Add or edit contentFind the article, product, or other content you want to set as exclusive display, click 'Add Document' or 'Edit' to enter the content editing interface.
  3. Set the 'Document Reading Level' (ReadLevel):
    • In the content editing page, carefully look for the "Other Parameters" or similar advanced settings options.Here, you will find a field named 'Document Reading Level' (or similar, such as 'ReadLevel').
    • Set the value of this field to the 'level' of the VIP user group you want this content to belong to.
      • For example, if you want this content to be visible only to "VIP members" (level 1) and above, set the "Document Reading Level" to "1".
      • If set to "2
      • If you keep it as "0" (or not set, the default is 0), it means all users (including ordinary users and unlogged users) can view.
  4. Save content: After setting up, remember to save your content.

Now, your content has been marked as exclusive content of a specific level.

Step 3: Implement the exclusive display logic of content in the front-end template.

This is the most critical step, we need to modify the front-end template file to dynamically display content based on the user's VIP level.

The AnQi CMS template system is very flexible, you can use built-in tags and conditional judgments to implement this logic.

  1. Confirm template file: Generally, the template files for the article detail page may be locatedtemplate/{您的模板目录}/{模型table}/detail.htmlorarchive/detail.htmlin the paths. You need to find the corresponding detail template for the content.

  2. to introduce user informationIn the top of the template file, we need to obtain the detailed information of the current visiting user, especially their user group level.

    {# 假设您有一个全局的当前登录用户对象,或者通过某种方式获取用户ID #}
    {# 这里以获取当前登录用户的Level为例,未登录或普通用户默认为0 #}
    {% set currentUserLevel = 0 %}
    {% if userId %} {# 假设userId是当前登录用户的ID,可从会话或全局变量获取 #}
        {% userDetail user with name="GroupId" id=userId %}
            {% userGroupDetail group with name="Level" id=user.GroupId %}
                {% set currentUserLevel = group.Level %}
            {% enduserGroupDetail %}
        {% enduserDetail %}
    {% endif %}
    

    Description: userIdIt may be necessary for you to obtain from the current page context or session. If the user is not logged in,userIdit will be empty,currentUserLevelit will remain the default 0.

  3. to obtain the content reading level: in the content detail page template,archiveDetailThe label can directly obtain the various attributes of the current content, includingReadLevel.

    {% archiveDetail currentArchive with name="ReadLevel" %}{# 获取当前文档的阅读等级 #}
    {% set contentReadLevel = currentArchive %} {# 将阅读等级赋值给变量方便后续使用 #}
    
  4. **Write conditions

Related articles

How can AnQi CMS protect the display copyright of original images and articles through anti-crawling and watermark functions?

Today, with the increasing richness of digital content, the value of original content is self-evident, but the subsequent problems of content theft and copyright infringement have also become a difficulty for many content creators and operators.Especially for carefully crafted images and articles, how to effectively protect their display copyright is a concern that every website operator is very concerned about.AnQiCMS (AnQi CMS) provides practical solutions in this aspect, building a solid barrier for our original content through its built-in anti-crawling and watermark features.### Protect Article Content

2025-11-07

How to quickly batch replace the content of the entire site in AnQi CMS and update the display information?

AnQi CMS is an efficient enterprise-level content management system, dedicated to helping users manage website content more conveniently and efficiently.In daily operation, we often encounter scenarios where we need to make unified adjustments to the entire site's content, such as changes to the brand name, batch corrections of specific keywords, or optimization of the website link structure.If relying on manual modification one by one, it not only takes time and effort but is also prone to errors.This pain point is addressed by Anqi CMS with its powerful "site-wide content batch replacement" feature, making content updates unprecedentedly simple and fast.

2025-11-07

The SEO tools provided by Anqi CMS, how do they specifically help improve the search ranking and display effect of website content?

On the day when digital content is flourishing, it is the goal of every website operator to make their website content stand out in the vast sea of network information and be precisely discovered by the target audience.Search engine optimization (SEO) is the core strategy to achieve this goal, and a powerful content management system (CMS) is our powerful assistant in implementing SEO strategies.AnQi CMS was designed with "SEO-friendly" as an important consideration, and has integrated a series of practical tools to enhance the search ranking and display effect of website content

2025-11-07

How to configure the AnQi CMS pseudo-static URL to optimize the search engine friendly display of website content?

In website operation, making the web page address (URL) friendly to search engines is a crucial step.A clear and meaningful URL not only helps users quickly understand the page content, but is also an important indicator for search engines to evaluate the quality and relevance of the content.AnQiCMS fully understands this point, therefore, from the very beginning of system design, it has fully considered the needs of pseudo-static, and provided an intuitive and convenient configuration method, so that your website content can be presented in the most favorable form for search engine crawling and understanding.### Understanding the value of pseudo-static and its impact on SEO First

2025-11-07

How can the timing release function of Anqi CMS accurately control the display time of articles and products?

In the daily operation of a website, the timing and rhythm of content release often play a crucial role in marketing effectiveness, user experience, and even search engine optimization.AnQiCMS (AnQiCMS) is well-versed in this, carefully designing a powerful "timed release" function for users, helping us accurately control the online time of articles and products, and realizing the automation and efficiency of content operation.

2025-11-07

How does Anqi CMS provide a high-performance architecture to ensure stable display of website content under high concurrency?

In the current digital age, whether a website can stably display content under high concurrent traffic is a key indicator of whether a content management system (CMS) is excellent.For those of us who operate websites on a daily basis, focusing on user experience and the effectiveness of content marketing directly relates to brand image and business conversion.How does AnQiCMS (AnQiCMS) achieve this, still keeping the website content stable as a mountain under high concurrency?

2025-11-07

Which website modes does AnQi CMS support to adapt to the display of content on PCs and mobile devices?

In this diverse digital age of devices, whether browsing news, shopping, or accessing services, users may visit websites through PCs, laptops, tablets, or smartphones.Therefore, whether your website content can be displayed clearly and beautifully on different screen sizes is directly related to user experience and brand image.AnQi CMS understands this core requirement and provides a variety of flexible website modes to ensure that your content is displayed in a perfect posture on any device.

2025-11-07

How to use the Django template engine of Anqi CMS to create highly customized content display pages?

Today, with the increasing importance of digital content, how a website efficiently and beautifully presents its content is directly related to user experience and brand image.AnQiCMS (AnQiCMS) relies on its flexible and powerful Django template engine, providing infinite possibilities for highly customized content display pages.This article will delve into how to make use of the core capability of Anqi CMS to create content display pages that meet business needs and are uniquely crafted.

2025-11-07