The `data.category` field (such as 1 or 3) represents what type of attribute the classification has?

Calendar 👁️ 79

When using AnQi CMS for website content management or secondary development, you may notice that in the data returned by the classification or document detail interface,data.categorythere is one undertypefield. This field's value is usually1or3What does it actually represent in terms of classification, and what practical significance does it have for our content organization and website display?Understanding this is very crucial for efficiently utilizing Anqie CMS for website content planning and maintenance.

In simple terms,typeThe field is an important identifier used by AnQi CMS to distinguish between different types of classification logic.It determines whether a "category" is treated as a container for a content list within the system or as an independent page that carries its own content.

Whentypethe value of the field is1when, this means we are dealing with acommon category. You can imagine it as common columns on our website like 'News Center', 'Product Catalog', or 'Blog Articles'.The main purpose of this category is to aggregate a series of related documents or products, it does not directly display a large amount of content, but serves as an index, which includes several specific articles, product detail pages, and so on.For example, under the "News Center", you will have subcategories such as "Company News", "Industry Dynamics", and more. Each subcategory can publish countless news articles.When a user visits this type of category page, they will usually see a list of contents, and they need to click on an item in the list to enter the specific document detail page.This type is most suitable for scenarios that require long-term updates and a large amount of content to be categorized and archived.

whentypethe value of the field is3when, this category is defined assingle page. As the name implies, it is more like an independent page, with its content stored directly in the information of this category.For example, pages such as "About Us", "Contact Us", "Service Introduction", or "Privacy Policy" on a website are very suitable for creating and managing with a single-page type.This page usually contains fixed content, does not need to be updated frequently, and does not require the publication of multiple sub-articles under it.When a user visits a single-page type category, the preset detailed content of the category will be displayed directly, rather than a list.This pattern simplifies the management of static pages, making content and structure clearer.

understanding these twotypeThe difference in properties helps us make the correct choice when planning content on the Anqi CMS backend.A common category can carry a large number of documents, forming a rich list;And a single page is more focused on displaying a complete, independent static information.When designing website structure and template development, according to thistypeValue to judge the nature of the current category, which can make the page layout and data rendering logic more flexible, thus achieving more refined and better user experience website content display.


Frequently Asked Questions (FAQ)

1. What happens if I set a normal category to a single page type?Setting a normal category unexpectedly to a single-page type may cause unexpected display issues.The system will attempt to directly render the content of the category itself (if it exists), while ignoring the published sub-documents below, or the links to the sub-documents may become invalid.This means that the meticulously published series of articles or products may not be displayed properly on the front end, severely affecting user experience.

2. Can a single page type category have subcategories?Technically, AnQi CMS allows single page type categories to have subcategories.But from the perspective of content organization logic and website structure clarity, this is usually not recommended.The core of a single page lies in the independence and self-containment of its content. If additional subcategories are set for it, it will make the website structure complex and easy to confuse, which is not conducive to management and user understanding.

3. Where can I view or modify the category?type?category oftypeProperties are usually set in the category management module of Anqie CMS backend. When you create or edit a category, you usually have options to select the type of the category, such as 'normal list' or 'single page content', and these options correspond to thetypefield's1and3.

Related articles

How to get the list of all tags (Tags) associated with the current document details?

In AnQi CMS, tags are important tools for organizing content, enhancing user experience, and optimizing search engine rankings.They can help visitors find relevant content quickly, and also allow website administrators to better manage information.When we browse the details page of a document, we often hope to see a list of all tags associated with the document, which can not only guide users to discover more relevant content, but also enrich the semantic structure of the page.To obtain the tag list associated with a specific document, we usually need to perform two steps: first, determine the unique identifier of the target document

2025-11-09

Is there a recommended word limit or **practice** for the `description` field in the document details?

In the daily use of AnQi CMS, the `description` field is a seemingly insignificant but extremely important part.It is not just a brief summary of the content, but also a bridge of communication between the website content, search engines, and users.A well-written description that can effectively improve the click-through rate of articles in search results and help search engines better understand the content theme.According to the AnQi CMS documentation, when publishing or importing a document (archive), the `description` field has a clear recommendation

2025-11-09

In addition to retrieving the details of a single document, does Anqi CMS provide an interface to obtain the list of documents under a specific category or model?

When building a website with AnQiCMS, we often have such doubts: In addition to being able to accurately obtain the detailed information of a specific document, does the system also provide a function to obtain a list of all documents under a certain category or model at one time?The answer is affirmative. Anqi CMS fully considers the flexibility of content management and display, providing powerful interfaces to meet such needs.To retrieve the document list under a specific category or model, it mainly relies on the `/api/archive/list` interface provided by AnQi CMS

2025-11-09

What are the considerations for replacing `{domain address}` during deployment?

When using AnQiCMS for secondary development or integrating with external systems, you will often encounter placeholders like `{domain address}` in the API interface documentation.This represents the actual URL where your Aiqi CMS is deployed.Correctly replace this placeholder is the basis to ensure API call success and system stable operation.Understand the meaning behind it and master the precautions when replacing, which can help you interact with AnQiCMS more efficiently.Firstly, `{domain address}` is essentially a variable

2025-11-09

How to implement the increase of document views (`views`) or update of other fields through API?

When you are running a website, you often need to manage content data in a fine-grained manner, such as tracking the number of views of articles, or modifying other properties of documents in specific scenarios.AnQiCMS provides a powerful API interface, making these operations possible.This article will introduce you in detail on how to use these interfaces to increase the document page views or update other fields. ## Learn about the API interaction mode of Anqi CMS In Anqi CMS, operations on document data are mainly divided into retrieval (read) and writing (creation/modify).for reading data

2025-11-09

How to optimize API requests to improve user experience when loading document details on the front-end page?

In website operation, user experience is always a core consideration. When visitors click into a document detail page, they expect a smooth, fast and secure content loading experience.AnQiCMS (AnQiCMS) provides a powerful and flexible API interface, allowing us to carefully design the document loading mechanism of the front-end page, thereby significantly improving user satisfaction.**Understanding the Core: The Power and Details of the `archiveDetail` Interface** When we talk about loading document details, the focus is initially on the `archiveDetail` interface

2025-11-09

If multiple recommended properties exist in the `flag` field (such as 'hc'), what characteristics does the document have simultaneously?

How to make important information stand out in the vast sea of content on a website and be discovered by users first is the focus of every operator.AnQiCMS (AnQiCMS) provides us with a very flexible and powerful tool for managing the display priority and characteristics of content - that is the `flag` field.This little field, yet contains huge potential for content operation.The mystery of the `flag` field: the叠加effect of multiple attributes In Anqi CMS, the `flag` field plays the role of document "recommended attribute" or "characteristic mark".

2025-11-09

Why does the document detail have `price` and `stock` fields, even though the document is not a product type?

When using AnQiCMS to manage website content, many users may notice a phenomenon: even for ordinary articles, news, and other non-product type documents, the returned data structure still contains the `price` (price) and `stock` (inventory quantity) fields when their details are retrieved through the API.This may seem confusing at first glance, but after understanding the design philosophy of AnQiCMS, it will be found that this is exactly the embodiment of its powerful flexibility and scalability.AnQiCMS is designed at the bottom level

2025-11-09