How does the multi-site feature of AnQiCMS affect the display and switching of front-end content?

Calendar 👁️ 68

When using a website content management system, the multi-site feature has always been a topic of great concern.It not only concerns operational efficiency, but also directly affects the organization, display of website content, and smooth switching experience between different sites.For AnQiCMS users, its powerful multi-site function is the tool to solve this series of challenges.Let's delve into how the multi-site feature of AnQiCMS actually affects the display and switching of front-end content.

One of the design初衷 of AnQiCMS is to meet the needs of users to manage multiple brands, sub-sites, or multi-language content.Through a simple and efficient system architecture, it allows us to easily create and independently manage multiple websites on a single server, an AnQiCMS instance.This pattern has brought profound impact to the display and switching of front-end content.

1. Independent Kingdom: High isolation of content and data

The multi-site feature of AnQiCMS is primarily reflected in its strong isolation of content.Although all sites may run on the same AnQiCMS program, each site is considered an independent entity.This means:

  • A standalone domain and entranceEach child site can be bound to an independent domain name, having its own exclusive access address.Users access different sites directly through different domain names, achieving physical separation on the front end.
  • Standalone data storage: When creating a new site, we need to specify a unique "site root directory" and "database name".This ensures that each site has independent caching, file storage space, and database tables.For example, the content of Product A site will not confuse the brand B site, ensuring the purity of the content and convenience of management.This means that the data we see on the A station is exclusive to the A station, and will not be interfered with by other sites.
  • Standalone backend management: Although we can use the "multi-site management" feature of the main station to unify the entry, each sub-site has an independent backend administrator account and password.This further strengthens the independent operational capabilities between sites, ensuring clear division of content editing and management permissions.

This high degree of isolation allows each site to focus on its specific positioning and target audience, thereby presenting clear and focused content on the front end.When a user visits a site, they can obtain customized information, avoiding information overload or interference from irrelevant content.

II. Flexible customization: personalized presentation of templates and content

