Besides the document homepage and category pages, where else can the `archiveFilters` tag be used in the templates?

Calendar 👁️ 56

As an experienced website operation expert, I fully understand that in order to truly realize its value, we need to deeply explore the potential of CMS functions and apply them to a wider range of scenarios. Anqi CMS's template tag system is designed to be quite flexible,archiveFiltersLabels are one of the powerful tools that can greatly enhance the user's content filtering experience.

The document explicitly points out.archiveFiltersTags are mainly used on the "document homepage or document classification template" and are combined with the document pagination list. This is undoubtedly its most common and direct application scenario. However, a deeper understandingarchiveFiltersThe principle and parameters, we will find that its application is not limited to this, it can shine in more types of templates, providing users with a more refined and personalized content browsing experience.

archiveFiltersThe core role of tags

Before discussing its extended applications, let's review it firstarchiveFiltersThe core function of the label.It aims to dynamically generate a set of filtering conditions based on custom parameters in the document content model, allowing users to perform multi-dimensional and combined filtering on the current list of displayed documents.For example, a real estate website can filter by custom fields such as 'house type', 'price range', 'number of bedrooms', etc., which greatly enhances the interactivity of the website and the efficiency of users in searching for information.

The key point of this tag is that it can identify content models (moduleId)and its associated custom fields, and dynamically generate filter links based on the current URL parameters(Link)and the selected state(IsCurrent)。It is this dynamic generation andmoduleIdThe dependency determines its actual application scope.

Besides the document homepage and category pages,archiveFilterswhere can it shine and glow?

Although the document points out the homepage and category pages, this is more based on the most common content organization form. In fact, as long as your template is responsible for displaying aA filterable list of documents, and it can clearly provide or infer the ID of the content modelmoduleId),archiveFiltersTags are useful. The following are some common and highly valuable extended application scenarios

  1. Search Results Pages (Search Results Pages)When a user searches for content through the website's search function, Anq CMS'sarchiveListLabel combinationqThe parameter can perfectly display the search results. However, the search results are often numerous, and users may wish to perform secondary filtering based on the existing results.

    Imagine, the user searched for "Go language tutorial", and the result list presented a large number of relevant articles. At this time, if it could be integrated into the sidebar or top of the search results pagearchiveFiltersAllow users to further filter by "difficulty level" (custom field), "publish time", "author", etc., which can greatly improve the efficiency of users finding their target content.This makes the search results no longer a simple list, but an interactive, refined dataset.

    The key lies in:The search result page is usually already passed through URL parameters (such asq=关键词) Passed the search context, and if your search results mainly come from one or more fixed content models, then specifying it clearly will helpmoduleId,archiveFiltersit will work well.

  2. Tag Aggregation Pages (Tag Aggregation Pages)Tags (Tags) are an important way to organize and discover content. Anqi CMS providestagListandtagDataListLabels to display labels and associated documents.When the user clicks on a specific tag (such as "SEO optimization") to enter the Tag aggregation page, they will see a list of all documents tagged with this tag.

    On this page,archiveFiltersThe introduction allows users to further filter according to the "Applicable Industry" (custom field), "Content Format" (such as "Tutorial", "Case Study") and other criteria under the large topic of "SEO Optimization".This provides users with a browsing path from broad to detailed, enhancing the hierarchical and exploratory nature of the content.

    The key lies in: tagDataListorarchiveListOn the Tag page, it usually explicitly associates with a certainmoduleId(Or you can manually specify a primary one based on the characteristics of the Tag-associated documents,moduleId), forarchiveFiltersProvided the necessary context.

  3. Custom Content List PagesMany websites create various customized content lists based on operational strategies, such as 'Hot Product Recommendations', 'Latest Technical Articles', 'Expert Interview Collections', etc. These pages may not directly correspond to a specific category, but rather througharchiveListLabel combinationflag(Recommended attribute),orderA set of specific content filtered by parameters such as sorting method.

    For example, a 'Hot Products' page displays a list of the best-selling products. If you can add something to this pagearchiveFiltersAllow users to filter by 'Product Color', 'Material', and 'Feature Characteristics' (all custom fields), which will undoubtedly make this 'Recommended' list more interactive and practical.Users are no longer passive recipients of recommendations, but can actively find the product that best suits their needs among popular items.

    The key lies in:In such custom pages, you need to ensure that you callarchiveFilterswhen, explicitly throughmoduleIdThe parameter specifies the content model to be filtered, as it may not automatically infer as the category pagemoduleId.

  4. Model-Level HomepagesIf your website has multiple independent content models, and each model has an independent "homepage" (for example, a page dedicated to displaying "courses", and a page dedicated to displaying "news"), even if these pages are not the global homepage of the website, they can still be considered as the "homepage" of the content model.

    For example, an online education platform may have a 'course' model. On the course list page (which can be considered the homepage of the course model),archiveFiltersYou can provide a function to filter by various conditions such as 'Subject Category', 'Lecturer', 'Course Difficulty', 'Fees', etc.This allows users to efficiently browse and select courses that meet their learning needs.

    The key lies in:Such pages are inherently associated with a specificmoduleIdTightly bound, thereforearchiveFiltersThe use will be very natural and efficient.

