How to add and call AnQiCMS custom contact information (such as WhatsApp, Facebook)?

Calendar 👁️ 55

As a senior Anqi CMS website operation staff, I know that in the digital age, diversified communication methods are the key to connecting users and enhancing user experience.AnQi CMS offers great flexibility in this aspect, whether it is built-in contact information or custom social media channels, it can easily help your website establish contact with visitors.

I will introduce to you in detail how to add and call custom contact methods in Anqi CMS, such as WhatsApp and Facebook.

Understanding the contact information management of AnQiCMS

The Anqi CMS backend management system is committed to providing a comprehensive and flexible content management solution, among which the "Contact Information Settings" feature is one of its highlights.It not only provides common contact information settings such as contacts, contact phone numbers, contact addresses, contact email addresses, WeChat IDs, and WeChat QR codes, but also allows operators to freely expand and add more customized contact channels according to their own needs.This is undoubtedly a powerful tool for businesses that need to connect with global users or provide multi-platform services.

Add custom contact information in the Anqi CMS backend

To add WhatsApp, Facebook, or any other custom contact information you wish to display, you need to log in to the Anqi CMS backend management interface to perform the operation.

First, please log in to your Anqi CMS backend. In the left navigation menu, find and click "Backend Settings", then select "Contact Information Settings".

