The significance of a unified document template
Setting the category document template location
An important setting is integrated into the category management function by AnQi CMS.To specify a uniform detail template for documents under a specific category, you need to first enter the background management interface, and then navigate to the "Document Classification" page under the "Content Management" module.On this page, you can manage all the content categories of the website, including creating new categories or editing existing ones.
When you choose to edit an existing category or create a new category, you will enter the detailed settings page of the category.Here includes various configurable items such as category names, descriptions, SEO information, etc.To find the document template settings, you need to scroll down the page and find a collapsed area named "Other Parameters.This area usually contains less commonly used but still important configuration options.
Specify a unified detail template
After expanding the "Other ParametersThis is the place where you need to configure.Here, you can enter the name of the detail template file that you want all documents under this category to use.special_article_detail.htmlThe template file is specifically used to display the details of certain featured articles, then you just need to enter it herespecial_article_detail.html.
Please make sure that the template file you fill in actually exists in the template package directory you are using. The default template files of Anqi CMS are all stored in/templateThe directory, and each template package has its independent subdirectory.If the template file you entered does not exist, the documents under this category will not display normally when accessed, causing page errors.Therefore, it is crucial to confirm the path and naming of the template file before specifying the template.
Enter and save your category settings after completing the template name input.From this moment on, all new documents published to this category, as well as all existing documents under this category, will automatically adopt the detail template you specify for display.This centralized management method not only ensures the standardization of category content display, but also provides great convenience for future template updates and maintenance.
Flexible use and precautions
Properly plan and name your template files, which will help you manage your website more efficiently.For example, you can create basic detail templates for different models (such as articles, products), and then fine-tune or fully customize them for specific categories.Through this method, the category document template function of Anqi CMS has become an indispensable tool in website content operation. It perfectly combines standardization, efficiency, and flexibility, helping your website achieve better operational results.
Common Questions and Answers (FAQ)
1. If I specify a 'document template' in the category and the template file does not exist, what will happen?
2. Does the "Document Template" set in the category affect the documents in its subcategory?It will not directly affect.The "Document Template" set in the category only applies to documents under that specific category.If the child categories also need to use the same document template, you need to enter the settings page of each child category separately, and repeat this operation to specify the corresponding "document template".The 'Category Template Inheritance Option' of AnQi CMS (if enabled) is for category list pages or category home page templates, not for the detail templates of internal documents.
3. I have specified a unified document template for the categories, but one document has special requirements. Can I set a separate template for it?Can be.Auto CMS supports template hierarchy coverage.You can find the "Document Template" option in the "Other Parameters" area when editing a single document.Specify a template file for this document individually, this setting will take precedence over the document template specified in the category, ensuring that the specific document is displayed according to your special requirements.