Manage and display single-page content in Anqi CMS: from creation to optimization

Most websites cannot do without static pages such as "About Us", "Contact Information", and "Privacy Policy".These pages may have fixed content, but they are important windows for users to understand the website and build trust, and they are also key factors for search engines to evaluate the professionalism of the website.AnQi CMS fully understands the importance of these pages and provides a set of intuitive and powerful tools for you to easily manage and beautifully display these single-page content.

Easily create and manage your single page

It is very direct to create and manage single pages in AnQi CMS.You just need to log in to the backend, navigate to the "Page Resources" on the left menu, and then select "Page Management."}This will clearly list all the single page content created on your website.

If you want to create a new page, just click the 'Add Single Page' button. In the form that appears, you can configure the key information for the page:

  • Page NameThis is the title that you will display to users on the front end.
  • Single page contentThis is the core of the page, Anqicms is built-in with a rich-featured editor that allows you to easily format text, insert images, create tables, and more like using Word.Even better, it also supports Markdown formatting, and if you are accustomed to this concise writing style, the system will automatically render it into beautiful HTML content.
  • Custom URL: The system will intelligently generate a search engine-friendly pinyin URL alias based on the page name you enter for your website SEO.Of course, you can also manually adjust according to your actual needs, but please ensure its uniqueness throughout the site to avoid link conflicts.
  • SEO title, keywords, single page summaryThese fields are specifically designed for search engine optimization. Spending some time carefully filling them in can effectively improve the visibility and ranking of your single-page search results.
  • Display orderIf you have multiple single pages that need to be displayed in a specific list (such as footer navigation), you can control their arrangement by adjusting the display order numbers, with smaller numbers appearing earlier.
  • Visual elements: If your page needs some visual highlights, such as displaying a full-width image at the top, you can upload a "Banner image"; or set a "thumbnail" for display in lists or sharing.

Flexible and diverse single-page content display

Anqi CMS provides high flexibility in displaying single pages.

By default, Anqi CMS will look for the current theme directory under.page/detail.htmlA template to display all the content of a single page. This unified template helps maintain the overall design style and consistency of the website.

However, if you want to design a completely unique layout and style for a specific single-page (such as “About Us” or “Contact Us”), AanQi CMS fully supports it. You just need to create a template file named with the single-page ID or a custom name under the current theme directory, such aspage/about_us.html. Then, while editing the 'About Us' single page in the background, find the 'Single Page Template' field and enterabout_us.html. So when the page is accessed, it will prioritize loading and using your customized exclusive template instead of the default one.page/detail.html.

In the template file, calling the content of a single page is also simple and intuitive. You can use{% pageDetail %}tags to obtain the details of a single page. For example:

  • To display the page title, you can use{% pageDetail with name="Title" %}.
  • To display the main content of the page, you can use{% pageDetail with name="Content" %}{{pageContent|safe}}. Please note that if the page content contains HTML code, it must be added.|safeFilter to ensure that HTML code is correctly parsed and displayed by the browser, rather than being escaped as plain text.
  • Other like page linksLink, Large imageLogo、ThumbnailThumb, Group imageImagesFields can also be easily called in a similar manner.

In addition, there may be times when you need to list all or part of the links to single pages in the footer, sidebar, or other public areas of a website (such as "Privacy Policy", "Terms of Service"). At this point,{% pageList pages %}Tags are particularly useful. By using a simpleforloop, you can iterate over all single pages, easily generate and display these navigation links, allowing users to quickly access important information.

Further enhance the user experience and SEO of a single page

AnQi CMS not only makes the management of single-page simple, but also provides many practical functions for optimizing user experience and search engine performance:

  • Static rules: With your custom URL, you can set up static rules under "Function Management" for single-page