How to utilize the multi-site feature of Anqi CMS to achieve unified or differentiated display of content between different sites?

Calendar 👁️ 66

The multi-site feature of AnQi CMS is an extremely powerful feature that provides unprecedented flexibility for website operators, whether managing multiple independent brand websites or building a content-sharing matrix, they can handle it with ease.The core of this feature lies in its ability to allow you to efficiently manage and display multiple independently operated websites under a single secure CMS system, and巧妙ly balance content differentiation and unity.

Understanding the multi-site capabilities of AnQiCMS

Firstly, we need to clarify the operation mode of the Anqi CMS multi-site function.It does not refer to installing multiple CMS programs on the server repeatedly, but rather to carrying and managing multiple logically independent websites through a single system.This means that you only need to maintain a single backend to perform content publishing, user management, template switching, and other operations for all associated sites, which greatly reduces repetitive work and improves operational efficiency.

To enable and manage multiple sites, you usually need to complete the following steps:

  1. Domain and reverse proxy configuration:Each site needs an independent domain name. At the server level, you will route different domain name requests to the same running port of the Anqi CMS using a reverse proxy (such as Nginx or Apache).For example, using Baota panel involves adding a reverse proxy site for each domain in the panel, forwarding requests to the listening port of Anqi CMS (usually port 8001).
  2. Add a new site in the Anqi CMS backend:After completing the server configuration, you can enter the "Multi-site Management" feature in the Anqi CMS backend of the default site. Here, you can configure the detailed settings for each new site, including:
    • Site name and website address:Define the basic information of the site.
    • Site root directory:This is a key setting, each new site needs an independent root directory (such as/app/dev_anqicms.com), used to store the cache, specific files, etc., of the site to ensure data isolation.
    • Admin account password:Set independent backend management credentials for each site to achieve permission separation.
    • Database name:Assign a separate database to each site to ensure complete data isolation for the site and avoid interference.The Anqi CMS usually supports reusing database connection information, but creating different database names is the key to achieving data isolation.
    • Select the template to use:Specify a set of default templates for the new site.

With these configurations, each newly added site has the independent operating foundation, laying a foundation for the differentiated and unified display of subsequent content.

Achieve differentiated content display

When you have multiple independent brands or websites aimed at different target audiences, content differentiation is a core requirement. The multi-site function of Anqi CMS makes this very simple and intuitive:

  • Independent template system:Each site can specify a completely independent template. This means that you can design completely different visual styles, user experiences, and layout structures for different sites.In the template file, throughconfig.jsonYou can define the type of template (such as adaptive, code adaptation, or PC + mobile independent mode) to meet various display needs.You can even customize exclusive templates for specific categories, articles, or single pages to make content display more refined.
  • Independent content management:In multi-site mode, each site's content is completely independent.You can post articles, products, and pages for site A, set its unique categories and tags, and this content will not automatically appear on site B.This includes:
    • Independent content model:Different sites can have their own content models, for example, one site focuses on "articles", while another focuses on "product display", and their field structures and publishing processes can be different.
    • An independent classification and labeling system:Each site can create its own unique classification tree and tag cloud based on its own content characteristics, ensuring the clarity of content organization logic.
    • Independent single-page management:“About Us”, “Contact Information”, etc., single-page content does not affect each other across sites.
  • Independent site configuration:Such as website name, Logo, filing number, contact information, home page TDK (title, keywords, description) and global settings, as well as navigation menu, static rules, SEO tool configuration, etc., can be independently configured for each site.This enables each site to have its own brand identity and optimize its own SEO strategy.For example, the contact number of site A may refer to the South China region customer service, while site B refers to the East China region customer service.

Achieve unified or shared content display.

Although multiple sites emphasize differentiation, in actual operation, in many scenarios, it is necessary to display certain content uniformly or share data between sites. Anqi CMS provides a clever mechanism to achieve this goal, with the core being the data tags insiteIdParameter.

