Common configuration mistakes in the contact information setting of AnQi CMS: Make your contact information clear and visible

In website operation, clearly and effectively displaying contact information is a key link in building user trust, promoting communication, and business conversion.AnQiCMS (AnQiCMS) provides a set of convenient backend settings and template tags, allowing you to easily manage and call these key information.However, even such convenient features are often caused by some seemingly minor configuration errors, resulting in the inability to display contact information on the front page normally, causing confusion to operators.

As an experienced website operations expert, I am well aware that these 'small issues' may hide potential user experience gaps. Today, let's delve into the 'Contact Information Settings' in Anqi CMS.contactTemplate tag call between common configuration errors, and provide clear solutions.

Backend settings: 'Source' management of contact information

Let's review the contact information settings of the Anqi CMS backend. You canHome page > Settings > Contact Information SettingsFind these configuration items.Here are some default fields such as "Contact Person

The strength of AnQi CMS lies in its flexibility, and you can also add contact methods that meet your specific needs through 'Custom Settings Parameters', such as 'WhatsApp account' or 'Facebook page link', etc. There are several details that are crucial when setting these custom parameters:

  1. Parameter name:This is the unique identifier for template usage.The system suggests setting the parameter name to English, and it will automatically convert it to camel case (i.e., each word starts with an uppercase letter and there are no spaces in between) for easy use in templates.WhatsApp.
  2. Parameter value:This is the actual contact information content, such as phone numbers, email addresses, etc.
  3. Note:This is only used for backend management, convenient for you to understand the purpose of the parameter, and will not be displayed on the front end.

Understanding these backend settings is the first step in correctly calling the contact method. Because template tags need to accurately know where to "get the data".

contactLabel invocation: The bridge connecting the backend and frontend

In the template files of the Aanqi CMS,contactLabels are used to display the contact information you set on the backend on the website. Its basic usage method is:{% contact 变量名称 with name="字段名称" %}Of course, if you simply directly output the value of a field,变量名称it can also be omitted.

Here,namethe attribute is the core, it tellscontactthe tag which contact information you want to get from the background settings.

Common Configuration Mistakes and Solutions

Now, let's analyze several that you may encounter when usingcontactFrequent configuration mistakes when using tags, and provide solutions one by one.

Misconception one: Neglecting the precision and case sensitivity of 'parameter name'

This is the most common and easily made mistake. Many operators set up contact information in the background, and when calling the front-end template, they often encounter problems because of theirnameThe inaccurate understanding of attribute values leads to the inability to display information.

  • Problem manifestation:

    • Built-in fields like "Contacts" are called on the front endname="username"but expected to be displayed.
    • 自定义字段在后台设置为“我的WhatsApp”,在前台调用name="myWhatsApp"orname="WhatsApp",却发现没有内容。
    • 系统提示“未找到指定字段”。
  • 深层原因:The template tags of AnQi CMSnameThe values of the properties must be very precise and strictly case-sensitive.

    1. Built-in fields:All built-in contact information fields have their fixed camelCase English naming conventions