How to implement the unified or independent display of multi-site content on the AnQiCMS front end?

Calendar 👁️ 80

For users with multiple websites, brands, or content branches, how to efficiently manage and flexibly display content has always been a core challenge in website operations.AnQiCMS is a content management system designed for multi-site management, which not only provides a unified backend management interface, but also gives users great freedom in front-end content display, allowing for completely independent content display and easy implementation of unified calls and aggregated display across sites.

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

Independent display: Creating a unique experience for each site.

When we need to provide completely independent content, design, and user experience for each site, AnQiCMS provides 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 an independent logical entity. This means that they have:

  1. A standalone domain and access path: Each site has its own domain name or subdomain. Users can access these different URLs to enter their respective independent websites.
  2. Independent database and file storage: New sites will be allocated independent database tables to store their content data, as well as independent website root directories (for example, in Docker environments are/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 and no interference.
  3. Independent backend management and permissionsEach independent site can be configured with its own administrator account and password, having its own backend management permissions, thus avoiding the confusion of cross-site management permissions.
  4. Independent template designYou can upload and enable a completely different set of templates for each site.For example, a site can use a minimalist template to display technical documents, while another site can use a luxurious e-commerce template to sell products.Each template file (such asindex.html/{模型table}/detail.htmlThe same) only acts on its own site, ensuring the uniqueness of front-end vision and interaction.

With this independent setup, a site focused on product display can have a unique product model and template, while the other can be a pure blog site. Both do not interfere with each other on the front end, maintaining the independence of their brands and the focus of their content.This provides a solid foundation for creating highly personalized user experiences.

Unified management and cross-site calls: realize content reuse and collaboration.

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

AnQiCMS cleverly introduces a name in the core content list and detail tags,siteIdThe key parameter. Its appearance has completely broken down the barriers between sites, making cross-site content calls effortless.

You can understand the content tag as the "command" of the data request, whereassiteIdThis is the "target" of the command. By calling such asarchiveList(Document list),categoryList(Category list),pageList(single-page list),tagListTag lists} are explicitly specified 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 CenterA company has multiple sub-brand websites, and the main site wants to display the latest news of all sub-brand websites. You just need to use thearchiveListtag to specify the websites of each sub-site.siteIdAggregate the latest information of all child sites. For example,{% archiveList news fromSiteId="2,3,4" limit="10" %}Can obtain the latest 10 news of site ID 2, 3, 4.
  • Share product catalogIf you have a shared product database (assuming located at the 'Product Center' site ID 1), you can display the same products on different front-end brand websites. The templates for each brand website can be accessed directly througharchiveListspecifiedsiteId="1"Fetch product data and render it according to your own design style.
  • Unified contact informationEven including:system(System settings information),contact(Contact information) and other basic information, can also be accessed throughsiteIdObtained from 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 to ensure the unified publication and update of important company information.
  • Multilingual version contentCombined with AnQiCMS:languagesLabel, you can provide content for different language versions of the site, each language site can display its localized content independently, and also throughsiteIdThe parameter refers to specific content on other language sites, realizing a more complex internationalization content strategy.

This mechanism greatly enhances the efficiency of content operation. Content needs to be created only once, and can be retrieved and displayed on multiple frontends as needed, reducing redundant labor and ensuring consistency of information, while also maintaining the flexibility of frontend display.

Flexible and variable implementation strategy

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

  1. Fully Independent ModeEach site has independent backend and frontend data, brand image and content are completely decoupled, and do not affect each other. This is suitable for brands or businesses with extremely differentiating characteristics.
  2. Content Aggregation Mode: PasssiteIdParameters, on the main site or other specified sites, aggregate and display the selected content of multiple child sites to form a unified entry or overview.
  3. Content Sharing Mode: Certain general content (such as company profiles, FAQs, basic product information) is created on only one site and then referenced at other sites to ensure consistency and update efficiency.siteIdIn other sites, it ensures consistency and update efficiency.
  4. Mixed ModeThis is the most common usage. Most content is kept independent of the site, but key information or certain specific modules (such as the latest news, recommended products) are implemented through cross-site calls to achieve content reuse or aggregation.

In summary, AnQiCMS, through its fine multi-site management features and flexible template tag system, gives users complete control over the front-end display of multi-site content.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 implement efficiently.


