How to create and display single-page content such as “About Us” and “Contact Us”?

Calendar 78

In website operation, content such as 'About Us' and 'Contact Us' is a window to display 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 a service entrance.AnQiCMS provides very convenient and powerful functions for managing and displaying these single-page applications, allowing you to easily create and customize them.

Part 1: Create your single-page content

Creating a single page in AnQiCMS is an intuitive and efficient process.You just need to enter the background management interface, find the "Page Resources" option under "Page Management" in the left menu.Click the 'Add Single Page' button to start creating your exclusive content.

First, you need to fill in the basic information on a single page. "Page Name" is the title displayed to visitors on the front end, it should be clear and concise.To optimize search engine performance, you can set a 'SEO title' specifically, which will display on the page.<title>Tag within. At the same time, filling in relevant 'keywords' and a concise 'single-page introduction' will help 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, supporting mixed text and image layout, video embedding and other content forms, 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, the smaller the number, the closer it is to the front.

To enhance the visual effects of the page, you can also upload the "Banner image" and "thumbnail".The banner image can add visual impact to the top of the page, while the thumbnail may be displayed in the navigation list or sharing, making the page more attractive.

The second part: Flexible display and custom template

The created single page content, AnQiCMS will use the current theme template you are using by default.page/detail.htmlFiles to display. But in operation, we often encounter situations where we need to design unique layouts for specific single-page pages, such as 'About Us' may need a special layout with team introductions, 'Contact Us' may need to integrate online forms or maps.AnQiCMS fully 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 name of your custom template file, for example,about.htmlorcontact.html. The system will first look for 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.pageInside the folder, for example/template/您的主题名/page/about.htmlThus, when the visitor requests this single page, AnQiCMS will load and apply the exclusive template you have carefully designed.

In these custom template files, you can use AnQiCMS to provide thepageDetailTemplate tags are 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, then use{{ pageDetail with name="Content" | safe }}(remember to add|safeA filter to ensure that HTML content is rendered correctly).You can conveniently obtain the page link, description, Banner image, and thumbnail information, and flexibly layout according to your own design.This way greatly enhances the flexibility and customizability of single-page display.

The third part: Optimization and Efficient Management

After successfully creating and displaying a single page, further optimization and management can enhance its effectiveness.

In SEO, in addition to the previously mentioned 'SEO title', 'keywords', and 'single-page summary', using 'custom URL' to create descriptive and short URLs is very beneficial for search engine friendliness.At the same time, the built-in static rule feature of AnQiCMS can help you present these custom URLs better in search engines.

On website structure and user experience, do not forget to add the single-page links you have created through the 'website navigation settings' feature, to the top menu, footer, or sidebar navigation of the website, ensuring that visitors can easily and quickly find these important pages.

The AnQiCMS 'Page Management' module, combined with its powerful template tag system, allows you to create, manage, and optimize your single page with ease, regardless of the content display requirements, thus providing visitors to the website with better and more accurate information services.

Frequently Asked Questions (FAQ)

1. What is the difference between a single page and an article/product? How should I choose?A single page is typically used to carry independent content that is not frequently updated and does not belong to a specific category, such as 'About Us', 'Contact Us', 'Privacy Policy', and so on.And articles and products belong to the content model, which need to be classified into specific categories, have a high frequency of content updates, and are often used in list displays.When choosing, if the content is fixed and independent, it tends to use a single page;If the content is time-sensitive, needs to be categorized, or needs to be listed, the article or product model should be selected.

2. Why did I specify a custom template for the single page, but it shows an error or a blank page when accessing the page?This is usually due to an incorrect template file path or name. Please check the template name you entered in the 'Single Page Template' field in the background, whether it matches the actual file (such asabout.html)完全一致,including the case. Make sure that the file is indeed located in the current theme template directory.pageInside 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" single page, does AnQiCMS support that?Yes, AnQiCMS fully supports. You can use it in the customized "Contact Us" single page template by,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 just need to call it as needed in the templateguestbookTag, you can build a fully functional comment form, convenient for users to interact with you.

Related articles

