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.