In website content operation, personalized display is the key to attracting users and optimizing experience.We often encounter the need: a particular content category requires a unique layout, or an important document needs a unique presentation style.So, in Anqi CMS, when we add a new category, can we specify a dedicated document template and category template for it?The answer is affirmative, and Anqi CMS provides a very flexible and practical solution for this, allowing your website content to be presented to users in the most appropriate way.

The design philosophy of AnQi CMS is one of high customization and flexibility, which is fully reflected in template management.It fully considers the needs of content diversity, providing fine template control capabilities for content at different levels.

Configure a dedicated template for content categories

First, Anqi CMS allows you to specify a dedicatedcategory template.This means that when a user visits a category list page, it will load a template specifically designed for that category, rather than using the default general list template.For example, your "product display" category can have a sidebar with a product filtering layout, while the "news information" category may only need a simple two-column layout.

To achieve this, you just need to add or edit categories in the Anqicms backend, go into the "Other Parametersproduct-list.htmlornews-list.html. The system will recognize and apply this template to render the list page of the category. Of course, these custom template files need to exist in your template design package in advance.

Further, if you want all subcategories under a certain category to follow the same layout, Anqi CMS provides a considerate option of 'Apply to Subcategories'.After checking this option, all sub-categories at all levels under this category will automatically inherit and use the category template you set, greatly simplifying the management of multi-level category templates and avoiding the trouble of repeated settings for each sub-category.

Assign a uniform template to all documents under the category

In addition to the template for the category list page, Anqi CMS also allows you to assign a dedicated document template to all documents under a specific categoryAssign a unique document template to the documents.This means that when the user clicks to enter the detail page of any document under this category, even if it is a different document, they will all use the document template you specified for this category to display.

For example, you can set a unified product detail template for all products under the 'Product Details' category, including product parameters, image sliders, customer reviews, and other modules. The 'Article Details' category uses another template more suitable for reading, possibly focusing on text layout, author information, and related recommendations. This setting is also located in the 'Other Parameters' page of the category editing, where you just need to fill in the corresponding template filename, such asproduct-detail.htmlorarticle-detail.html.

Setting independent template for a single document

It is worth mentioning that in addition to setting document templates at the classification level, AnQi CMS inSingle documentThe editing interface also provides an independent 'Document Template' option.This means that you can specify a completely independent dedicated template for a particularly important document (such as a company's annual report, a time-limited event page, or a special case study), without being restricted by the template category it belongs to.This flexibility allows content managers to fine-tune every content unit on the website, ensuring that key information is presented in the most eye-catching and effective way.

Actual operation and template management

These powerful template-specific features can all be found in the "Content Management" module of the Anqi CMS backend.The specific operation path is: go to 'Content Management' -> 'Document Category', select the category you want to edit, go to the editing page, and you can see the settings items of 'Category Template' and 'Document Template' in the 'Other Parameters' collapse area.For a single document, it is set in 'Content Management' -> 'Publish Document' or edit the document, the same in 'Other Parameters'.

Of course, all these custom templates must be set up in advance/templateFiles created in the directory. AnQi CMS supports organizing template files by function or model in different folders, for example{模型table}/list.htmlUsed for the default category list,{模型table}/detail.htmlUsed for default document details, while you specify in the backgrounddownload.htmlWhen, the system will go to your template directory to find this file. This flexible naming and specification method makes template creation and management orderly.

Summary

In summary, when adding a new category, AnQi CMS not only allows you to specify a dedicated category template, but also enables you to set a uniform document template for all documents under it, and even allows individual documents to have independent templates, achieving highly customized and fine-grained content display management.This is undoubtedly a tool for website operators to efficiently manage diverse content, optimize user experience, strengthen brand image, and enhance SEO effects.Through this hierarchical and highly flexible template specification mechanism, Anqi CMS can help your website stand out in the fierce market competition.


Frequently Asked Questions (FAQ)

  1. How will the system handle it if I have not specified a category template or document template for the new category?If a category is created without specifying a category template or document template, AnQi CMS will use its default template file. For example, for article categories, it will usually usearticle/list.htmlAs a category list template,article/detail.htmlAs a document detail template under the category. This default mechanism ensures that the website can display content normally even if no personalized settings are made.

  2. Will the template settings of a single document override the template settings of its category?Yes, AnQi CMS follows the logic of 'proximity principle' or 'exception priority'.If a document belongs to a category that has a specific document template set and also specifies a document template individually on its editing page, then the document will prioritize using the template it specifies.