In website operation, single-page content such as 'About Us' and 'Contact Us' is a window to showcase the corporate image, core values, or provide key information to visitors.They usually carry stable, independent and infrequently updated content, which is crucial for building trust and providing access to services.AnQiCMS provides very convenient and powerful features for managing and displaying these single pages, allowing you to easily create and flexibly customize them.
Part 1: Create Your Single-Page Content
In AnQiCMS, creating a single page is an intuitive and efficient process.You just need to enter the background management interface, find the "Page Management" option under "Page Resources" in the left menu.Click the 'Add Single Page' button to start creating your exclusive content.
Firstly, you need to fill in the basic information on the single page.“Page Name” is the title displayed to the visitor on the front end, and it should be clear and understandable.<title>Label in.At the same time, filling in the relevant 'keywords' and a concise 'single-page introduction' helps search engines better understand the content of your page.If these fields are left blank, the system will also intelligently extract information from the page content.
The core of a single-page is its "single-page content", AnQiCMS provides a richly featured editor that supports various content formats such as mixed text and images, video embedding, and more, allowing you to create attractive pages.Moreover, the "Custom URL" feature allows you to set a concise, meaningful, and SEO-friendly URL alias for the page.The system will automatically generate a pinyin alias based on the page name, but you can manually modify it as needed to ensure its uniqueness across the entire site.If you have multiple single pages that need sorting, you can adjust the 'Display Order' value, with smaller numbers appearing earlier.
To enhance the visual effect of the page, you can also upload "Banner image" and "thumbnail".Banner images can add visual impact to the top of the page, while thumbnails may be displayed in navigation lists or sharing, making the page more attractive.
Part Two: Flexible Display and Custom Templates
The content of the single page created, AnQiCMS will use the template in your current theme by default.page/detail.htmlThe file is displayed.But during operation, we often encounter situations where we need to design unique layouts for specific single-page webpages, such as the 'About Us' page may require a special layout with team introductions, and the 'Contact Us' page may need to integrate online forms or maps.AnQiCMS deeply understands this need and provides powerful custom template functions.
When editing a single page, you can find a field named "Single Page Template". Here, you can enter the custom filename of your template, for example,about.htmlorcontact.htmlThe system will prioritize and use this specified file to render the current page. Please make sure that these custom template files are stored in the current theme template directory.pageIn the folder, for example/template/您的主题名/page/about.htmlSo when visitors request this single page, AnQiCMS will load and apply the exclusive template you have meticulously designed.
In these custom template files, you can use the AnQiCMS providedpageDetailThe template tag is used to dynamically retrieve various data on a single page. For example, to display the page title, you can use{{ pageDetail with name="Title" }}; To get the page content, use{{ pageDetail with name="Content" | safe }}(Remember to add|safeFilter to ensure correct rendering of HTML content).You can conveniently obtain the link, description, Banner image, and thumbnail information of the page, and flexibly layout according to your design.This way greatly enhances the flexibility and customizability of single-page display.
Part Three: Optimization and Efficient Management
After creating and displaying the single-page, further optimization and management can enhance its effectiveness.
In SEO, in addition to the "SEO titleAt the same time, the built-in URL rewriting rule function of AnQiCMS can help you present these custom URLs better in search engines.
On website structure and user experience, don't forget to add the single-page links you have created to the top menu, footer, or sidebar navigation through the 'Website Navigation Settings' feature in the backend, to ensure visitors can easily and quickly find these important pages.
AnQiCMS's “Page Management” module, with its powerful template tag system, enables you to create, manage, and optimize your single page with ease, no matter what content display needs you have, thereby providing website visitors with better and more precise information services.
Common Questions (FAQ)
1. What is the difference between a single-page and an article/product? How should I choose?Single-page websites are typically used to host independent, infrequently updated content that does not belong to any specific category, such as "About UsThe article and product belong to the content model, which needs to be classified into specific categories, has a high frequency of content updates, and is often used for list display.Select a single page if the content is fixed and independent; if the content has a time sensitivity, requires categorization and management, or needs to be listed, then choose an article or product model.
2. Why did I specify a custom template for the single-page, but the page shows an error or blank when accessed?This is usually due to an incorrect template file path or name. Please check whether the template name you entered in the "Single Page Template" field in the background matches the actual file (such asabout.html)completely identical, including case sensitivity. Also, ensure that the file is indeed located in the current theme template directory.pageIn the folder, for example/template/您的主题名/page/about.htmlIf the file does not exist or the path is incorrect, the system will not be able to find and render your custom template.
3. I want to add an online message form on the "Contact Us" page, does AnQiCMS support it?Yes, AnQiCMS fully supports it. You can use it by adding it to the custom "Contact Us" page template.guestbookThe template tag integrates an online message form. This tag can dynamically generate the message fields configured in the background and provide a form submission interface. You only need to call it as needed in the template.guestbookLabel it, and you can build a fully functional comment form, convenient for users to interact with you.