If the background adjusts the content model parameters, will the `archiveFilters` tag automatically update the displayed filtering conditions?

Calendar 👁️ 61

AnQiCMS (AnQiCMS) is loved by many content operators for its flexible content model and efficient operation capabilities. Today, we will delve into a commonly concerned issue: when we adjust the parameters of the content model in the background, the usage on the frontend page isarchiveFiltersWill the filtering conditions displayed by the tag automatically update?

As an experienced website operations expert, I can clearly tell you that the answer is affirmative:When the AnQi CMS backend content model parameters are adjusted,archiveFiltersthe filter conditions displayed by the tags will be automatically updated.

The core concept and dynamism of AnQi CMS

To understand this, you first need to review the core design concept of Anqi CMS.In the 'AnQiCMS Project Advantages' document, we see that 'Flexible Content Model' is listed as one of the core features.This means that the system has fully considered the variability of content structure from the beginning, allowing users to customize content types and the fields they contain according to business needs.This flexibility is not only reflected in the input and display of content, but also in the dynamic interaction capabilities of the front-end page, such as filtering and sorting.

The strength of AnQi CMS lies in the fact that it does not statically write the background configuration into the front-end template, but rather reads and interprets the latest content model definition in real-time when the page is requested to be rendered. This dynamic rendering mechanism is exactlyarchiveFiltersTags can automatically update their filtering criteria.

archiveFiltersThe principle of operation of tags

archiveFiltersTags (seetag-/anqiapi-archive/145.htmlDocuments) are specifically used to generate filtering conditions based on custom fields of content models on document list pages or category pages.Its design goal is to help users filter combinations based on various 'parameters' (i.e., custom fields).

The document explicitly states:

“Filter parameters are only in list typetype="page"The filter parameters only need to be placed in the URL query parameters.In the additional automatic configuration of the document, the filterable fields are configured, which can be completed by attaching these fields to the query parameters of the URL to filter the document.

This tells us,archiveFiltersThe tag is not generated out of thin air as a filtering condition, but depends on the custom fields defined as "filterable" in the background content model. When the page loads, the tag will query the specified content model (viamoduleIdParameters), get all the custom fields and their preset values (such as radio, checkbox, dropdown options) available under the model.Then, it constructs the front-end filtering interface based on this real-time information.

The implementation mechanism of dynamic response model parameter adjustment

Imagine a scenario: You are running a real estate website and have created a content model named 'Real Estate.'Initially, you may have only defined fields such as 'property type' (e.g., residential, commercial) and 'area' and other fields.This is on your front-end page,archiveFiltersLabels will generate corresponding filter options based on these fields.

If one day you decide to add a field named "house type" and in the "content model usage help" in the background(help-content-module.md) It has set preset values such as "one bedroom and one living room", "two bedrooms and two living rooms", and so on. Once these changes are saved and take effect, when the user visits the property list page again:

  1. The Anqi CMS template engine encounters an issue while rendering the pagearchiveFilters.
  2. archiveFiltersThe tag will query the latest definition of the “Real Estate” content model from the system.
  3. The system returns the updated model definition, which includes the newly added 'House Type' field and all its preset options.
  4. archiveFiltersTags based on these real-time data dynamically generate new "house type" filtering conditions on the page and display options such as "1 bedroom 1 living room", "2 bedrooms 2 living rooms", and so on.

The entire process is automatically completed, no manual modification of template code is required, nor is any additional configuration refresh needed.This seamless connection experience greatly enhances the efficiency and flexibility of content operation.

Summary

Of Security CMSarchiveFiltersLabels can automatically and dynamically update the displayed filtering conditions, which is thanks to its underlying flexible content model architecture and real-time rendering mechanism.Content operators only need to adjust the content model (especially custom fields) in the background, and the filtering function on the front-end page will respond immediately, displaying the latest filtering dimensions and options.This design greatly reduces the operation and maintenance costs and ensures that the display and filtering of website content always maintain consistency and the latest information.


Frequently Asked Questions (FAQ)

1. I modified the parameters of the content model in the background, but the front-end pagearchiveFiltersWhy did the displayed filter conditions not update immediately?

This situation is usually caused by browser caching. Although the Anqi CMS backend updates data in real time, your browser may be loading an old cached page.Try clearing the browser cache or force refresh the page (usually Ctrl+F5 on Windows, Cmd+Shift+R on Mac) to see the updated filter conditions.If the problem still exists, it may be due to some caching mechanisms on the server side, at this time, you can try to click the "Update Cache" feature in the Anqi CMS backend to clear the system cache.

2.archiveFiltersDoes the tag display the filtering conditions of all custom fields in the content model?