Summary

Of Security CMSarchiveFiltersTags are far from being limited to the document home page and category pages. Their strength lies in their ability to dynamically generate filter conditions based on the custom fields of the content model. Therefore, any displayFilterable document listandCan explicitly provide the content model ID (moduleId)The templates can fully utilizearchiveFiltersTags, bringing richer and more efficient content discovery experience to your website users.As operators, we should go beyond the literal meaning of labels, starting from user needs and flexibly using the various tools provided by CMS.


Frequently Asked Questions (FAQ)

Q1: When using on non-category pages or the document homepagearchiveFiltersifmoduleIdNot explicitly specified, what will happen?A1: If it is not explicitly specified in these templatesmoduleId,archiveFiltersThe label may not be able to correctly obtain the context, thus failing to generate an effective filter condition, or the generated filter condition does not meet expectations. To ensure the label works properly, it is recommended to always go through the expanded application scenarios.moduleId="您的内容模型ID"Specify the content model to be filtered by parameter.

Q2: Can I use it on the document detail page?archiveFiltersAm I supposed to use the label?A2: Generally, it is not recommended to use it on a single document detail page.archiveFiltersLabel. Because the purpose of the detail page is to display the complete content of a single document, not a filter list.archiveFiltersThe design intention is to perform a filtering operation on a "list". If you want to display related documents and provide a filtering function on the detail page, you can consider designing the filtering module as an independent "related document list" area and using it within the regionarchiveListCombinearchiveFiltersEnsure that the display logic of the list is separated from the filtering logic.

Q3:archiveFiltersDoes the generated filter link automatically include the existing search keywords or other URL parameters?A3: Yes,archiveFiltersThe label has a certain intelligence when generating filter links. It considers the existing search keywords in the current URL (such asqParameters and other valid filtering parameters, and keep them in the generated filtering link.This means that users can continue to apply other filtering conditions after searching without losing the context of the original search, which greatly enhances the user experience.

Related articles

Does the `archiveFilters` tag support responsive layout and filtering display in mobile templates?

In the Anqi CMS ecosystem, many operators and developers are concerned about a core issue: whether our powerful `archiveFilters` tag can be flexibly responsive in mobile template layouts and display filtering?As an experienced website operations expert, I can clearly tell you that the answer is affirmative, but it contains the unique template design philosophy and implementation mechanism of Anqi CMS, which is worth in-depth exploration.

2025-11-06

How is the performance of the `archiveFilters` tag for models with a large number of filtering conditions? Are there any optimization suggestions?

## Taming massive filtering conditions: A deep dive into the performance analysis and optimization of the AnQiCMS `archiveFilters` tag As a seasoned website operations expert, I am well aware that performance is the key to user experience and operational efficiency when managing websites with a large number of content models and filtering conditions.AnQiCMS with its high-performance architecture based on the Go language is highly favored in the content management field.Today, let's delve into the core tag of AnQiCMS for handling complex filtering scenarios —— `archiveFilters`

2025-11-06

Does the `archiveFilters` tag support filtering by numerical range, such as 'price range' or 'date range'?

## Deeply analyze the Anqi CMS `archiveFilters` tag: Does it support numerical range filtering?As an experienced website operations expert, I am well aware of the importance of the flexibility of the filtering function in a content management system for user experience and content presentation.AnQiCMS (AnQiCMS) is favored in the content management field for its efficiency and customizable features.

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

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 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 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

`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