How to create a new document category in AnQi CMS?

Calendar 👁️ 52

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

Related articles

How to use if, for, etc. logic tags to process document data in the AnQiCMS template?

In the Anqi CMS template world, building dynamic and responsive content display that meets user needs is the core of website operation.As an experienced CMS operation personnel for an enterprise, I fully understand the importance of template logic tags.They give us the ability to render different content based on different data states, making the website not only beautiful but also smartly adaptable to various business scenarios.Today, I will elaborate on how to skillfully use `if` and `for` logic tags in the AnQiCMS template to process document data, thereby creating a website page with rich hierarchy and interactivity.

2025-11-06

How to filter sensitive words and ensure content safety in AnQiCMS documents?

As a senior CMS website operator for an information security company, I know the importance of content security for any website.It not only concerns user experience and brand reputation, but also the foundation for the legal and compliant operation of the website.AnQi CMS places content security at the core from the beginning, providing strong protection for website operators through a series of integrated functions, especially in terms of sensitive word filtering and content compliance.

2025-11-06

How to improve the loading speed of document pages by using AnQiCMS static cache?

As an experienced CMS website operation person, I am well aware of the importance of website loading speed for user experience and search engine optimization (SEO).In today's fast-paced online environment, users have extremely high expectations for website speed, any bit of delay can lead to visitor loss.AnQi CMS fully understands this, and its built-in static caching mechanism is a powerful weapon to solve this challenge. It can significantly improve the loading speed of document pages, bringing a smooth browsing experience to users.### AanQi CMS Static Cache

2025-11-06

How to use AnQiCMS permission control mechanism to manage document editing permissions?

As an experienced website operations manager, I fully understand the importance of an efficient and secure CMS system for content management.AnQiCMS with its flexible permission control mechanism provides strong support for managing document editing permissions, ensuring the standardization and security of the content production process. ### Core Mechanism of AnQiCMS Permission Control AnQiCMS has always regarded "flexible permission control mechanism" as one of its technical highlights since its design.The core of this mechanism lies in supporting 'admin group' and 'permission division'

2025-11-06

Can the content model of a document category be modified after its creation?

As a senior CMS website operation personnel in the security industry, I know that understanding data structures and content classification is crucial in content management.Regarding whether the content model of a document category can be modified after its creation, it is indeed a frequently questioned focus in daily operation.In the design philosophy of Anqi CMS, the association established between the content model and document classification is the core of system content organization.Once the document category is created and the content model it belongs to is specified, this association is fixed and cannot be directly modified.Specifically

2025-11-06

How to add a lower-level subcategory for document classification and manage its hierarchical relationship?

In AnQi CMS, efficient content categorization is not only the cornerstone of organizing website information, but also the key to improving user experience and search engine friendliness.As a website operator who is deeply familiar with the operation of Anqi CMS, I know that a logical and hierarchical classification system is crucial for content management and distribution.This article will detail how to add a lower-level subcategory for existing categories in Anqi CMS and effectively manage its hierarchy.### Build a clear content classification system In the Anqi CMS backend management interface, the content classification module is the core area for building the website information architecture

2025-11-06

How to set the SEO title and keywords of document classification to improve search engine visibility?

As an experienced security CMS website operator, I know that every detail can affect the website's performance in search engines.Content creation and optimization is my core responsibility, and the SEO settings of document classification are the key to improving search engine visibility, attracting target users, and ultimately促成 conversion.AnQiCMS provides many conveniences in terms of SEO, through reasonable configuration, we can fully utilize these features.

2025-11-06

How does AnQi CMS support custom document category URL aliases, and what are the naming rules?

As an experienced CMS website operations personnel in a well-known security company, I am well aware that a flexible and search engine-friendly URL structure is crucial for the success of the website.AanQi CMS provides strong support in this aspect, especially for the custom URL alias feature for document classification, which greatly improves the website's SEO performance and user experience. ### Support and Function of Custom Document Category URL Aliases Anqi CMS, as an enterprise-level content management system developed in Go language, took SEO friendliness into account from the very beginning of its design.Among, the article

2025-11-06