The front-end display of the content management system cannot do without the support of templates. The multi-site function of AnQiCMS allows each site to flexibly choose and customize templates according to its own needs, thereby achieving personalized content presentation:

  • Independent theme templateEach site can have its own unique theme template.This means that even different product lines of the same company can be distinguished by different design styles.We can design a stable and elegant template for the enterprise website, a lively shopping-oriented template for the e-commerce sub-site, and even configure optimized interfaces for multi-language sites that cater to different cultural habits.template folder'sconfig.jsonThe file defines the name, type (adaptive, code adaptation, PC + mobile) and other information of the template, providing a rich selection.
  • Diversified content modelThe flexible content model of AnQiCMS is one of its core strengths.In a multi-site environment, we can define a dedicated content model for each site.For example, a news and information site can have "article", "special topic" models, while a product display site can have "product", "solution" models.These models determine the structure of content entry on the backend, thereby affecting the display form of content on the frontend.This means that even under the same AnQiCMS instance, the detailed pages of "articles" on different sites can vary greatly in terms of the fields and layouts displayed, due to the different content models they are bound to.
  • Fine-grained content display control: AnQiCMS provides powerful template tag functions, such asarchiveDetail/categoryDetail/pageDetailand, these tags can accurately control the various components of the content. Furthermore, it supports custom template files, such as specifying exclusive template files for specific category IDs, document IDs, or single page IDs (such aspage/about.htmlorproduct/detail-123.htmlThis brings the display of front-end content to the ultimate level of refinement, ensuring that every page can be presented as needed, whether it is a special event page or a brand story page, each can have a unique appearance and functionality.

These features work together to ensure that each site can display content in a way that is most suitable for its business needs and brand image while maintaining its independence.

Three, Interconnection: The Mystery of Cross-Site Content Display

The multi-site feature of AnQiCMS is not just simple content isolation, it also provides a clever mechanism to achieve interconnection between sites, especially in the content display aspect:

  • siteIdThe magic of parametersThis is the core to achieve cross-site content display. AnQiCMS almost all content template tags (such asarchiveList/categoryList/pageList/system/contact/tdk) are built-in.siteIdParameters. By explicitly specifying the ID of another site in the tag, we can easily call and display any content or configuration information from another site in the current site's template.
    • Example Case:
      • Cross-site Product DisplayA company with multiple sub-brands, its main brand website can display through the homepage{% archiveList archives with moduleId="2" siteId="其他站点ID" limit="5" %}Label, displaying the latest product list of a sub-brand website under its brand.
      • Unified contact informationIf multiple stations need to display the unified contact information of the headquarters, it can be used in each station template.{% contact with name="Cellphone" siteId="总部站点ID" %}To pull the contact phone number of the headquarters site.
      • Global navigation or friend links: A master site's navigation bar can contain links to all child sites.

Related articles

How to use template tags to dynamically display the associated Tag list in article content?

How can we make users see the related keywords or topic list in an article at a glance while browsing, so as to guide them to discover more interesting content and thus improve user experience and website stickiness, which is an important link.AnQiCMS (AnQiCMS) provides powerful template tag features, allowing you to easily display related Tag lists dynamically in article content, which is both beautiful and practical.**Understanding the Tag Function of AnQi CMS** Tags in AnQi CMS are not just simple classifications of articles

2025-11-09

How to configure AnQiCMS to enable lazy loading of images on the page?

In today's rich network world, the speed of website loading is of great importance to user experience and search engine optimization (SEO).Especially when a page contains a large number of images, how to effectively manage the loading of these images, avoid the lag caused by loading all resources at once, has become a focus of many website operators.The Lazy Load (Lazy Load) technology is the tool to solve this problem, it allows images to be loaded only when the user is about to see them, thus significantly improving page performance.AnQiCMS as a high-performance content management system

2025-11-09

How to display only articles of specific categories in the article list?

When managing website content in Anqi CMS, we often need to flexibly control the display of article lists, for example, only displaying articles under specific categories on a certain page.This not only helps to organize the content of the website accurately, but also greatly improves the browsing experience of visitors, helping them find the information they are interested in faster.AnQi CMS provides powerful template tag features, making this requirement simple and intuitive.The core of achieving this goal lies in the `archiveList` template tag of Anqi CMS.This tag is used to obtain the 'universal key' for the article list from the database

2025-11-09

Does AnQiCMS support displaying different detail page styles based on different content models?

In website operation, we often encounter such needs: different types of content, even on the same website, also need to have completely different display styles.For example, a product detail page of an e-commerce website needs to highlight product images, prices, inventory information, etc., while the blog article detail page may focus more on the reading experience, author information, and publication date.This ability to customize the style of detail pages based on content type (also known as content model) is crucial for improving user experience and content professionalism.Then, while using AnQiCMS

2025-11-09

How to use AnQiCMS's pseudo-static rules to optimize the display structure of article URLs to improve SEO?

In website operation, the URL is not only the entrance for users to access content, but also an important basis for search engines to understand and crawl website content.A clear and semantically friendly URL can significantly improve user experience and website performance in search engines.One of the key factors to achieve this goal is to skillfully use pseudo-static technology.AnQiCMS as a high-efficiency and customizable content management system, fully considers the needs of SEO optimization, and provides powerful and flexible pseudo-static rule configuration functions. Today

2025-11-09

How to call and display the title and link of the previous and next articles on the article detail page?

In AnQiCMS, adding navigation for the previous and next articles on the article detail page is an important step to improve the user reading experience and optimize the internal link structure of the website.This feature not only guides readers to continue browsing related content, but also helps search engines better understand the website structure.AnQiCMS's powerful template system provides a very convenient way to meet this requirement.### AnQiCMS Template Basics Review The AnQiCMS template system is simple and efficient, using syntax similar to Django, allowing developers to build pages intuitively

2025-11-09

Does AnQiCMS support displaying the number of articles under each category on the category list page?

When operating a website, we often encounter such needs: when displaying the website category list, we hope to see intuitively how many articles are under each category.This not only helps visitors quickly understand the richness of a topic's content, improve user experience, but also enables us content operators to better plan content strategies, and even has unique value in SEO optimization. Then, does AnQiCMS support displaying the number of articles under each category on the category list page?The answer is affirmative, and it is very convenient to implement. In the template design of AnQiCMS

2025-11-09

How to set up a dynamic carousel effect for the Banner image on the homepage of AnQiCMS website?

In AnQiCMS, setting a dynamic banner slideshow on the homepage can effectively enhance the visual appeal of the website and convey key information.AnQiCMS provides flexible and intuitive features to help us achieve this goal.Next, we will step by step understand how to set up from the background to the front-end template editing, creating an animated carousel effect for the homepage.### 1. Backend configuration of Banner image: Content and grouping Firstly, we need to prepare the images and relevant information for the carousel in the AnQiCMS backend

2025-11-09