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 basis for building a clear and efficient website structure.By 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 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 structures.For example, a category under an "article" model may include title, content, publish date, etc., while a category under a "product" model may include product name, price, inventory, etc.This design ensures consistency and manageability of the content. Once a category is created and associated with a content model, the model cannot be modified anymore, so careful consideration must be given to the choice of the content model when creating a category.

Access and initiate the category creation process

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

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 for building 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 the category from the drop-down list.AnQiCMS usually comes with built-in 'article model' and 'product model' etc., you can also create custom content models.As previously emphasized, this choice cannot be changed once saved, so please make the most suitable choice based on the type of content you plan to post in 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 'None', this category will become an independent top-level category.If you want it as a sub-item of an existing category, just select its corresponding parent category from the drop-down list.Please note that the child category must belong to the same content model as its parent category.

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

Category introductionCategory introduction is a brief overview of the content of this category. It can not only be used as the introduction text of the category on the front page, but is also often used by AnQiCMS to generate the HTML page header.descriptionMeta tags are crucial for SEO. 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 above core information, AnQiCMS also provides a "Other Parameters" area, allowing you to optimize and customize the classification in more detail.These parameters are not always necessary, but they can greatly enhance the user experience and search engine performance of a website in certain scenarios.

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 display order of new categories is usually as follows.99You can adjust it as needed.

SEO titleThis is a title specifically designed for search engines. If you want to categorize the pages.<title>The label content is different from the category name, or more SEO keywords can be included here.It will directly affect the display of the title on the category page in the search engine results page (SERP).

KeywordsThis field allows you to define relevant keywords for the category, multiple keywords should be separated by English commas.,These keywords will be used by AnQiCMS to generate.keywordsMeta tags help search engines understand the theme of the category page, thereby improving ranking.

Custom URLThe custom URL feature allows you to set a friendly, readable URL path for category pages. It is used in pseudo-static rules.{filename}or{catname}When in pattern, 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.Make sure the custom URL is unique throughout the site, otherwise the system will automatically add random numbers to avoid conflicts.

category templateAnQiCMS allows you to specify a unique template file for a specific category to display its list page content. The default template is usually{分类模型}/list.html. If you create a file nameddownload.htmlThe template is used to display download categories, you can fill in heredownload.htmlMake sure that the custom template file exists in your template design package, otherwise the category page will not display normally.

Apply to subcategoryBy default, the category template does not inherit to its subordinate 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 the "Classification Template", but it acts on all document detail pages under this category. If you want all documents within this category to use a specific template file (such asdetail.html), can be filled in here. Similarly, make sure 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 consistency.

ThumbnailCategory 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 have a rich text description on the category page in addition to the document list, you can fill it here.

Complete category creation

After you have completed all necessary information entry and advanced parameter configuration, please click the "OK" or "Save" button at the bottom of the page.AnQiCMS will process your request and create a new document category.After successful creation, you can see it in the document category list and start adding documents to it.

By following these steps, you not only mastered the method of creating document categories in AnQiCMS, but also understood the meaning of each configuration item and its impact on website operation.A well-planned and managed document classification will be a key step to your content management success.


Frequently Asked 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.A content model defines the field structure of all documents below it.Once the classification is associated with a specific content model, the system will be ready for data storage and template rendering for the documents under the model.The modification of the content model will involve significant changes to the underlying data structure, which may result in the disorder or loss of existing document data. Therefore, AnQiCMS does not allow the modification of the content model after the creation of the category due to considerations of data integrity and system stability.

2. What is the difference between 'category template' and 'document template' in category settings?The "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.The 'Document template' is used to control the category underAll documentsThe detail page layout and style. For example, if you want all news articles under the "News" category to use a specific detail page layout, you can specify a "document template" in the settings of the "News" category.In simple terms, 'Category Template' manages the list page, and 'Document Template' manages the detail page.

3. What are the limitations and functions of the 'Custom URL'? 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 website to avoid URL conflicts.
  • Dependency of pseudo-static:Only if you have configured pseudo-static rules on your website{filename}or{catname}When variables are involved, custom URLs can take effect. You should set concise and core keyword-rich custom URLs for important categories when creating categories, for example, setting the URL for the "Company News" category to/news/Instead of the default,/category/123/This helps improve the readability of the URL and optimize SEO to some extent