When using the AnQi CMS for website content management or secondary development, you may notice that in the data returned by the interface for obtaining category or document details,data.categorythere is atypeField. The value of this field is usually1or3What does it actually represent in terms of classification attributes, and what is its practical significance for our content organization and website presentation?Understanding this is very crucial for more efficiently utilizing the Safe CMS for website content planning and maintenance.

In simple terms,typeThe field is an important identifier used by Safe 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 is1at that time, it means we are dealing with acommon classification

WhiletypeThe value of the field is3at that time, this classification is defined assingle page

Understanding these twotypetypeValue to judge the nature of the current classification, which can make the page layout and data rendering logic more flexible, thus achieving a more refined and better user experience website content display.


Common Questions and Answers (FAQ)

1. If I set a general category to a single page type, what impact will it have?

2. Can a single page type category have subcategories?Technically, the AnQi CMS allows single-page category types 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 its independence and self-containment. If additional subcategories are set, it will make the website structure complex and confusing, which is not conducive to management and user understanding.

3. Where can I view or modify the category?typeproperties?CategorytypeThe attribute is usually set in the category management module of the Anqi CMS backend. When you create or edit a category, you usually have options to select the type of the category, such as "List" or "Single Page Content", these options correspond totypefield's1and3.