In today's complex digital environment, many enterprises and content creators are no longer satisfied with operating on a single site.Brands expansion, geographical coverage, and product line segmentation often require multiple independent websites to carry different contents and marketing strategies.How can one maintain the independence of content across various sites while also efficiently managing and displaying them uniformly, which is a challenge faced by many operators.Auto CMS, with its ability specifically designed for multi-site management, provides us with an elegant solution.
The cornerstone of Anqi CMS multi-site architecture
In actual operation, you just need to add a new site in the "Multi-site Management" feature of the Anqi CMS backend, and configure independent domain names, site root directories, and database information for each site.It is worth mentioning that even though these sites share the same security CMS core program, their data, cache, and configuration are all independent, ensuring isolation and security between sites.For example, if you deploy the CMS via Docker, you can easily achieve multi-site deployment and access with the help of reverse proxy settings of Nginx or Apache.
Flexible content model, for site-specific content customization
You can create an unlimited number of content models, and define unique fields for each model, such as single-line text, numbers, multi-line text, single/multiple selections, and so on.This means that when you create content for a new site, you are no longer limited to fixed templates, but can fully adapt to its unique business scenarios.This high degree of flexibility is the key to efficient content management and presentation, as it ensures that content is well-structured at the input stage, laying a solid foundation for precise front-end display.
Cross-site content invocation: utilizingsiteIdAchieve content interoperability
The most powerful weapons of AnQi CMS in achieving efficient display of multi-site content is one of its built-in template tags,siteId参数。This parameter is the bridge for content intercommunication, allowing you to easily call and display content from other sites on a single site, breaking the content islands.
Imagine such a scenario: You have a main brand website and have published a large number of high-quality industry articles and company news.同时,You also have several independent websites for sub-brands or product lines, hoping to display the latest news or selected articles of the main station on these sub-sites as well, in order to enhance the richness of content and brand relevance.siteId,This has become extremely simple.
Call the article list of other sitesAssuming the ID of your main site is
1, the content model ID is1(article model), you can use it in the sidebar or homepage of the child site,archiveListTag to get the latest articles from the main station:{% archiveList latestArticles with siteId="1" moduleId="1" limit="5" %} {% for item in latestArticles %} <a href="{{ item.Link }}">{{ item.Title }}</a> {% endfor %} {% endarchiveList %}Here,
siteId="1"Explicitly indicates that the system should fetch content from a site with ID 1,moduleId="1"Thus, it limits the content to only the article model.Displaying the category navigation of other sitesIf your main site has some general product categories that the sub-site wants to reference, it can also be done by
categoryListTags:{% categoryList mainSiteCategories with siteId="1" parentId="0" moduleId="2" %} {% for category in mainSiteCategories %} <a href="{{ category.Link }}">{{ category.Title }}</a> {% endfor %} {% endcategoryList %}In this way, the sub-site can easily display the product category structure of the main site.
sharing unified single-page contentFor example, pages such as "About Us" or "Contact Information", etc., may have identical content across multiple sites. You can publish this content on the main site (assuming ID as
1, and the single-page ID isX),Then use it on other sitespageDetailthe tag to call:{% pageDetail aboutUsContent with siteId="1" id="X" name="Content" %} {{ aboutUsContent|safe }} {% endpageDetail %}Pass
name="Content",We directly obtain and display the content of this single page|safeEnsure that the HTML content can be parsed correctlyCall shared systems or contact informationYour sites may share the same company's contact information or filing information. Through
systemorcontactTags, you can obtain this information from the main site and maintain consistency across all sub-sites:公司电话:{% contact with siteId="1" name="Cellphone" %}This way ensures the consistency and real-time update of key information. Once the main station is modified, all the child stations that call it will also be synchronized updated.
Through these flexiblesiteIdThe method of invocation allows you to build a highly interconnected, content-rich multi-site matrix while minimizing the work of content duplication creation and management.
Refined content operation: Enhance the user experience across multiple sites
Efficient content display is not just a technical implementation, but also involves refined operational strategies to enhance user experience and search engine friendliness.
- Multilingual supportIf your multi-site strategy also involves a global layout,