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: Pass
tagDataListTags, you can display all documents associated with a specific tag, which is very useful for building thematic pages or content aggregation. - Page listUtilize
pageListLabel, 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 as
linkList(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)
Question: Can I use the same
archiveListAre 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).What if I want to filter the list based on the value of a custom field selected by the user on the frontend?AnQiCMS provides
archiveFiltersLabels 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.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) use
canonicalTags 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.