If the `archiveFilters` tag does not display any filtering conditions, what are the common troubleshooting steps?

Calendar 👁️ 69

AnQiCMSarchiveFiltersThe tag does not display the filter conditions? The expert guides you step by step to troubleshoot!

As website operators, we understand the importance of a smooth and efficient user experience for a website. AnQiCMS (AnQiCMS) providesarchiveFiltersThe tag, precisely to help us build this experience, it can dynamically generate filtering conditions based on the various parameters of the document, greatly enhancing the discoverability of the content. However, when you are filled with anticipation to bringarchiveFiltersLabel deployed to the template, but found the page empty, without any filtering conditions displayed, and we feel the confusion and anxiety in that moment.Don't worry, this is usually not a system failure, but some configuration details are not in place.archiveFiltersThe tag is reborn with vitality.

1. ConfirmarchiveFiltersIs the syntax and core parameters of the tag correct?

First, and the most fundamental step, we need to confirm.archiveFiltersIs the usage of the tag correct? Have you correctly introduced the tag in the template and passed the necessary parameters?

According to the AnQiCMS template tag document,archiveFiltersthe basic usage of tags is{% archiveFilters 变量名 with moduleId="1" allText="全部" %}. The most crucial parameter here is,moduleIdIt explicitly tells the system which content model you want to generate filtering conditions for. For example, if you want to filter the article model (usuallymoduleIdWith1), then your tag may look like this:{% archiveFilters filters with moduleId="1" allText="全部" %}Please verifymoduleIdDoes the value match the content model ID you want to filter (which can be viewed in the "Content Model" backstage).Sometimes, a small numerical error can cause the label to be unable to parse correctly or to not be able to obtain the filtering data of the corresponding model.

Also, pay attentionallTextThis parameter defines the default text for all options, such as "All". If you set it tofalseConfirm, if this 'All' option may not be displayed, this may sometimes give the impression that there are no filtering conditions.allTextThe settings meet your expectations, if you want it to be displayed, make sure its value is a string (for example"全部") rather thanfalse。“Furthermore,”siteIdThe parameter is optional in a multi-site environment, and if you do not specify or specify incorrectly, it may also affect the loading of filter conditions.

2. In-depth Content Model: Is the custom field configured and supported for filtering?

If the label usage looks fine, then our attention needs to turn to the core of AnQi CMS - the content model.archiveFiltersThe label can display filter conditions because it depends on the definitions you make in the content model.Custom fieldThese fields must not only exist but also havefilterable properties.

Please log in to the AnQi CMS backend, go to 'Content Management' -> 'Content Model', find the one you specified inarchiveFiltersspecified inmoduleIdThe corresponding model (such as "article model" or "product model"). Click edit to view the custom fields defined under this model. Here are several key points to confirm:

  • Does the custom field exist?Have you added custom fields such as 'region', 'house type', 'color', etc. to the model?archiveFiltersIt exists to filter these custom parameters, if there are no fields available for filtering in the model, it naturally cannot display any conditions.
  • Does the field type support filtering?Not all custom field types are suitable for beingarchiveFiltersThe filtering criteria. Fields such as 'single selection', 'multiple selection', and 'drop-down selection' usually provide clear options for users to choose from, they arearchiveFiltersThe ideal source of filtering criteria.Make sure you have provided specific "default values" (i.e., option values), as the system will generate filter options based on these values.archiveFiltersThe filtering criteria, because the system cannot automatically generate a fixed option list for it.
  • Are the field options complete?Ensure you provide enough options when defining fields of radio, checkbox, or dropdown types.If the option is empty, even if the field type is correct, the filtering condition cannot be generated.

In short, only when there is a well-configured and suitable custom field in the content model,archiveFilterscan the tags 'find' them and display them.

3. Has the document data been filled in with the relevant custom fields

Even if you have correctly configured the content model and custom fields, if there is no actual document data to 'fill' these filtering conditions, in the system,archiveFiltersIt will still be displayed as empty. For example, if you have set a "region" filter field in the content model, but all articles have not filled in the region information at the time of publication, or only filled in a single region, then the filter may only display

