In website operation, we all hope that every page can perfectly present its unique content and brand image.For a single page like "About Us" or "Contact Information" that carries corporate culture, core values, or important service information, having a dedicated display style can undoubtedly greatly enhance the page's appeal and user experience.

So, can we design exclusive display styles for these single-page designs in AnQiCMS (AnQiCMS)?The answer is affirmative, and it is more flexible and convenient than you imagine.AnQi CMS deeply understands the personalized needs of content display, providing highly customized possibilities for single-page through its powerful template system.

Dedicated template: Make the single page stand out

The AnqiCMS template mechanism allows you to specify different display templates for different types of content. For a single page, it defaults to using a set of general templates (such as those in the template folder under thepage/detail.htmlWhen you want a single page, such as "About Us", to have a unique design, you can create a dedicated template file for it and easily specify its use in the background.

This exclusive template file can contain completely independent HTML structure, CSS styles, even specific JavaScript interactions, allowing the "About Us" page to break free from the constraints of common frameworks and show stronger brand personality and information tension.

How to design exclusive display styles for a single page?

To achieve this goal, it mainly involves the following steps:

  1. Create a dedicated template fileFirstly, you need to find or create a folder named under the current template theme folder (for exampletemplate/您的主题名称/)page. In thispageinside the directory, where you can create a new HTML file, for example namedabout.htmlThis will become the exclusive template for your "About Us" page. The reason for recommending that you...pageThe directory is created because Anqi CMS defaults to looking for the specified file name in this directory when handling single-page templates, which makes the template structure clearer.

  2. write the template contentInabout.htmlIn the file, you can freely write the HTML of the page, introduce custom CSS styles and JavaScript code.This is the stage where you can unleash your creativity and achieve unique designs. For example, you can design a layout that includes team photos, a timeline of the company's development history, or display contact information in an interactive map. In the template, you can retrieve the content of the current single page using the template tags provided by Anqicms.For example, to get the page title, you can use{% pageDetail with name="Title" %}; To get the main content of the page, use{% pageDetail with name="Content"|safe %}. This way, the text, images, and other content you edit in the background "page management" can be dynamically displayed in the exclusive style you design.At the same time, you can also call, such as system settings tags ({% system with name="SiteName" %}) or contact information tags ({% contact with name="Cellphone" %}) etc. to display the global information of the website uniformly

  3. Apply a dedicated template in the backgroundAfter the template file is created and written, the next step is to inform the Anqi CMS to use this exclusive template for the "About Us" page.You need to log in to the Anqi CMS backend, go to "Page Resources" under "Page Management". Here, find and edit your "About Us" page.In the form on the editing page, there will be an option named "Single Page Template".In this input box, just enter the name of the template you just created, for exampleabout.htmlAfter saving the settings, your "About Us" page will automatically load and apply the meticulously designedabout.htmlexclusive template.

By following these steps, you can not only give unique visual experiences to single pages like "About Us", but also ensure that content management is still unified in the Anqi CMS backend, greatly improving the efficiency and flexibility of content operation.This design freedom is an important embodiment of Anq CMS providing users with personalized website solutions.


Frequently Asked Questions (FAQ)

  1. Ask: If I have specified a custom template for a single page but the front-end display is still the default style, how should I troubleshoot the problem?Answer: First, please confirm that your custom template file (such asabout.html) is correctly placed in the current theme'stemplate/您的主题名称/page/Under the directory. Next, check whether the template filename you entered in the "Single Page Template" input box when editing the single page in the background "Page Management" is completely correct (including case, for exampleabout.htmlinstead ofAbout.html)。Finally, try to clear the system cache of AnQi CMS to ensure that the system loads the latest template configuration.

  2. Question: Can I share the same custom template with multiple single pages?Of course you can. If you have multiple single pages, such as "Corporate Culture" and "Social Responsibility", and you want them to have a style similar but different from the default template, then you can create a universal custom template file (such asspecial_page.html),Then in each single-page editing interface that needs to use it, set the "single-page template" field tospecial_page.htmlJust do it.

  3. Ask: How can I call other content in a custom template, such as the latest article list or products in a specific category, besides the content of the single page itself?Answer: In a custom single-page template, you can fully utilize the various template tags provided by Anqi CMS. For example, you can use{% archiveList %}Tag to call the latest articles or product lists under a certain category; use{% categoryList %}to display category navigation; even through{% contact %}or{% system %}Labels to display website contact information or global settings. These labels can make your single page content richer and link with other website content.