As an old soldier in the field of website operation for many years, I know the importance of a flexible and efficient content management system for website operation.AnQiCMS, with its high-performance architecture based on the Go language, rich customization features, and deep optimization for SEO, is undoubtedly a powerful assistant for small and medium-sized enterprises and content operation teams.It not only makes content management simple, but also allows every corner of the website to carry the power of optimization.
Today, let's delve deeply into a very core and practical feature of AnQiCMS - how to customize document categories and set exclusive templates with refined SEO information.This can not only make your website content well-organized, but also bring more traffic and a better user experience to the website through differentiated display and precise SEO layout.
Understand document classification and content model: the 'skeleton' of website content
In AnQiCMS, document classification is not just a categorization of content, it is also related toContent modelClosely connected 'skeleton'.Each time we create a category, we need to select the content model it belongs to, such as 'Article Model' or 'Product Model', or even a custom model.Once a content model is selected, this category is bound to the model, determining the field structure of the documents below.This design greatly enhances the adaptability of the system, allowing you to easily manage a variety of content such as articles, products, and events.
By categorizing, we can clearly organize the website structure, making it easy for users to quickly find the information they need, and also providing clear content signals to search engines.For example, a 'news center' category may belong to an 'article model', while a 'product display' category may belong to a 'product model', their backend fields and frontend display logic will be completely different.
First step: Create and configure custom document classification
To start customizing document classification, we first need to enter the AnQiCMS backend management interface.In the left navigation bar, find the 'Content Management' option under 'Document Category'.Click to see the current list of categories, and you can perform operations such as 'Add a new category' or edit existing categories.
In the form for adding or editing categories, you will see several important configuration items:
- Document model:This is a crucial step for creating a top-level category, as it determines the properties of all content under this category.Please note that once the document model is selected, it cannot be changed, so please make sure to choose carefully.
- Parent category:This allows you to build a multi-level classification structure, providing a more detailed organizational hierarchy. You can choose an existing classification as its parent to ensure they belong to the same document model.
- Category Name:The name displayed on the front page of the category, clear, concise, and accurately describing the content is the key to naming the category.
- Category introduction:Here you can enter a brief introduction to the category content.This not only helps users understand the classification topics, but is also an important source of Meta Description tags in page SEO optimization.
This basic information constitutes the core of the classification, but the powerful features of AnQiCMS are far more than that.In the 'Other Parameters' collapse area of the form, you will find more advanced configurations, which are the key to personalized display and deep SEO optimization.
Step two: Refine the category template settings, create a unique display style
Why do we need to set up a dedicated template for classification?Imagine that your website may have categories to display company news, publish industry reports, and even showcase successful cases.They are all articles, but may require completely different layouts and visual styles.The AnQiCMS category template feature is designed to meet such differentiated needs.
In the 'Other Parameters' collapse area, you will see a name calledcategory templateThe field. By default, AnQiCMS will automatically apply a generic template based on the content model of your category, such as{分类模型}/list.html. When you need to give a unique look to a specific category, you can fill in the name of the custom template here.
For example, if you have a category named "Download Resources", you may need a page with a download button, resource preview, and special layout. You can create a page nameddownload.htmlEnter the template file heredownload.html. AnQiCMS will automatically place in your template design package (usually located/template/{模板目录}/)Search and apply this template. The system even supports more refined default template naming, such as{模型table}/list-{分类id}.htmlIf it exists, it will also be automatically recognized and used, which provides great convenience for advanced developers.
In addition,“Apply to subcategoryThe option is also very practical.If you want all subcategories under a certain category to follow the current category's template style, just set it to inherit, saving the trouble of setting it individually.Document TemplateIf you specify the default template for all document detail pages under a category, it ensures consistency in the display style of documents within that category.
Step 3: Optimize the SEO information of the categories, enhance search engine visibility
In content operation, the SEO optimization of category pages is often overlooked, but it is crucial for the overall ranking and traffic of the website.AnQiCMS provides detailed SEO settings to help you maximize the potential of each category page.
In the "Other Parameters" section, there are several fields specifically designed for SEO:
- SEO Title:This is the title displayed to the user on the search engine results page (SERP).It allows you to set a title for the category page that is more attractive than "Category Name" and includes core keywords.Remember, a good SEO title should accurately summarize the page content and include main keywords to improve click-through rate.
- Keywords:The keywords here will serve as the Meta Keywords tag for the page. Although modern search engines have reduced their weight, it is still important to set relevant keywords and use English commas
,Separation still helps search engines understand the page theme and is helpful for internal content organization and relevance hints. - Custom URL:This is an extremely important SEO optimization point. AnQiCMS will automatically generate a pinyin URL alias based on your category name (
url_token),for example 'company news' may generate 'gongsixinwen'.If you are not satisfied with the automatically generated content, or want a shorter, more descriptive URL, you can manually enter custom content.A friendly URL structure, usually containing keywords, and with clear levels, is very beneficial for search engine crawling and user memory.It should be noted that the custom URL must ensure uniqueness across the entire site. If there is a duplicate, the system will automatically add a random number at the end to ensure uniqueness.Management of Static RuleThe function works closely together, allowing you to define clear and semantically meaningful URL paths, further enhancing SEO effects. - Category introduction:In addition to being a category introduction, this content will also be used as the page's Meta Description.Write an engaging introduction that includes core keywords, effectively enhancing user click-through rates on search result pages.
By these detailed configurations, you can inject powerful SEO energy into each category page of the website, allowing them to achieve better visibility and ranking in search engines.
Call and display in the template: magic of dynamic content
After configuring categories and SEO information, how to present them in the front-end template