How to display the top-level category list of a specific content model on the homepage or sidebar?

In AnQi CMS, managing website content, we sometimes need to clearly display the top-level category list of a specific content model at key positions such as the homepage or sidebar.This not only effectively guides visitors to browse the website content and improve user experience, but is also an important aspect of website content architecture optimization and search engine friendliness.Using AnQiCMS's flexible template system and powerful tag features, it is direct and efficient to meet this requirement. ### Understanding the Core: Content Model and Classification The core of content management in Anqi CMS lies in the "content model".You can create different content models based on business requirements

2025-11-08

How can I build and display a multi-level nested category navigation menu?

Building and displaying multi-level nested category navigation menus in Anqi CMS is an important aspect of website content organization and user experience optimization.A well-designed, hierarchical navigation not only helps visitors quickly find the information they need, but also provides clear website structure signals to search engines, thereby improving SEO effectiveness. AnQi CMS is an enterprise-level content management system developed in Go language, with flexible content models and powerful template tags, making it very intuitive and efficient to implement multi-level classification navigation.Next, we will explore how to step by step build such navigation

2025-11-08

How to display the 'Previous' and 'Next' article links and titles on the article detail page?

It is crucial to enhance user experience and content discoverability in website operation.When a reader is immersed in an article, providing navigation links to the "previous article" and "next article" can not only guide them to continue browsing the website's content but also effectively reduce the bounce rate and optimize the on-site SEO structure.For those of us using the AnQiCMS website to manage, implementing this feature is both simple and efficient.AnQiCMS provides a straightforward and powerful template tag system, making it easy to integrate 'Previous Article' and 'Next Article' links on article detail pages

2025-11-08

How to call and display the custom fields of an article on the article detail page?

In Anqi CMS, the content display of the article detail page is highly flexible, especially for fields customized through the content model.These custom fields can help us manage and display different types of information more precisely, such as product prices, authors' origins, and property layouts, etc.How can you accurately call and display the content of these custom fields on the article detail page?This article will introduce this process in detail. ### 1. Custom field creation and filling: laying the content foundation In AnQi CMS

2025-11-08

How to display all used Tag tags on the website or only display Tag tags related to the current article in AnQiCMS?

When building website content, tags play an important role. They can not only help you better organize information and improve the discoverability of content, but also optimize the user experience, making it easier for visitors to find the content they are interested in.For a content management system, flexibly displaying and managing these tags is one of its core values.AnQiCMS provides powerful functions in this aspect, allowing you to easily control the display of tags on your website according to your actual needs.### Add and manage Tag tags On AnQiCMS backend

2025-11-08

How to display a list of all related articles under a specific Tag tag?

In Anqi CMS, tags (Tag) are an important tool for organizing content, enhancing user experience, and optimizing search engine performance.It can link articles from different categories but with related themes, making it easier for visitors to find content they are interested in.When you need to display a list of all associated articles under a specific Tag label, AnQi CMS provides a concise and powerful template tag to help you achieve this goal.### Understanding the Core: `tagDataList` tag To display the article list under a specific Tag, we mainly use the built-in functions of Anqi CMS.

2025-11-08

How can I optimize the URL structure of the AnQiCMS website to improve search engine friendliness?

During the operation of a website, a good URL structure, like a clear map, can not only help users intuitively understand the content of the page, but also guide search engines to more efficiently crawl and understand your website.AnQiCMS was designed with SEO needs in mind from the beginning, built-in powerful URL management functions, allowing us to easily create a search engine-friendly website structure.Understanding why search engine friendly URLs are important Before delving into the specific features of AnQiCMS, let's talk briefly about it

2025-11-08

Can I customize the URL paths for articles, categories, and single pages, and how do I do it?

In website operation, a clear and meaningful URL path not only enhances user experience but is also one of the key factors in search engine optimization (SEO).AnqiCMS as an efficient content management system fully considers this need and provides the function of flexible customization of articles, categories, and single-page URL paths.How does AnqiCMS support custom URL?AnqiCMS has built-in powerful pseudo-static functions, which allows your website pages to be dynamically generated even if their content is dynamic

2025-11-08