In website operation, we often encounter such needs: different types of content or pages with different themes need to be presented in a unique way to better attract visitors, convey information, and even enhance the brand image.This involves the customization ability of the template.This AnQiCMS provides strong and flexible support in this aspect, allowing users to set custom templates for pages of different categories, thereby achieving differentiated content display.

The template design system of Anqi CMS aims to provide users with high customizability. It uses a template engine syntax similar to Django, with files in.htmlFor suffix, unified storage in the system/templateDirectory.This design concept makes it easy for users who are not familiar with the Go language to pick up template creation quickly.The system supports various modes such as adaptive, code adaptation, and independent PC+mobile sites, but more importantly, it distributes the template control authority to all levels of content management.

Fine-grained template customization for category pages

For the website category page, Auto CMS provides a very flexible template specification method.Imagine your website has three main categories: "News and Information", "Product Showcase", and "Success Stories". You may want to display "News and Information" as a list of blog articles with publication dates and summaries; "Product Showcase" should highlight product images, models, and prices; and "Success Stories" might need a grid layout with both text and images.In the auto CMS, all these can be achieved.

The system will apply a generic template, usually, to the category list page under each content model (such as "article model" or "product model"){分类模型}/list.html.When you want a specific category to have a unique visual presentation, you can find the item 'Category Template' in the edit interface of that category.product/list-10.htmlThe template file, and apply it to the category.

Further more, Anqi CMS also considers the inheritance problem of the classification hierarchical structure.When setting a custom category template, you can choose whether to apply it to subcategories.This means that if you have multiple subcategories under a top-level category and you want all these subcategories to follow the same unique template style, just check this option, and there is no need to set them individually, which greatly improves operational efficiency.At the same time, you can also specify a 'document template' for all documents under a certain category to ensure that all content articles under the category follow specific display rules.

Unique customization for individual content or page.

The template customization capability of Anqi CMS is not limited to the category level, it also extends to the level of individual content articles and independent pages.

For example, there is an extremely important product introduction article or a special event page on your website, and you want it to break free from the constraints of the conventional article template and have a unique visual experience.When adding or editing a document, you will see a "Document Template" field.download.html. The system will load the exclusive template you specified to render the content when accessing this document, rather than following the default article template of its category.

For independent pages (such as "About Uspage/detail.htmlThis general template. But if you want a special layout for the "About Us" page, or specific form elements to be displayed on the "Join Us" page, you can create a namedpage/about.htmlorpage/join-us.htmlEnglish custom template file.Then, when creating or editing these independent pages in the background, specify the corresponding filename in the 'Single Page Template' field.So, each independent page can have its own 'face'.

The value of customized differential templates

Why should we customize differential templates with such care?

Firstly, it greatlyenhanced the user experience.When different types of content are presented in the most suitable way for their characteristics, users can obtain information more quickly and intuitively, reduce visual fatigue, and thus improve the usability and user satisfaction of the website.

Secondly, this helpsStrengthen brand image and visual recognitionThrough designing exclusive page styles for different business segments or content themes, it can convey the brand character more clearly and leave users with a deeper impression of the website content.

Furthermore, differentiated templates areSEO optimizationalso very beneficial.The customized template can better adapt to the structured data needs of specific content, optimize the page loading speed, and allow for more flexible keyword and internal link layout, thereby improving the crawling efficiency and ranking performance of search engines.

The AnQi CMS grants website operators great freedom through this meticulous template control mechanism, making it easy to achieve both a unified overall style for the site and personalized display of specific content.This makes the AnQi CMS not only a content management system but also a powerful tool to help enterprises in content marketing and brand building.


Common Questions (FAQ)

1. I have set up a custom category template, but the page has not taken effect. What is the cause?The most common reason is that the template file name is filled in incorrectly, or the custom template file you uploaded is not in the correct template directory. Please carefully check the template file name you entered in the category settings to ensure that it is exactly the same as the actual template file name (including the extension), and that the file is correctly placed in the template theme folder you are currently using (for exampletemplate/您的主题名/product/list-10.html).

2. How should I set it up if I want all articles under a certain category to use the same custom article template?You can find the "Document Template" field on the edit page of this category. Here you can enter the custom template filename (such asdetail-special.html),This setting will apply to all articles under this category and its subcategories, unless a specific template is set for an individual article.This is much more efficient than setting the template for each article individually.

3. Can I set different custom templates for mobile and PC?Auto CMS supports multiple template types, including "Code Adaptation" and "PC + Mobile" mode. In these modes, you can create in the template theme directory.mobileSubdirectory, and place the mobile end template files with a similar structure but different content to the PC end template.Thus, the system will automatically load the corresponding template based on the user's access to the device, thus realizing differentiated display on the PC and mobile end.