What types of document list display does AnQiCMS support, and how to filter content by category or model?

Calendar 👁️ 63

When using a content management system, efficiently displaying and organizing various information is the key to improving website user experience and operational efficiency.AnQiCMS provides very flexible and powerful features at this point, it not only supports multiple types of content list display, but also allows content filtering through multiple dimensions, helping users present information accurately.

Display of diverse content lists:超越traditional article lists

One of AnQiCMS's core strengths lies in its 'flexible content model'.This means that the website is not limited to traditional article publishing, you can create various types of content according to your business needs, such as product displays, service introductions, event announcements, and even case studies.This content of different types can be managed and displayed in a unified way.

The most common way to display these content lists is througharchiveListLabel. This label is like a universal content extractor, which can grab and present the specified content set according to the parameters you set.For example, you can easily list the latest blog posts or display popular product lists.In addition to common articles and products, AnQiCMS also supports more types of list displays, such as:

  • Tag aggregation list: PasstagDataListTags, you can display all documents associated with a specific tag, which is very useful for building thematic pages or content aggregation.
  • Page listUtilizepageListLabel, you can list all independent pages on the website (such as “About Us”, “Contact Us”, etc.), which is convenient for unified management or display in specific areas.
  • Category List:categoryListTags are used to display the classification structure of the website, whether it is a first-level classification or a multi-level sub-classification, it can be flexibly called.
  • Other auxiliary lists: In addition, AnQiCMS also provides such aslinkList(Friend links),commentList(Comment),navList(Navigation) andbannerList(Banner images) and many other list tags, greatly enriching the possibilities of website content presentation.

This diverse list display capability ensures that no matter how complex the structure of your website content is, AnQiCMS can provide the appropriate tools to present them.

Flexible filtering: accurately locate the required content

Having a rich list type is just the first step, what's more important is how to accurately filter out the target information from a vast amount of content.AnQiCMS provides a multi-dimensional filtering mechanism, making content management and display more refined.

Filter by category

Categorization is the most basic and most commonly used way to organize content. InarchiveListYou can filter through the tags.categoryIdThe parameter specifies which category or categories of content to display. For example, if you want to display the latest articles under the "News Dynamic" category on the homepage, just pass the corresponding category ID tocategoryIdAs soon as possible. Furthermore, if you want to display the content of a category and all its subcategories at the same time, you can setchild=trueThe system will automatically aggregate all related content, saving the trouble of manually adding each subcategory ID one by one.

Filter by content model

The content model is the unique feature of AnQiCMS, which allows you to define the structure of content (for example, the article model has a title, body, and the product model may also have price, inventory, etc.). ThroughmoduleIdParameters, you can specify to only display content under a specific content model.This is very useful in websites with multiple businesses or content types.For example, in one area of the website, only the content under all "product models" is displayed, while in another area, only the content under "article models" is displayed, even if they belong to different categories, they can be clearly distinguished.

Advanced Custom Filtering

In addition to basic classification and model filtering, AnQiCMS also supports more advanced custom filtering.When creating a content model, you can add various custom fields (such as "product color", "house type", "service duration", etc.). ByarchiveFiltersLabels, combined with URL query parameters, users can perform multiple filtering on the front-end page based on these custom fields.For example, on real estate websites, users can simultaneously filter the list of housing resources with 'residential' type, 'three bedrooms and two living rooms' layout, and located in the 'downtown' area, realizing highly personalized content display.

Filter by Tag

Tags provide a flattened content association method, where content of different categories or models can be tagged with the same tags. UsetagDataListLabel, you can usetagIdParameter to filter out all documents with specific labels. This is very effective for creating hot topics, thematic aggregation pages, or related content recommendations.

Other auxiliary filtering

To further optimize content display,archiveListTags also support other auxiliary filtering conditions:

  • Sorting method (order): You can sort content by publication time (id desc), views (views desc)or custom sorting in the background(sort desc) to arrange content.
  • Recommended attributes (flag): You can set different recommendation attributes (such as headlines, recommendations, slides, etc.) when publishing content, and you can filter and display content with specific recommendation attributes through parameters.flagYou can filter and display content with specific recommendation attributes through parameters.
  • Search keywords (q)Combine with search function,qParameters can directly filter the document list containing specific keywords.

Pagination and dynamic loading: enhance user experience

For websites with a large amount of content, loading all content at once will severely affect page performance. AnQiCMS providestype="page"The parameter withpaginationa combination of tags, offering an elegant pagination solution. WhenarchiveListis set totype="page"It will return the data required for pagination thenpaginationThe tag is responsible for generating a beautiful and functional pagination navigation.This not only speeds up page loading, but also allows users to easily browse a large amount of content, thereby improving the overall user experience.

In summary, AnQiCMS provides great convenience to website operators with its flexible content model and powerful content list display and filtering mechanism.Whether it is a simple article list or a complex product display page with multiple filtering conditions, AnQiCMS can help you present the website content efficiently and accurately, thus better serving your users.


