As a website operator who deeply understands the operation of AnQiCMS, I know the importance of content organization for the success of the website.Document classification, as one of the core content management functions of AnQiCMS, is the foundation for building a clear and efficient website structure.Through reasonable classification, we can not only help users find the information they need quickly, but also lay a solid foundation for search engine optimization (SEO).Next, I will elaborate on the complete process of creating a new document category in AnQiCMS.

Understanding the role of document categories in AnQiCMS

In AnQiCMS, document classification plays a key role in the content organization architecture.Each category will be bound to a specific "content model", which means that all documents under this category will follow the same set of content structure.For example, a 'article' model's category may include title, content, publish date, etc., while a 'product' model's category may include product name, price, stock, etc.This design ensures consistency and manageability.Once a category is created and associated with a content model, the model cannot be modified anymore, therefore, careful consideration must be given to the choice of content model when creating a category.

Access and start the category creation process

To start creating a new document category, you need to first log in to the AnQiCMS admin interface.In the left navigation bar, find and click the "Content Management" option.Under the content management module, you will see the sub-menu "Document Categories", click to enter and you will reach the category management page.Here, you can view all current document categories and perform operations such as editing, deleting, etc.To create a new category, find and click the "Add New Category" button usually located at the top of the page.

Core Category Information Configuration

In the "Add Category" or "Edit Category" form, you will first see several core configuration items, which are the basic elements to build categories.

Content ModelThis is the first step in creating a category, and it is also the most important step.You need to select the content model belonging to this category from the drop-down list.AnQiCMS typically built-in “article model” and “product model” etc., you can also create custom content model.As previously emphasized, this selection cannot be changed once saved, so please make the most appropriate choice based on the type of content you plan to post under this category.

Parent CategoryThis option is used to define whether the category you are creating is a top-level category or a subcategory of an existing category.If you choose “No”, then this category will become an independent top-level category.If you want it to be a sub-item of an existing category, just select its corresponding parent category from the drop-down list.Please note that the subcategory must belong to the same content model as its parent category.

Category nameThis is the name displayed to users on the front page. Please use concise and accurate wording so that users can understand the content at a glance.

Category IntroductionCategory introduction is a brief overview of the category content. It can be used as the category introduction text on the front page, and is often used by AnQiCMS to generate the HTML page header.descriptionMeta tag, crucial for SEO effect. It is recommended to fill in a concise description of no more than 150 characters.

Deep optimization and advanced parameter settings

In addition to the core information mentioned above, AnQiCMS also provides an "Other Parameters" area, allowing you to make more detailed optimization and customization settings for the categories.These parameters are not always necessary, but in certain scenarios, they can greatly enhance the user experience of the website and the performance of search engines.

Display OrderThis parameter is used to control the sorting position of categories in the list. The smaller the number, the closer the category is displayed. By default, the order in which new categories are displayed is usually99English version: You can adjust according to your needs.

SEO titleThis is specifically designed for search engines. If you want the category page to<title>

KeywordsThis field allows you to define related keywords for the category, multiple keywords should be separated by English commas,These keywords will be used by AnQiCMS to generatekeywordsMeta tag, helps search engines understand the topic of the category page, thereby improving ranking.

Custom URLCustom URL feature allows you to set a friendly, readable URL path for category pages. In the use of pseudo-static rules,{filename}or{catname}When in pattern mode, this custom URL will take effect.By default, the system will automatically generate a pinyin URL based on the category name you enter.If you are not satisfied, you can manually enter a combination of English letters, numbers, and underscores.Please ensure that the custom URL is unique throughout the entire site, otherwise the system will automatically add random numbers to avoid conflicts.

Category TemplateAnQiCMS allows you to specify a unique template file for a particular category to display its list page content. The default template is usually{分类模型}/list.html. If you create a nameddownload.htmlThe template is used to display download category, you can enter it heredownload.htmlPlease ensure that the custom template file exists in your template design package; otherwise, it will cause the classification page to not display normally.

Whether to apply to subcategoriesBy default, the category template will not be inherited to its subcategories. If you want the custom template set for the current category to also apply to all its subcategories, please check this option.

Document templateThis setting is similar to “Classification Template”, but it acts on all document detail pages under this category. If you want all documents in this category to use a specific template file (such asdetail.html),can fill in here. Similarly, ensure that the template file actually exists.

Banner imageSome categories may need to display one or more Banner carousels at the top of the page. You can upload images here, and it is recommended to upload images of consistent sizes to maintain visual uniformity.

ThumbnailThe category thumbnail is not required for all categories, but if you need to call and display the icon or representative image of the category on the front page (such as the category list or home module), you can upload it here.

Category ContentThis area provides a rich text editor, allowing you to write detailed introductory content for the category page.If you want to add a rich text description in addition to the document list on the category page, you can fill it here.

Complete category creation

When you have completed filling in all necessary information and configuring advanced parameters, please click the "OK" or "Save" button at the bottom of the page.AnQiCMS will process your request and create a new document category.Successfully created, you will be able to see it in the document category list and can start adding documents to it.

Through these steps, you not only mastered the method of creating document categories in AnQiCMS, but also understood the meaning and impact of each configuration item on website operation.Reasonable planning and management of document classification will be a key step to your successful content management.


Common Questions (FAQ)

1. Why can't I modify the content model after creating a category?In AnQiCMS, the content model and document classification are strongly bound core logic.An content model defines the field structure of all documents below it.Once the category is associated with a specific content model, the system will be ready to handle data storage and template rendering for the documents under this model.Modifying the content model will involve significant changes to the underlying data structure, which may result in existing document data becoming chaotic or lost. Therefore, AnQiCMS does not allow the modification of the content model after the creation of categories for the consideration of data integrity and system stability.

2. What is the difference between 'category template' and 'document template' in category settings?“Category template” is used to control the layout and style of the category page (usually displaying the document list under the category).For example, if you have a category named “News”, its “Category Template” determines the display style of the news list page.All documents

3. 'Custom URL' has what limitations and functions? How should I use it?Custom URLs allow you to set a more descriptive or SEO-friendly path for category pages. Its main limitations include:

  • Character limit:It can only contain letters, numbers, and underscores.
  • Uniqueness:)It must be unique throughout the entire website to avoid URL conflicts.
  • Dependent on pseudo-static:Only if you have configured pseudo-static rules in your website{filename}or{catname}When variables are used, custom URLs can take effect. You should set concise and core keyword-containing custom URLs for important categories when creating categories, for example, setting the URL of the "Company News" category to/news/, rather than the default/category/123/. This helps to improve the readability of the URL and to some extent optimize SEO.