How to implement multi-site content unified display and management in Anqi CMS?

Calendar 👁️ 62

In the age of increasingly important digital marketing and brand building, many companies or individuals often need to manage multiple websites, whether it is different brands, product lines, or multilingual, regional sites.Faced with the need for multi-site content management, AnQiCMS (AnQiCMS) provides a graceful and efficient solution that helps us easily achieve unified display and management of content.

The core concept of multi-site management in Anqi CMS

The design philosophy of AnQi CMS is one of 'a system to manage all'.This means you do not need to install a separate CMS for each site, but can create and manage multiple independent sites in a single secure CMS instance.This model brings significant efficiency improvement: You can manage the publishing content, user permissions, template settings, and even SEO strategies of all sites under a unified backend interface.This not only greatly reduces repetitive work and operating costs, but also facilitates cross-site data sharing and resource integration, ensuring consistency in brand image and content publishing.

Build a multi-site environment: from zero to one practice

To implement multi-site management in Anqi CMS, you first need to set up the environment and create sites. This process is simpler than you imagine.

  1. PreparationFirst, make sure that all your domain names are correctly resolved to your server IP address.Whether it is the main site domain or the sub-domain to be added in the future, DNS configuration needs to be done in advance.

  2. Create a new siteLog in to your main AnQi CMS backend. Find and click the "Multi-site Management" feature in the left navigation menu.Here, you will see a button to add a new site.Click it, the system will guide you to fill in the basic information of the new site:

    • Site nameThis is the name of the site you identify in the background, you can name it according to the actual business scenario.
    • Site root directoryThis is a very critical step. Anqi CMS will create an independent directory for each site to store cache and other data. If you are using Docker deployment, it usually starts with/app/For example,/app/dev_anqicms_comMake sure this directory name is unique.
    • website address: Enter the complete URL of the new site, for examplehttp://dev.anqicms.com.
    • Administrator account password: Set up independent backend administration account and password for new site.
    • Database nameEach site will use an independent database to store its content data. Enter a database name that is not already in use, for exampledev_anqicms_com.
    • Duplicate database informationIf you are installing AnQi CMS in a Docker environment and want to reuse the database connection information of the main site, you can usually choose to 'reuse the default database account information' to avoid the trouble of repeated filling in.
    • Select the template to use: You can select a set of templates uploaded to the system for your new site, and you can also change them later.
  3. Configure reverse proxyAfter creating the new site, you still need to configure it on the server side, directing different domains to your Anqin CMS service.This is usually implemented through the reverse proxy function of web servers such as Nginx, Apache, etc.The core idea is that regardless of how many site domain names you have, they will all be routed through a reverse proxy to the same port that the AnQi CMS service is listening on (for example, the default port 8001). When accessingdev.anqicms.comAt that time, the reverse proxy will forward the request to the Anqi CMS port 8001, and according to the domain name of the request, the Anqi CMS internally identifies that this isdev.anqicms.comSite, thus displaying its corresponding content. If you use Baota panel or 1Panel and other management tools, configuring reverse proxy will be very intuitive, just specify the domain and the listening address of AnQi CMS (for examplehttps://en.anqicms.com)to do so.

Implement unified content display: cross-site call intelligence

After setting up a multi-site environment, how can you display content flexibly between different sites to achieve 'unified display'? This is exactly where AnQi CMS is powerful.

  1. Content Model: The foundation of unified content structureAnQi CMS provides flexible content model functionality. You can also define the same or similar content models for different sites (such as article models, product models).This uniformity in structure is the foundation for cross-site content display.When all the content of the sites follows a similar structure, the unified display and data call will become easier in the future.

  2. siteIdThe magic of parametersThe template tags of AnQi CMS are the core of unified content display. In almost all content call tags (such asarchiveListDocument list,categoryListCategory list,navListIn the navigation list, etc., it provides a name calledsiteIdThe parameter. This means that if you want to display the content of site B on site A, you simply need to use the corresponding tag in the template code of site A, and passsiteIdSpecify the ID of the B site. For example, if you want to display the latest product list of a child site on the homepage of the main site, you can use similar code in the main site template:{% archiveList products with moduleId="2" siteId="子站ID" limit="5" %}In this way, you can easily display the content of any site managed under any safe CMS instance on other sites, achieving the true unified display of content.

  3. Multilingual support and template reuseIf your multilingual site requirements involve multiple languages, the multilingual support feature of AnQi CMS will be very useful. You can configure independent language packages for different language sites and utilizesiteIdParameters load the corresponding language content in the template. At the same time, as different sites can share templates or make fine adjustments based on the same set of templates, it can greatly enhance the efficiency of template development and maintenance.

  4. Unified navigation and system settingsIn addition to content, you can also flexibly control navigation and other system settings. Each site has independent navigation management, but if you want to unify some navigation, you can also specify it in the template.siteIdCall navigation data for a specific site. Similarly, contact information, TDK, and other system-level settings can also be managed uniformly or differently according to the site ID.

The advantages and efficiency of managing multiple sites

Adopting the multi-site content display and management solution of Anqi CMS, you will experience unprecedented operational efficiency. It not only simplifies the cumbersome deployment and maintenance work, but also throughsiteIdParameters, have given the content a high degree of flexibility. This makes it possible to build complex cross-site content ecosystems, whether it is in SEO optimization, brand collaboration promotion, or the consistency of user experience, can achieve significant improvement.

Frequently Asked Questions (FAQ)

  1. Ask: Can I use different templates for different sites in a safe CMS? Answer:Of course you can. When creating a new site, you can choose a specific set of templates.Even after that, you can independently replace and configure different templates in the background of each site to achieve differentiated appearance and layout.

  2. Ask: Can I directly 'copy' the content I posted on one site to another?**Ans

Related articles

Can the `add` filter directly add two numeric strings (such as "123" and "456") to get the numeric result 779?

AnQi CMS is a high-efficiency and feature-rich enterprise-level content management system, whose template engine provides flexible data processing capabilities.During template development, making good use of various filters can help us accurately control the display format of content.Today, we will delve into a common filter——`add`, especially its specific performance in handling numeric strings, which is often a place where users are likely to have doubts.

2025-11-07

How to use the `add` filter to dynamically add username and timestamp to the `commentList` comments?

AnQiCMS (AnQiCMS) with its flexible and powerful template engine, enables the presentation of website content to have a high degree of freedom.In website operation, the comment section is an important place for user interaction. Clearly displaying the information of the commenters can effectively enhance the reading experience and interaction atmosphere of the comment content.This article will introduce you in detail on how to use the `add` filter to dynamically add user nickname and timestamp to comments in `commentList`. ### Flexibly display comment data: Starting from `commentList` At

2025-11-07

How to implement the dynamic combination output of the `add` filter in the custom `diy` tag?

In AnQi CMS, content operation not only seeks accurate transmission of information, but also flexibility and automation of expression.We often encounter such needs: we hope to combine some independent content preset by the background with dynamic data on the page or fixed text in a clever way, forming a complete and creative expression.Today, let's delve deep into how the `add` filter and custom `diy` tags work together in Anqi CMS to help us achieve this dynamic combination of content output.### `diy` label: your content treasure box first

2025-11-07

How to use the `add` filter to dynamically add navigation arrow symbols to the titles of `nextArchive` or `prevArchive`?

In website content operation, the subtle aspects of user experience often determine the overall effect.For the article detail page, if the "Previous" and "Next" navigation at the bottom of the page can be designed more intuitively, it will undoubtedly greatly improve the user's browsing efficiency and comfort level.This article will discuss how to utilize the powerful template function of Anqi CMS, especially the `add` filter, to dynamically add arrow symbols to these navigation titles, making them clear at a glance.Understand the requirement: Why to dynamically add navigation arrows?Imagine when the user has finished reading an excellent article

2025-11-07

How to utilize a flexible content model to customize the display of different types of content?

When using AnQiCMS to manage website content, we will quickly find that its 'flexible content model' feature is a core tool for content operation.It is not like traditional CMS, which confines all content to fixed 'article' or 'page' frameworks.AnQiCMS gives us the ability to define content structure, allowing us to customize the display of various types of information according to actual business needs, thereby making the website content more accurate and more attractive.

2025-11-07

How to ensure that the website correctly switches and displays content in a multilingual environment?

Expand the global market, a multilingual website is indispensable.It can help you reach users from different cultural backgrounds and language habits directly.In AnQiCMS (AnQiCMS), ensure that the website switches and displays content correctly in a multilingual environment, mainly relying on its powerful multi-site management and flexible template mechanism. Next, we will explore how to achieve this goal in Anqin CMS, allowing your website to display smoothly on the global stage.

2025-11-07

How can static URLs and 301 redirects optimize the display URL structure of website content?

The importance of URL structure in website operation is self-evident.A clear and friendly URL can not only enhance the user experience, but is also an indispensable part of Search Engine Optimization (SEO).A long dynamic parameter URL, for example `www.example.com/article.php?id=123&category=news, it is hard to remember and not conducive to search engines understanding the page content.

2025-11-07

How can AnQi CMS improve the visibility of a website in search engines through advanced SEO tools?

In today's highly competitive online environment, whether a website can stand out in search engines is directly related to the dissemination effect and commercial value of its content.Search engine optimization (SEO) is no longer just a cherry on top, but the cornerstone of website operation.It is crucial for many small and medium-sized enterprises and content operation teams to choose a content management system (CMS) that deeply supports SEO.

2025-11-07