Not necessarily.archiveFiltersLabels will display those custom fields configured as 'filterable' in the content model.Generally, when the backend defines custom fields, there will be an option to control whether the field appears in the frontend filter.This means that even if you add custom fields, you need to ensure that their "filterable" property is enabled so that you canarchiveFiltersSee in the middle.

3. If my custom field has many different values (such as text boxes),archiveFiltershow will these filtering conditions be handled?

archiveFiltersThe label is mainly aimed at field types with clear, limited options (such as radio buttons, checkboxes, dropdown selections) to generate visual filtering conditions. For custom fields of free text input type,archiveFiltersIt is usually not generated in the form of drop-down or checkbox filters, but expected through the URL'squeryParameters are passed directly to filter keywords. This means that filtering for such fields may require you to manually construct a URL or use a search box.The document mentions that 'the filtering parameters only need to be placed in the URL query parameters' also implies this processing method.

Related articles

`archiveFilters` tag can be displayed with different filtering conditions based on user permissions or user groups?

As an experienced website operation expert, I am well aware that flexibility and personalization are the key to improving user experience and achieving fine-grained operation in content management systems.Especially in scenarios involving user permissions and content display, how to present differentiated content or features according to the needs of different user groups is a common problem for operators to think about.Today, let's delve into whether the `archiveFilters` tag in AnQiCMS can display different filtering conditions based on user permissions or user groups?This topic. ### AnQiCMS

2025-11-06

How to highlight the currently selected filter option generated by `archiveFilters`?

In modern website operations, user experience (UX) is undoubtedly one of the core competitive advantages.When users are faced with a massive amount of content and need to quickly locate the information they need through filtering, a clear and intuitive filtering mechanism is crucial.AnQiCMS (AnQiCMS) is well-versed in this field, providing a powerful content model and flexible template tags, among which the `archiveFilters` tag is a wonder tool for building advanced filtering functions.However, simply providing filtering options is not enough, how can users quickly identify what conditions they have currently selected

2025-11-06

Does the `archiveFilters` tag provide hooks or extension points to allow developers to customize filtering logic?

AnQiCMS (AnQiCMS) is an efficient and customizable enterprise-level content management system that provides many conveniences in content display and management.For developers, understanding the internal mechanisms and extension points is the key to achieving advanced customization.Today, let's delve into the `archiveFilters` tag and see if it provides hooks or extension points for custom filtering logic.### Deeply understand the functional orientation of the `archiveFilters` tag First

2025-11-06

How to display the number of documents under each filter option in the `archiveFilters` tag?

As an experienced website operation expert, I know that every detail can affect the final effect in terms of user experience and website data analysis.When a user is browsing the filter list, if they can clearly see the number of documents included under each filter option, it not only significantly improves their browsing efficiency but also helps them find the content they need faster, thus optimizing the conversion path.AnQiCMS (AnQiCMS) provides a solid foundation for us to meet this requirement with its flexible and powerful functions.Today, let's delve deeper into

2025-11-06

Does the `archiveFilters` tag support filtering based on Tag tags, in addition to custom parameters?

AnQi CMS is an efficient enterprise-level content management system that provides many flexible tags and features for content display and management.Among them, the `archiveFilters` tag is often used by website operators to build complex document filtering interfaces due to its powerful filtering capabilities.HoweverToday, let's delve deeply into this issue. ###

2025-11-06

How to keep the `archiveFilters` tag parameters concise and readable when passed in the URL?

As an experienced website operations expert, I am well aware of the importance of URL structure for the SEO performance, user experience, and even brand image of a website.In a flexible and efficient content management system like AnqiCMS, the `archiveFilters` tag provides us with powerful dynamic filtering capabilities, but how to ensure that these filtering parameters in the URL are concise and readable to avoid long and disordered URLs is a problem that every operator needs to consider carefully. Today

2025-11-06

How to avoid duplicate content or empty list situations on the `archiveFilters` filter results page?

As an experienced website operations expert, I am well aware of the core role of the content management system (CMS) in website operations.AnQiCMS with its efficient and flexible features, provides many conveniences for us to build personalized content display.The `archiveFilters` tag is undoubtedly a powerful tool for enhancing the user's content search experience and implementing multi-dimensional content filtering.

2025-11-06

Does the `archiveFilters` tag support secondary or multi-level cascading selection, for example, selecting provinces first and then cities?

As an experienced website operations expert, I am well aware that the filtering function plays a crucial role in content management and user experience.Especially when faced with massive amounts of information, an efficient and intuitive filtering system can greatly enhance the efficiency of users in finding the content they need.AnQiCMS (AnQiCMS) has won a lot of praise in the content operation field with its flexible functions and powerful extensibility.

2025-11-06