Related articles

After the page loads, is the `archiveFilters` tag dynamically generated or statically pre-generated?

AnQiCMS (AnQiCMS) is an enterprise-level content management system with efficiency, security, and SEO-friendliness as its core, fully reflecting these concepts in the design of its template tags.Regarding the question you raised, is the `archiveFilters` tag dynamically generated as a filter condition or statically pre-generated?This topic, we can delve into the unique aspects of AnQiCMS in handling such features.

2025-11-06

How to use the `archiveFilters` tag in Anqi CMS to implement multiple condition filtering, such as "house type" and "area"?

In today's information explosion in the online world, users' demand for information acquisition is becoming more and more accurate.A great website not only needs to have rich content but also needs to provide an efficient and convenient content filtering function to help users quickly locate the information they need.As an experienced website operation expert, I am well aware of the importance of refined filtering for improving user experience and website conversion rate.

2025-11-06

Are the filtering links generated by the `archiveFilters` tag SEO-friendly? What built-in optimizations does AnQi CMS provide for this?

As an experienced website operation expert, I am well aware that in today's highly competitive online environment, the SEO-friendliness of the Content Management System (CMS) is the foundation for the success of the website.AnQiCMS is known for its efficiency and flexibility, and the `archiveFilters` tag it provides is a topic of concern for many operators, as it affects SEO and has built-in optimization strategies in generating filtering links.Today, let's delve deeply into this topic.

2025-11-06

The `archiveFilters` tag generates each filter option (`Items`) and includes which available fields, such as `Label`, `Link`, `IsCurrent`?

As an experienced website operations expert, I deeply understand the importance of content organization and user experience for the success of a website.AnQiCMS (AnQiCMS) with its powerful content management and flexible template customization capabilities has become my powerful assistant in efficiently operating my website.Today, let's delve into the `archiveFilters` tag, especially the key fields included in each filter option (`Items`), which are the foundation for refined content filtering and optimizing user experience.

2025-11-06

Does the `archiveFilters` tag support filtering user-defined "content model custom fields"?

As an experienced website operations expert, I am well aware of the importance of the flexibility of a content management system (CMS) in efficient operations, and AnQiCMS, with its powerful content model customization capabilities, has provided us with great convenience in this regard.Today, let's delve deeply into a question that concerns everyone: Does AnQiCMS's `archiveFilters` tag support filtering custom fields of the content model?

2025-11-06

Under multi-site management scenarios, how does the `siteId` parameter of the `archiveFilters` tag ensure that the correct site's data is filtered?

As an experienced website operations expert, I am well aware that efficient and accurate content management is the cornerstone of success in a complex digital environment.AnQiCMS (AnQiCMS) takes advantage of its powerful multi-site management capabilities, providing great convenience for operators.However, with the increase in the number of managed sites, how to ensure that the data filtered in specific scenarios comes from the target site we want, rather than the current site or other irrelevant sites, this involves a crucial parameter in the `archiveFilters` tag - `siteId`.###

2025-11-06

What is the structure of the filtering link URL generated by the `archiveFilters` tag? Is it compatible with the pseudo-static rules?

As an experienced website operations expert, I often deal with various CMS systems in my daily work, and I know that every detail of a system is crucial in terms of content management, SEO optimization, and user experience.AnQiCMS (AnQiCMS) stands out in these aspects due to its lightweight and efficient features, especially the flexible use of template tags, which brings great convenience to website operations.

2025-11-06

How to manually simulate the `archiveFilters` tag's filtering effect by modifying URL parameters?

As an experienced website operation expert, I know that AnQiCMS (AnQiCMS) is flexible and powerful in content management.In daily operations, we often need to accurately control the way content is displayed, the `archiveFilters` tag is one of the key tools to achieve this goal, and it can generate dynamic filtering conditions based on the various parameters of the document.However, understanding the mechanism behind the automatic generation of filter links through template tags, and learning to manually simulate these filtering effects, will bring greater flexibility and control to our content operations.

2025-11-06