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.