Almost all template tags used to retrieve data (such asarchiveList/archiveDetail/categoryList/categoryDetail/pageList/pageDetailevensystem/contact/tdksuch assiteIdparameters. By specifying data from other sitessiteId, you can easily pull and display the data from that site:

  • Share common brand information:Assuming you have a main brand site (Site A) and multiple sub-brand sites (Site B, C). You can access them through{% system with name="SiteLogo" siteId="主品牌站点ID" %}Unify the main brand's logo call or display the main brand's filing number in the footer.
  • Unified display of contact information:If all child sites use the same headquarters phone number or email, you can use it through the templates of each child site,{% contact with name="Cellphone" siteId="总部站点ID" %}Make sure the displayed information is always consistent, and you only need to modify it in one place once the headquarters information changes.
  • Cross-site content reference:
    • News announcement sharing:You may want all sites to display the latest news announcements of the company. Just post these news on a specific site (such as the "News Center" site), and then on the homepage or sidebar of other sites,

Related articles

How can you implement a unique display style for content under a specific category in AnQi CMS?

In website operation, we often encounter such needs: a particular content category needs a unique display style to highlight the importance, uniqueness, or brand character of its content.For example, your 'news center' may require a concise list layout, while 'selected cases' may require a more visually striking grid layout or slideshow display.AnQiCMS provides powerful template customization capabilities, making it intuitive and efficient to achieve this goal.Why do you need to customize the display style for a specific category?A unified website style is indeed important

2025-11-08

What ways does AnQi CMS support to individually present the detailed content of a single document?

When using AnQi CMS to manage website content, if you want each document's detailed content to be presented in a unique and eye-catching way, the system provides very flexible customization settings.This is not just about changing the text color or font size, but also about deep customization from content structure to display form.Firstly, the foundation of personalized display lies in **content model and custom fields**.Our AnQi CMS allows us to create different content models based on actual business needs, such as 'articles', 'products', 'news', and even 'cases'.

2025-11-08

How can I design a dedicated display template for the article list in AnQi CMS?

In AnQi CMS, designing a dedicated display template for the article list is a key step to creating a unique website style and optimizing the user experience.AnQi CMS provides us with a great degree of freedom with its flexible content model and powerful template engine (similar to Django syntax), allowing us to present diverse article lists based on different content types, marketing objectives, or user needs.The website's article list page is like a showcase of content, how to arrange and highlight the key points directly affects visitors' browsing interest and conversion effect.A well-designed list template

2025-11-08

How to customize the content display layout of the Anqi CMS homepage?

Your website's homepage is the first impression for visitors, as well as the showcase of the brand image and core content.How to make this "facade" both aesthetically pleasing and efficient in conveying information is a concern for every website operator.AnQiCMS (AnQiCMS) as a content management system that focuses on customization and flexibility, provides us with a very convenient way to freely create a dedicated homepage layout.

2025-11-08

How to count the frequency of a keyword in a string in the AnQiCMS template?

In content operation, we often need to process and analyze text.This may involve checking keyword density to optimize search engine rankings, or it may just be to understand the frequency of a specific word appearing in the content in order to better assess the focus of the content.AnQiCMS (AnQiCMS) boasts its high efficiency and customizable features, providing users with powerful content management capabilities, and its flexible template system makes it easy for us to handle various content display needs.Today, let's talk about a very practical feature: how to count the number of times a keyword appears in a string in a template

2025-11-08

How to calculate the total number of occurrences of a specific value in an array in AnQiCMS?

In website operation, we often need to handle various data, one of the common needs is to count the number of times a specific value appears in a data set.For example, you may want to know how many times a keyword appears in an article, or how many colors of a product are marked as 'hot'.For users of AnQiCMS, the system's powerful template engine provides a very convenient tool to complete this task.The AnQi CMS template engine is powerful and flexible, it comes with a variety of filters (Filters)

2025-11-08

What are the practices when using the `count` filter to calculate keyword density?

In website content operation, the reasonable use of keywords is an important factor in improving search engine visibility.We not only need to ensure that the core keywords are reflected in the content, but also need to pay attention to their frequency of occurrence, avoiding overloading or underusing.AnQiCMS provides a variety of powerful content management tools, among which the `count` filter is a very practical feature that can help us effectively count the number of occurrences of keywords in articles.###

2025-11-08

How to judge whether a line of text in the AnQiCMS template contains a certain keyword?

In website operation, we often encounter such needs: to decide how to display page elements based on whether the content contains a specific word, such as highlighting some text, or only displaying a module when certain conditions are met.The AnQiCMS template system provides flexible filter functions to help us easily implement these keyword-based judgments.This article will delve into how to efficiently and accurately determine whether a line of text in the AnQiCMS template contains a certain keyword.### Use `contain`

2025-11-08