AnQiCMS (AnQiCMS) excels in multi-site management, allowing content operators to easily manage multiple brands or projects without getting lost in a sea of information.How can you skillfully handle the contact methods between different sites, ensuring the uniqueness of each site while also implementing a unified display of certain information to avoid data confusion, which is a key concern for many operators.As an experienced website operation expert, I will delve into this strategy by combining the characteristics of AnQiCMS.
Gracefully manage contact information in the AnQiCMS multi-site architecture, avoid information confusion
In enterprise-level content management, especially when the business expands to multiple brands, sub-sites, or regional portals, the need for multi-site management becomes increasingly prominent.AnQiCMS with its powerful multi-site support capabilities, provides users with a flexible and efficient solution.However, the challenge that follows is how to ensure the consistency and independence of key information such as contact methods between these independent sites, and to completely avoid data confusion, which is the exquisite design of AnQiCMS.
Foundation of multi-site features: data isolation and configuration independence
AnQiCMS multi-site management is not just a simple switch of the front-end interface, its core lies in the deep isolation of background data and configuration.In the deployment mode of AnQiCMS, each newly created site usually has an independent site root directory and database (as shown when adding a new site under Baota or Docker environment).This architectural design means that each site is born with an independent identity and storage space.
The advantages of this data isolation are obvious:
- Configuration independence:Each site can be configured with a unique set of system settings, content settings, of course, including contact information settings according to its own characteristics and business needs.The contact information and email of Site A are completely unrelated to Site B, and there is no interference.
- Data purity:Content data, user data, etc. from different sites are safely separated, effectively avoiding cross-site data logic confusion.
Based on this underlying design, AnQiCMS has laid a solid foundation for the unified and independent management of contact information.
Strategy for the refined management of contact information.
AnQiCMS provides a flexible mechanism that allows you to fine-tune the communication methods between multiple sites for different operational scenarios.
Ensure independence: Configure dedicated contact information for each site
When you need to set a unique contact method for each site, AnQiCMS' default behavior perfectly meets this need. Each site can set it through its independent admin interface, by the way,“Backend settings"under the "Contact information settingsConfigure information such as contacts, phone numbers, addresses, email addresses, WeChat ID, and WeChat QR code.
For example, a group company has three brand sites: electronic product site, home appliance site, and baby product site.They each have independent customer service teams and contact channels.You just need to log in to the back end of the corresponding site, go to "Contact Information Settings", and fill in the brand-specific contact information.
When calling this information in the site front-end template, you only need to use the simplestcontacttags without specifying any additional parameters:
{# 调用当前站点的联系电话 #}
联系电话:{% contact with name="Cellphone" %}
{# 调用当前站点的联系邮箱 #}
联系邮箱:{% contact with name="Email" %}
This way, each site will accurately display the contact information configured on its backend, completely independent from each other, with no confusion of information.
2. Achieve uniformity: Flexible reference and contact information sharing
In some cases, you may need to display the same basic contact information on multiple sites, such as the unified customer service phone number of the company headquarters, the official unique email address, or the social media accounts at the group level. AnQiCMS throughcontactlabel'ssiteIdParameters elegantly meet this requirement, achieving the effect of 'one configuration, multiple references'.
The core idea of achieving unity is to first choose a "main site" (for example, the official corporate headquarters with Site ID 1) to maintain these shared contact information.In the contact information settings of this site, configure these general information completely.siteIdThe parameter explicitly indicates which site to retrieve data from.
For example, if you want Site B and Site C to display the contact phone number of the headquarters with Site ID 1:
{# 在Site B或Site C的模板中,引用Site ID为1的联系电话 #}
总部热线:{% contact with name="Cellphone" siteId="1" %}
{# 引用Site ID为1的微信二维码 #}
官方微信:<img src="{% contact with name="Qrcode" siteId="1" %}" alt="官方微信" />
In this way, even if you display the same contact information on multiple sites, the data is actually stored only in the independent database of the "main site". Other sites are just throughsiteIdThe parameter performs a "remote" call. When you need to update this general information, just modify it once in the "main site" backend, and all references to it will be updated.siteIdThe site will synchronize updates in real time, greatly improving operational efficiency, and fundamentally avoiding data redundancy and confusion.
AnQiCMS's flexible expansion: custom contact information field
AnQiCMS's contact information settings also supportCustom settings parametersThis further enhances its adaptability.In addition to the default provided contact information, phone numbers, addresses, and other fields, you can add any custom fields according to your business needs, such as "WhatsApp contact information", "Facebook homepage link", "Corporate QQ", and so on.
These custom fields also follow the above principles of independence and unity. You can configure them independently on each site, or configure them on one site and thensiteIdParameters are referenced on other sites.
{# 调用当前站点自定义的WhatsApp联系方式 #}
WhatsApp:{% contact with name="WhatsApp" %}
{# 引用Site ID为1自定义的Facebook主页链接 #}
Facebook:<a href="{% contact with name="Facebook" siteId="1" %}">点击访问</a>
This flexible customization capability ensures that AnQiCMS can meet the needs of various complex and personalized multi-site contact information management requirements.
Advice in practice
- Clear planning:At the beginning of setting up multiple sites, it should be planned which contact methods should be independently maintained by each site (such as exclusive customer service for each brand), and which are universally shared (such as the headquarters phone number of the group).
- The principle of the main site:For shared common contact information, be sure to specify a "main site" to configure and manage uniformly, ensuring the uniqueness and authority of information.
- Reasonable use
siteId:Treat differently when calling the template