Frequently Asked Questions (FAQ)

  1. Question: Can I use the samearchiveListAre documents from different content models displayed simultaneously in the tag?Answer: Usually, aarchiveListThe tag is used for querying and displaying content for a single or a group of identical models. If you need to display content of mixed models in a single area, it is recommended to use multiple tagsarchiveListtags, each tag specifying differentmoduleIdThen combine them through frontend layout (such as side-by-side display or tab switching).

  2. What if I want to filter the list based on the value of a custom field selected by the user on the frontend?AnQiCMS providesarchiveFiltersLabels to support this requirement. First, you need to check the "Is used as a filter condition" option in the custom fields of the content model. Then, use it in the template.archiveFiltersLabel retrieves all filterable parameters and their options, and generates a front-end filtering UI. After the user selects a filter condition, the front-end generates a URL with query parameters,archiveListThe tag automatically recognizes these URL parameters and filters the content accordingly.

  3. Ask: Will a long URL be affected by SEO when multiple filtering conditions are applied?Answer: Long URLs with a lot of parameters can indeed have an impact on SEO, especially in terms of search engine crawling and indexing.AnQiCMS supports pseudostatic rules, which helps beautify the URL.For complex URL filtering, you can consider the following strategies: a) usecanonicalTags point to the main, simpler page; b) Atrobots.txtConfigure reasonably to avoid search engines from crawling unnecessary parameter combinations; c) Optimize the filtering logic, try to reduce the number and complexity of URL parameters, or load less important filtering conditions using AJAX without changing the URL.

Related articles

How to optimize URL structure using the pseudo-static function of AnQiCMS to improve search engine ranking?

In the practice of website operation and search engine optimization (SEO), a clear and friendly URL structure is crucial for the performance of the website.The traditional dynamic URL often contains parameters and numbers that are hard to understand, which not only makes it difficult for users to remember and share, but also makes it complex for search engines to crawl and understand the content. 幸运的是,AnQiCMS provides powerful pseudo-static features, allowing us to easily convert dynamic URLs into static, more semantic URLs, thereby significantly improving the search engine rankings of the website.

2025-11-07

How to configure SEO-friendly title, keywords, and description for the AnQiCMS website homepage?

When operating a website built with AnQiCMS, configuring a SEO-friendly title (Title), keywords (Keywords), and description (Description) on the homepage is a critical step to improving the website's visibility in search engines.This not only helps search engines better understand the core content of your website, but also attracts potential visitors to click, thereby bringing more traffic.AnQiCMS provides intuitive and easy-to-use features, making it easy to configure these important elements.

2025-11-07

How to implement multi-language content switching and front-end display in AnQiCMS?

AnQiCMS demonstrates its powerful and flexible multilingual support capabilities in global content promotion.Whether it is to provide customized content for users in different regions or to optimize the crawling and ranking of search engines, AnQiCMS provides intuitive and efficient solutions.Below, we will delve into how to use AnQiCMS to implement multi-language content switching and front-end display.

2025-11-07

How to customize the display layout of the article detail page in AnQiCMS?

When using AnQiCMS to manage website content, the layout and display effects of the article detail page directly affect the user experience.AnQiCMS provides high flexibility, allowing us to customize the display layout of the detail page according to the needs of different types of content or specific articles, without being limited to a single template style.To implement the personalized layout of the article detail page, we mainly use the template mechanism and content management function of AnQiCMS.The core idea is: define various layout structures in the template file, and then select the corresponding layout when editing articles in the background.

2025-11-07

How to add thumbnails to articles and products on the AnQiCMS website and control their frontend display styles?

Managing website content in AnQiCMS, thumbnails are undoubtedly an important element in enhancing user experience and page attractiveness.Whether it is an article that attracts users to click or a detailed page that showcases product features, a suitable thumbnail can play a huge role.What is even better is that AnQiCMS provides an intuitive backend operation and flexible template tags, allowing us to easily add thumbnails to articles and products and finely control their display styles on the front end.

2025-11-07

How to set up the website navigation menu in AnQiCMS and support multi-level dropdown display?

The website navigation is the first window for users to interact with the website, a clear and intuitive navigation design can greatly enhance the user experience and effectively guide them to find the information they need.In AnQiCMS, setting up the website navigation menu and supporting multi-level dropdown display is a flexible and practical feature.Next, we will explore how to achieve this goal in AnQiCMS together. ### Build the backend logical structure of the website navigation To create and manage the navigation menu in AnQiCMS, you need to enter the "Navigation Settings" area of the backend.

2025-11-07

How to use the timed publishing feature in AnQiCMS to accurately

Today, in the increasingly refined field of content marketing, both the quality of the content and the timing of its dissemination are equally important.A well-crafted content, if released at an inappropriate time, may not achieve the expected communication effect.AnQiCMS is an efficient management system designed specifically for content operators, deeply understanding this field, and its built-in scheduling publication function is the key tool to help us accurately grasp the 'golden moment' of content marketing.The core concept of the scheduled publishing function is to make content going online no longer limited by manual operation time.

2025-11-07

How to customize the display layout of the website page in AnQiCMS?

AnQiCMS provides very flexible and powerful custom layout capabilities for website pages.Whether you want to quickly build a corporate website with a unique style or need to finely operate multi-site content, AnQiCMS can give you complete control over the 'skeleton' to 'flesh' of the website.### Core Concept: Comprehensive Control from Skeleton to Detail The customization ability of AnQiCMS is mainly reflected in the use of the Django template engine syntax, which is natural and smooth, easy to learn, even if you are not a professional backend developer

2025-11-07