Next, we will delve into how AnQiCMS implements these two seemingly contradictory yet complementary content display strategies.

Independent Display: Create a dedicated experience for each site

When we need to provide fully independent content, design, and user experience for each site, AnQiCMS offers comprehensive support.This usually applies to enterprises that have multiple independent brands, product lines, or sub-sites with different market positioning.

In the AnQiCMS architecture, each new site added through the "Multi-site Management" feature can be considered as an independent logical entity. This means that they have:

  1. An independent domain and access path: Each site has its own independent domain name or subdomain, and users can access their respective websites by visiting these different URLs.
  2. An independent database and file storageA new site will be allocated an independent database table for storing its content data, as well as an independent website root directory (for example, in a Docker environment is/app/域名_comIn the Baota panel, it is/www/wwwroot/域名.com/) to store static resources and cache files. This ensures physical isolation of data between sites, without interference.
  3. Independent background management and permission managementEach independent site can be configured with its own administrator account and password, having its own backend management permissions, avoiding the confusion of cross-site management permissions.
  4. Independent template designYou can upload and enable a completely different template for each site.For example, a site can use a minimalist template to display technical documents, while another site can adopt a luxurious e-commerce template to sell products.index.html/{模型table}/detail.htmlAll of them only act on their respective sites, ensuring the uniqueness of front-end visual and interactive features.

Through this independent setting, a site focused on product display can have unique product models and templates, while the other can be a pure blog site. Both are independent in the front-end and maintain the brand's independence and content focus.This provides a solid foundation for creating a highly personalized user experience.

Unified management and cross-site calls: achieve content reuse and collaboration

Independence is indeed important, but for certain scenarios, such as when the main site needs to aggregate selected content from child sites, or when certain general content needs to be shared between multiple child sites, AnQiCMS also provides an efficient solution —— that is through a powerful template tag system.siteIdParameter.

AnQiCMS in the core content list and detail tags cleverly introduces a namedsiteIdThe critical parameters. The appearance of this parameter completely breaks the barriers between sites, making cross-site content calls easy.

You can understand the content tag as the 'command' of data requests.siteIdThis is the 'target' of the command. By calling such asarchiveList(Document List),categoryList(category list),pageList(single-page list),tagList(Tag list) and specify it when obtaining tagssiteId, you can easily obtain and display content fromother sites, not just the current site.

The following are some actual application scenarios:

  • Aggregate News CenterAn enterprise has multiple sub-brand websites, and the main site wants to display the latest news of all sub-brand websites. You just need to specify the sub-sites through the template of the main site.archiveListtags for each sub-site.siteIdIt can aggregate and display the latest information of all child sites. For example,{% archiveList news fromSiteId="2,3,4" limit="10" %}Can get the latest 10 news of sites with IDs 2, 3, and 4.
  • Shared product catalog:If you have a shared product database (assuming it is located at the 'Product Center' with site ID 1), you can display the same products on different frontend brand websites. The template for each brand website can be accessed directly througharchiveListspecifiedsiteId="1"Pull product data and render it according to your own design style.
  • Unified Contact InformationEven though evensystem(System settings information),)contact(Contact information) and other basic information, can also be accessed by}siteIdFrom a specific site. For example,{% contact with name="Cellphone" siteId="1" %}The contact information with site ID 1 can be displayed on any site. This is very useful for ensuring the unified release and update of important company information.
  • Multilingual version content: Combined with AnQiCMS'slanguagesLabel, you can provide content for different language versions of the site, each language site can display its localized content independently, or throughsiteIdThe parameter references specific content from other language sites, realizing more complex internationalization content strategies.

This mechanism greatly improves the efficiency of content operations.Content needs to be created only once, and can be called and displayed at multiple frontends as needed, reducing repetitive work and ensuring consistency of information, while also maintaining the flexibility of frontend display.

Flexible and varied implementation strategies

The multi-site management function of AnQiCMS has achieved a high degree of flexibility and control in front-end content display. You can choose one or more of the following strategies based on your actual business needs:

  1. Fully Independent ModeEach site has independent backend data and frontend templates, brand image and content are fully decoupled, and they do not affect each other. This is suitable for brands or businesses with significant differentiation.
  2. Content Aggregation Mode: ThroughsiteIdParameters, aggregate and display selected contents of multiple sub-sites on the main station or other specified stations, forming a unified entry or overview.
  3. Content Sharing Mode:Some general content (such as company profile, FAQ, product basic information) is created in one site, and then referenced in other sites to ensure consistency and update efficiency.siteIdIn other sites to ensure consistency and update efficiency.
  4. Mixed ModeThis is the most common usage.Most of the content maintains the independence of the site, but key information or certain specific modules (such as the latest news, recommended products) are realized through cross-site calls to achieve content reuse or aggregation.

In summary, AnQiCMS grants users complete control over the front-end display of multi-site content through its refined multi-site management features and flexible template tag system.No matter your need is to build a completely independent brand website or to construct a highly integrated portal, AnQiCMS can provide a powerful and easy-to-use solution to help your website operation strategy be implemented efficiently.


Common Questions (FAQ)

  1. How many sites can a single AnQiCMS instance manage?

  2. How to maintain consistent or independent styles for cross-site call content on the front end?When you usesiteIdWhen calling content from other sites, the only data obtained is the original content.This data is rendered in the template of the current site.Therefore, the final display style of the content is completely controlled by the CSS style and HTML structure of the current site.