As an experienced CMS website operation personnel of an enterprise, I am well aware of the importance of the homepage in attracting and retaining users. It is the first impression of users when they visit the website, and it is also the core hub for content layout and information delivery.For AnQi CMS, understanding the naming conventions of its template files, especially the default naming of the homepage template file, is the foundation for the smooth operation and efficient management of the website.
Anqi CMS system defaults to recognizing the homepage template file asindex.html. This file is the entry point of your current theme template, AnQiCMS will first search for and use this specifically named file when parsing and rendering the homepage.
Based on the template organization mode provided by Anqi CMS,index.htmlthe actual storage location is slightly different. In the most common flat file organization mode,index.htmlThe file will be placed directly in the root directory of your theme template, for example/template/{您的主题文件夹}/index.html. This pattern is concise and clear, directly reflecting the hierarchical relationship of the files.
And for themes organized in a folder pattern, AnQiCMS would expect to find a file namedindex/in the subdirectoryindex.htmlfile, namely/template/{您的主题文件夹}/index/index.html. No matter what organization method is used, the core idea is to provide a clear default entry file for the system.This default naming convention greatly simplifies the configuration and management process of the website, ensuring that AnQiCMS can automatically recognize and load your website homepage without any additional specified operations in the background. This means less configuration work and higher efficiency for operations personnel.
In addition to the naming of the homepage template, AnQi CMS has some basic conventions for all template files, which help maintain the consistency and maintainability of content management. All template files must use.htmlAs a file extension, and store uniformly in your theme folder/templateIn the catalog. To ensure the correct display of page content, all template files must use UTF8 encoding.Moreover, if your website needs to support independent mobile templates, the corresponding mobile files should be stored inmobile/In the subdirectory, and its internal structure is consistent with the PC template.Follow these naming and organization principles to ensure the stable and efficient operation of your security CMS website and provide a solid foundation for content creation and publishing.
Frequently Asked Questions (FAQ)
Ask: Can I use names other thanindex.htmlfor the homepage template file?Answer: Although AnQiCMS defaults to recognitionindex.htmlAs the website homepage, but the system usually provides flexible customization features. For the homepage template, it is best to follow the defaultindex.htmlName it to ensure the system can automatically load. If you need a specific page as the website homepage, it is usually possible to set it as the entrance of the website through backend settings (such as in multi-site management or page management), but the underlying template file name still tends to maintainindex.htmlThe default convention to avoid unnecessary complexity.
Question: If my website has two versions, mobile and PC, how should the homepage template file of the mobile version be named?Answer: If your website uses PC + mobile end or code adaptation mode, and needs an independent mobile end template, then the home page template file of the mobile end should also follow the same naming convention. You need to be in your theme folder under themobile/Create in the subdirectoryindex.html(ormobile/index/index.htmlThis depends on your theme organization pattern). In this way, when users access through mobile devices, the system will automatically loadmobile/The corresponding template under the directory.
Question: If I have not createdindex.htmlWhat will my website display?Answer: If your theme template is missingindex.htmlThe file, the AnQiCMS system will not be able to recognize and render the homepage of the website.This usually leads to page display errors, blank pages, or the system returning specific error messages, thereby affecting the user's access experience.Therefore, ensure that your theme template includes the correctindex.htmlThe file is crucial.