Frequently Asked Questions (FAQ)

  1. How many sites can a single AnQiCMS instance manage?The design of AnQiCMS aims to efficiently manage multiple sites.In terms of technology, a single AnQiCMS instance can manage a large number of sites as long as the server resources (CPU, memory, database performance) allow it, there is no rigid limit in theory.By configuring independent databases and root directories for each site, the data and files between different sites are isolated, and the performance bottleneck mainly depends on the server hardware configuration and total traffic volume.

  2. How to maintain consistent or independent styles for cross-site calls on the frontend?When you usesiteIdWhen calling content from other sites, only the original content data is obtained.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.If you want the content called across sites to be consistent on all sites

Related articles

The `wordwrap` filter: how to elegantly handle the automatic line break display of long text without truncating words?

In website content display, we often encounter layout problems with long text content.When a piece of text is too long and exceeds the container width, if it is not properly handled, it may cause layout disorder and a decline in reading experience.AnQiCMS (AnQiCMS) provides a very practical template filter - `wordwrap`, which helps us elegantly solve the automatic line break display of long text, and the key point is that it maintains the integrity of words, avoids cutting words in the middle, thereby greatly enhancing the professionalism and readability of the content.

2025-11-08

The `random` filter: How to randomly select a character or element from a string or array?

In Anqi CMS template design, we often need to make the website content dynamic and random to avoid the content being too static and to enhance the browsing fun of users.When you want to randomly select one from a series of preset options, text, or data to display, the `random` filter is a very practical tool.It can help you randomly pick a character or element from a string or array (also known as a list or set), adding an element of unpredictability to your website content.

2025-11-08

`repeat` filter: How to repeat a specified string N times to generate placeholder content?

In the world of AnQi CMS templates, we often need some flexible tools to quickly build page layouts or generate placeholder content when there is no actual data.The `repeat` filter is a feature that is not very noticeable but very practical, and it can help you output the specified string N times in a concise way. ### `repeat` filter: A practical technique for quickly generating repeated strings In website content management and template design, we often need to display a character, phrase, or even a short segment of HTML code repeatedly.For example, when you need a separator line

2025-11-08

The `urlize` and `urlizetrunc` filters: How to handle the display and truncation of long URLs?

In website content operation, we often need to handle various links, whether it is external resources cited in articles or websites left by users in comment sections.However, when these links are too long, they may not only destroy the overall layout of the page, affect its aesthetics, but may also reduce the reading experience of users.Luckyly, AnQiCMS provides a pair of very practical filters—`urlize` and `urlizetrunc`, which can help us manage and display these long or unformatted URLs gracefully.

2025-11-08

How to flexibly control the display of website front-end content using a custom content model?

In website content operation, the way content is presented is the key to attracting users, conveying information, and achieving business goals.AnQiCMS (AnQiCMS) provides a highly flexible custom content model, which is a powerful tool for us to finely control the display of website front-end content.It is not just the background data management, but also the cornerstone of the front-end visual and functional experience. ### The Foundation Role of Flexible Content Models One of the core advantages of Anqi CMS is its "flexible content model" feature.In simple terms, a content model is a predefined structural framework for different types of content.

2025-11-08

How does AnQiCMS ensure that users of different languages see the correct content display in its multilingual support feature?

In an increasingly globalized digital world, whether a website can provide a smooth and accurate experience for users of different languages has become a key factor in measuring its success or failure.AnQiCMS (AnQiCMS) knows this and has integrated powerful multilingual support into its design, ensuring that your website content can accurately reach global users.How does AnQiCMS ensure that users of different languages see the correct content display?This is not a one-step solution, but a comprehensive solution from the system level to content management, to front-end display and search engine optimization.

2025-11-08

How to optimize the URL structure of a website using pseudo-static and 301 redirect management to improve the visibility of front-end content?

In website operation, the structure of URL (Uniform Resource Locator) is directly related to the performance of the website in search engines and the user experience.A clear, concise, and meaningful URL can not only help search engines better understand the content of the page, but also allow users to identify the theme of the page at a glance, enhancing trust.AnQiCMS is well-versed in this field and provides powerful features for handling pseudo-static and 301 redirect management, helping you optimize the URL structure of your website and significantly improve the visibility of front-end content.

2025-11-08

What help does AnQiCMS's advanced SEO tool (Sitemap, Robots.txt) provide for the display and indexing of website content?

In the digital age, high-quality content is the core of attracting visitors to a website, but if the search engine cannot efficiently discover and understand these contents, even the most careful creation may be buried.AnQiCMS deeply understands this point, therefore it has built a series of powerful tools aimed at simplifying and optimizing website SEO.Among them, Sitemap and Robots.txt are the foundation of communication between websites and search engines, playing an indispensable role.They collaborate to lay a solid foundation for the accurate display and efficient indexing of website content.

2025-11-08