Unified management on the backend: one system, multiple sites

One of the core strengths of AnQiCMS is that it supports multi-site management, which means you do not need to deploy a separate CMS system for each website.All sites, regardless of content type, language, or target user group, can be managed uniformly through the same AnQiCMS backend.

When you need to create a new site in AnQiCMS, the operation process is very intuitive.Enter the "Multi-site Management

  • Site Name:Easy for you to identify and differentiate different sites in the background.
  • Site Root Directory:AnQiCMS will create an independent storage space for each site, mainly used to store the site's cache, uploaded files, and other data, ensuring data isolation and no interference between sites.You can specify a unique directory name for the new site.
  • Website address:This is the domain name or URL used by users to access the new site.
  • Administrator account and password:For independent setting of background login credentials for new sites, convenient for fine-grained permission management.
  • Database nameTo ensure data independence and security, it is strongly recommended to configure an independent database for each new site.Certainly, if you want to create multiple databases under the same database service, you can choose to 'reuse default database account information', just provide the new database name.
  • Select the template to use:Specify a set of front-end display templates for new sites, giving them a unique appearance and layout.

Through such configuration, each site has independent content storage, independent administrator account, and independent frontend template, but their management entry is unified.You can switch and manage articles, products, categories, single pages, and SEO settings for different sites all within the same backend interface, greatly reducing duplicate operations and management costs.

Front-end unified display: Flexible cross-site content calling

The ingenuity of AnQiCMS lies in the fact that it not only implements unified backend management, but also provides powerful frontend content call capabilities, allowing you to easily integrate and display content across sites.This means that even if your content is distributed across multiple logical sites, you can flexibly retrieve and display content from other sites on any frontend site.

The key to realizing this function lies in the AnQiCMS template tagssiteIdParameters. Almost all tags involving content calls, such asarchiveList(Document List),categoryList(category list),pageList(Single-page list),navList(Navigation list) evensystem(System information) andcontact(Contact information) etc., all supportsiteIdParameter.

For example, suppose you have a main brand website (Site A, ID 1) and also operate a product introduction website (Site B, ID 2).Now, you wish to display the latest product list of the product website (Site B) on the homepage of the main brand website (Site A).archiveListwhen taggingsiteId="2"the parameters:

{# 在Site A的模板中,调用Site B(ID为2)的最新5个产品 #}
{% archiveList latestProducts with siteId="2" moduleId="产品模型ID" limit="5" %}
    {% for product in latestProducts %}
        <div>
            <h3><a href="{{ product.Link }}">{{ product.Title }}</a></h3>
            <p>{{ product.Description }}</p>
        </div>
    {% endfor %}
{% endarchiveList %}

Similarly, you can aggregate and display popular articles from multiple sub-sites on a portal site; or show contact information from different sub-brands at the bottom of the corporate website. By precisely specifyingsiteIdYou can break through the content boundaries and achieve true content sharing and unified display.

Moreover, AnQiCMS also provideslanguagesTags, used specifically for handling language switching and display on multilingual websites. If your multiple sites correspond to multiple language versions of the same content,languagesTags, allowing users to easily switch between different language sites while ensuringhreflangcorrect configuration of SEO elements, helping your website achieve better visibility globally.

Actual application scenarios

This multi-site unified management and display capability provides a solid foundation for a variety of complex operational needs:

  • Enterprise Group PortalEnglish: The main station serves as a brand image display, and each sub-station is responsible for the introduction of specific product lines or services. The main station can optionally aggregate and display the latest updates of each sub-station.
  • Multilingual International Website:For users in different countries or regions to provide localized content, each language version is an independent site, throughsiteIdImplement language switching between pages to enhance user experience and optimize international SEO.
  • Content aggregation and distribution:Operate an industry portal site, where different thematic or channel content is managed separately by independent 'sites', and then unifiedly displayed on the main portal page, facilitating content editing and publication while maintaining a clear structure.

In summary, the multi-site management feature of AnQiCMS makes content operation more efficient and flexible.It simplifies the complex maintenance work of multiple websites, and through powerful front-end calling capabilities, empowers you to freely arrange content between different sites, building a powerful and smooth digital asset matrix.


Common Questions (FAQ)

1. How do I know each site?siteIdWhat is it?

In AnQiCMS backend, when you enter the "Multi-site Management" page, you will see a list of all the sites you have created. Typically, each site will have a unique ID, and you can find the corresponding one in this list.siteIdThis ID is the unique credential used internally to identify the site, and it must be used accurately when calling cross-site content in the template.

2. How does calling massive content from multiple sites on a front-end page affect website performance?

AnQiCMS based on Go language development, with high-performance, high-concurrency architecture advantages.Considered the efficiency of content calls during design.Even so, calling too much massive content from different sites on a single page may still increase the server load and page loading time.limitparameters), or by using page caching mechanisms to optimize performance.

3. Can I make different sites share the same article or product data completely, rather than calling and displaying it across sites?

The multi-site design concept of AnQiCMS is to provide an independent database for each site to ensure data isolation and management flexibility.Therefore, by default, an article or product data belongs to a specific site.Cross-site calling is a "presentation" mechanism, rather than a "sharing" mechanism, which means pulling data from site A to site B for display, but the actual data is still stored on site A.If you indeed need to make multiple sites share the same content data, you may need to consider manually synchronizing the same content to other sites at the time of content publishing (through AnQiCMS content collection and batch import features, or API interfaces can simplify this process), or through customized development to implement deeper data sharing logic.