After entering the contact information settings page, you will see a series of default contact information entry boxes.At the bottom of the page, there is usually an area for "Custom setting parameters".This is the area where we add non-standard contact methods.Click the Add or corresponding Edit button, and you will see three key fields:

  • Parameter name:This is the unique identifier you use when calling this contact method in the website template.To ensure ease of identification and invocation, it is recommended to use alphabets for naming, for example, set 'WhatsApp' for WhatsApp, and 'Facebook' for Facebook.The AnQi CMS automatically converts letters to camel case naming (i.e., the first letter of each word is capitalized, with no spaces in between), but it does not affect the use of the parameter names you enter directly in the template.
  • Parameter value:This is the specific content of the contact information. For example, for WhatsApp, you can enter your WhatsApp number, or a WhatsApp chat link containing the number (such ashttps://wa.me/您的电话号码)。For Facebook, you can enter the link to your Facebook homepage (such ashttps://www.facebook.com/您的主页名称)
  • Note:This field is only used by backend administrators to identify and record the purpose of this parameter, and will not be displayed in the front-end template.You can fill in information such as "WhatsApp link at the bottom of the website" or "Customer service Facebook page" for future maintenance and management.

After completing the form, save your changes. In this way, your custom contact information has been successfully added to the Anqi CMS backend database.

Call custom contact information in the website template

Once the custom contact information is set up in the background, the next step is to display it in your website's frontend template. Anqicms provides a special template tag for this.contact.

contactThe label usage is{% contact 变量名称 with name="字段名称" %}. Among them,nameThe value of the parameter is the 'parameter name' you fill in the 'Custom Settings Parameters' on the back end.

Here is an example of code to call WhatsApp and Facebook contact information:

If you have set the contact information named "WhatsApp" and "Facebook" in the "Custom Setting Parameters" in the background, and entered the corresponding link or number in the "Parameter Value", you can use the following code to call them at any location in the template:

{# 直接调用WhatsApp联系方式 #}
<div>
    <span>联系WhatsApp:</span>
    <a href="https://wa.me/{% contact with name="WhatsApp" %}" target="_blank" rel="nofollow">
        {% contact with name="WhatsApp" %}
    </a>
</div>

{# 将Facebook链接赋值给变量后调用 #}
{% contact facebookLink with name="Facebook" %}
{% if facebookLink %}
    <div>
        <span>访问我的Facebook主页:</span>
        <a href="{{ facebookLink }}" target="_blank" rel="nofollow">
            Facebook
        </a>
    </div>
{% endif %}

In the above code:

  • {% contact with name="WhatsApp" %}The value set for the "WhatsApp" parameter in the background will be directly output. You can embed it intohrefIn the attribute, to create a clickable WhatsApp chat link.
  • {% contact facebookLink with name="Facebook" %}Assign the parameter value of Facebook tofacebookLinkA variable, which is very useful when you need to further process or judge data. Through{% if facebookLink %}Check if the variable exists, it can avoid blank links or errors on the page when the background is not set.
  • target="_blank" rel="nofollow"The attribute is usually used for external links to ensure that a new tab is opened without leaving the current website, and to inform the search engine not to track this link, which helps with SEO.

You can place these code snippets in the header, footer, contact us page, or any area where you want visitors to see these contact methods.In this way, the flexibility of Anqi CMS allows your website to easily integrate various custom social and communication channels, thereby better serving your visitors and business needs.

Common questions

Q1: How do I add a contact method outside of the default list of anqicms, such as Telegram or Skype ID?

You can use the "Custom Settings Parameter" feature in the "Contact Information Settings" to achieve this.Just add a custom parameter on the “Contact Settings” page in the background, set the “Parameter Name” to “Telegram” or “SkypeID”, and then enter your Telegram username or Skype ID in the “Parameter Value”.In the template, you can use{% contact with name="Telegram" %}or{% contact with name="SkypeID" %}Call this information.

Q2: Under the AnQi CMS multi-site management mode, can I set different custom contact information for different websites?

Yes, AnQi CMS supports multi-site management, and the contact information settings for each site are independent.You can configure the contact information separately for each site's backend, including default items and custom parameters.When calling in the template,contactThe label will default to retrieving the contact information of the current site, if you need to cross-site

Related articles

What contact methods does AnQiCMS support, such as email, WeChat, QQ, and so on?

The configuration guide for common contact methods of AnQiCMS In the daily operation of websites, clear and convenient contact methods are key to establishing trust and communication between users and websites.As a website operator who has been deeply involved in the CMS of AnQi for many years, I know that high-quality content is not only reflected in the article itself, but also in every detail of serving users.

2025-11-06

How to set and call the contact, phone number, and address information of the website in AnQiCMS?

As a senior security CMS website operator, I know that the contact information of the website is crucial for user trust and business conversion.A clear, accessible, and accurate contact method not only enhances user experience but also strengthens the search engine's trust in the website, thereby optimizing SEO performance.Now, I will introduce in detail how to set and call these key information in AnQiCMS.The contact, phone number, and address information on the website is an important bridge for corporate communication with the outside world.They not only show the real existence of the enterprise to visitors, but also provide users with help seeking

2025-11-06

How to add custom parameters and template calls in AnQiCMS global settings, excluding built-in parameters?

As an experienced senior CMS website operation personnel, I am well aware that a content management system not only needs to meet basic content publishing needs but also needs to have high flexibility and scalability to adapt to constantly changing operational strategies.In AnQiCMS, in addition to the various built-in parameters of the system, we often need to add some custom global parameters according to specific business scenarios and website design, in order to flexibly call them in templates and achieve personalized content display.

2025-11-06

How to operate the website status (open/close) switch function of AnQiCMS, and how to customize the shutdown prompt?

As an experienced website operator proficient in AnQiCMS, I know that it is crucial to flexibly control the opening and closing status of the website and provide appropriate shutdown prompts during website maintenance, updates, or special situations, which is important for user experience and operation management.AnQiCMS provides intuitive and powerful features in this aspect, allowing us to easily meet these needs.### AnQiCMS website status switch feature operation guide In AnQiCMS, the website status switch is a core global feature that allows operators to need according to

2025-11-06

How does AnQiCMS handle remote images in content, does it support automatic downloading to local?

As a senior CMS website operation personnel of an enterprise security company, I know that the management of images in the content is crucial for website performance and user experience.About how AnQiCMS handles remote images in content and whether it supports automatic downloading to local, I can clearly tell you that AnQiCMS provides very practical functions in this regard.In the AnQiCMS content management system, image processing is a core link, especially for content creators who need to refer to external image resources.The system has built-in management options for remote images

2025-11-06

How to configure AnQiCMS to automatically filter external links or add rel="nofollow" tags?

As an experienced CMS website operation personnel for AnQi, I know the importance of content creation and optimization in every step for the healthy development of the website.How to efficiently manage external links in content during daily work so that they can provide reference value without affecting the SEO performance of their own website is a concern for many operators.Aqie CMS provides a simple and effective solution for this.--- ### Understanding the Importance of External Link Management In the process of content creation, we often need to refer to external resources to support arguments, provide more information, or acknowledge sources

2025-11-06

What are the advantages of enabling the AnQiCMS WebP image format, and how to batch convert existing images?

As an experienced website operator familiar with AnQiCMS, I am well aware of the importance of website performance in attracting and retaining users, and image optimization plays an indispensable role in this.WebP is a modern image format that is becoming an optimal solution for website acceleration with its excellent compression performance.AnQiCMS fully understands this need and integrates powerful WebP image format enablement and batch conversion functions, aiming to provide operators with a more efficient and higher-quality image management experience.### Significant advantages of enabling WebP image format Under the current network environment

2025-11-06

How to set up automatic compression for large images uploaded in AnQiCMS to save storage space and improve loading speed?

As an experienced Anqi CMS website operation personnel, I know the importance of high-quality images for user experience and search engine optimization.However, large-sized images may become a bottleneck for website loading speed while enhancing visual effects, and they may also occupy valuable storage space.AnQiCMS provides a convenient set of features that allows website administrators to automatically compress large images uploaded, effectively solving this problem. The value of automatically compressing large images The loading speed of the website is one of the key factors for user retention and conversion rate.

2025-11-06