Why do I need a dedicated template?

Imagine that you might have a product launch special page, hoping to have a unique visual impact to attract users; or a specific product line that needs to focus more on image display rather than text description.Perhaps you would like to categorize an important announcement in a prominent way, while keeping other ordinary information concise.The exclusive template helps us better focus on the key points of content, enhance user experience, strengthen brand image, and even greatly benefit the improvement of conversion rates.AnQiCMS fully understands these needs and integrates them into the core design of the system.

The way of flexible template customization of AnQiCMS

Customize templates for a single article or a single page

Customizing templates for individual content is very intuitive and convenient.When you edit or publish a new article in the background "Content Managementdownload.htmlTemplates, just fill in heredownload.htmlEnglish translation: It will automatically. The system will prioritize the exclusive template you specify when rendering this article.

Custom template for a specific category

If you want all content list pages under a specific category to use a specific layout, AnQiCMS also provides a convenient setting.When editing a category in the "Content Management" "Document Categories", you will see an option called "Category Template".list-product.html),then this category list page will use this exclusive template.

It is also worth mentioning that this setting includes an option for 'Apply to Subcategories'.If you check this option, then the list page of all subcategories under this category will also automatically use the custom template you set. This undoubtedly provides great convenience for maintaining the consistency of the style of specific content modules in large websites.

Let the articles under the category also have an exclusive template.

In addition to setting a template for the category list page, AnQiCMS also allows you to specify a default detail page template for all articles under the category level.In the "Document ClassificationThe template file name entered here will be used as the default detail page template for all articles under this category.This ensures that all articles in a specific category have a unified style on their detail pages without the need to set each article individually, greatly improving management efficiency.

Placement and naming conventions for template files

Where should these custom template files be placed and how should they be named? The template files of AnQiCMS are uniformly stored in the system's/templatedirectory, and named with.htmlas a suffix.Each independent template usually has its own subdirectory.When you specify a custom template name in the background, just make sure that the file exists in the currently enabled template directory.

For example, if the current theme directory you are using isdefault, then your custom template file may be located at/template/default/article/download.html. In the background "Document Template" field, you just need to fill inarticle/download.html.

Additionally, AnQiCMS supports some default naming conventions, such as:

  • Default custom template for document details:{模型table}/{文档id}.html(For example}]}article/123.html)
  • The document list defaults to a custom template:{模型table}/list-{分类id}.html(For example}]}article/list-45.html)
  • Single page default custom template:page/{单页面id}.html(For example}]}page/6.html)

This means that even without manual settings through the backend, as long as your template files follow these conventions, the system can automatically recognize and apply them, further simplifying management.

Summary

In summary, AnQiCMS provides meticulous consideration and strong support for customizing content display templates. Whether it is for a single article, an entire category, or all articles under a category, you can find the corresponding settings.