How to add a new custom contact field in the AnQiCMS contact information settings?

Calendar 👁️ 55

Set contact information for AnQi CMS: easily add custom fields to meet your unique needs

In website operations, an efficient and personalized way of displaying contact information is often the key to building trust and promoting conversion between enterprises and users.AnQi CMS knows this, its powerful customizability allows you to easily exceed default settings, add exclusive contact fields to your website, and ensure that your site perfectly fits the unique needs of your business.

AnQi CMS is an efficient and customizable enterprise-level content management system, which not only provides rich content models and SEO tools, but also demonstrates its flexibility in detail.For such fundamental and important information as contact information, the system allows us to customize it deeply.

Why do you need custom contact fields?

In actual operation, the standard contact phone number, email and address may not cover all your communication channels.Maybe your business needs to display specific instant messaging tools, such as Telegram, Line ID;Or list international fax numbers, online customer service links;Or, to better serve global users, you may want to add multi-language customer service contact information, even social media accounts (such as WhatsApp, Facebook Messenger ID) so that users can easily reach out.The customized contact field function of AnQi CMS is exactly designed to meet these diverse needs.

How to add a new custom contact field in AnQi CMS?

The entire process is intuitive and easy to operate, even if you are not a professional developer, you can easily complete it.

First, please log in to the Anqi CMS admin interface. After logging in, we need to find the area responsible for managing the website contact information. This is usually located in the left navigation bar.Backend settingsUnder the menu, click to expand and selectContact information settingsJust do it.

On the 'Contact Information Settings' page, you will see that Anqi CMS provides a series of commonly used contact information fields by default, such as contact person, phone number, contact address, email address, WeChat ID, and WeChat QR code.These fields cover most of the basic needs of websites.

However, our goal is to add a new custom field. Please note a field namedCustom settings parametersThe region. This is where we exert our customized magic.

  1. Add custom parameters:In the "Custom Settings Parameters" area, you will find the entry point to add a new field.There will usually be an “Add” button or provide a new row directly in the table.Click it, you will see three key input items: Parameter Name/Parameter valueandNote.

  2. Define parameter name (Template Call Name):This is the unique identifier you use when calling this custom field in the website template.It is strongly recommended to use English words or pinyin as parameter names to maintain code neatness and maintainability.The Anqi CMS system will automatically convert it to CamelCase, for example, if you enterskype_idIt will be represented in the template asSkypeIdThe form is called. Choosing a clear, descriptive name is crucial as it helps you and your template developers quickly understand the purpose of the field.

  3. Set parameter value (Content/Value):This field is used to store the specific content of the custom contact information. For example, if your parameter name isSkypeIdThen, fill in your Skype account as the parameter value; if it isInternationalFaxFill in the international fax number. The information that users see on the front page is what is filled in here.

  4. Enter a note (Internal Description):The remark field is used to help you better understand the purpose of this custom parameter.It will not be displayed on the front end, purely for clarity during backend management and for ease of future maintenance.For example, you can fill in the 'Enterprise Skype Online Communication Account' or the '24-hour international fax service hotline'.

  5. Save changes:After filling out, please be sure to click the bottom of the pageSaveButton, ensure your changes take effect.

Integrate custom fields into the website template.

It is not enough to add custom fields in the background, in order to display this information on your website, you also need to integrate it into the website template. Anqi CMS provides simple and powerfulcontactTag to get this contact information.

You just need to use it in the template (usually in the footer, contact us page, or sidebar, etc.).{% contact %}Label, and throughnameSpecify the parameter name you just created.

For example, if you created a namedSkypeIdThe custom contact field, and you want to display it on the website, you can call it in the template file like this:

{# 获取Skype ID并直接显示 #}
<p>Skype 联络:{% contact with name="SkypeId" %}</p>

{# 如果您希望将Skype ID赋给一个变量再使用,可以进行条件判断 #}
{% contact mySkypeId with name="SkypeId" %}
{% if mySkypeId %}
  <p>我的Skype账号是:<a href="skype:{{ mySkypeId }}?chat">{{ mySkypeId }}</a></p>
{% endif %}

Please note that if your "parameter value" may contain HTML code (such as a full paragraph containing a link), remember to add it when calling the template.|safeA filter to ensure that the content is parsed correctly rather than escaped. For example:<div>{% contact with name="CustomHtmlInfo" %}|safe %}</div>.

Operations Tips

  • Keep parameter names concise and clearThis makes it easier to remember and makes template calls more intuitive.
  • Thorough testingAfter modifying the template, be sure to check the new contact field on the front page to ensure that it is displayed correctly and that its format and functionality meet expectations.
  • Consider responsive designIf your website supports mobile, make sure the new contact information can be displayed and operated well on various devices, such as clickable phone numbers and one-click communication ID.

Through the contact information setting of AnQi CMS, you can flexibly expand the contact information of the website according to your unique business needs, providing users with a more comprehensive and convenient communication channel.This not only improves the user experience, but also enhances the professionalism and adaptability of your website in information transmission.


Frequently Asked Questions (FAQ)

Q1: I have set up a custom contact field in the background, why is it not displayed on the front page?A1: This situation usually has several causes. First, please check if you have saved the settings in the background.The most common reason is that you have not updated the template files of the website to call this new custom field, or in the templatecontactlabel'snameThe attribute value does not match the parameter name you have set in the backend. Additionally, if the website has cache enabled, you may need to clear the cache to see the update.

Q2: Can the parameter name of a custom field be in Chinese?A2: The AnqiCMS allows you to use Chinese in the "parameter name", but for the universality of the code, ease of maintenance, and to avoid potential encoding issues, it is strongly recommended to use English or pinyin as the parameter name.The system will automatically convert Chinese parameter names to CamelCase in the background for template calls, but using English can better maintain consistency.

Q3: Can I store multiple contact methods in a custom field?A3: It is technically feasible. You can enter multi-line information in the "parameter value", or use specific delimiters (such as commas, semicolons) to distinguish between different contact methods.In the template, you can use the string processing features of the Go language template engine (such assplitFilter) split this information into an array and then display it in a loop.But for better readability and manageability, it is recommended to create separate custom fields for completely independent contact methods.

Related articles

How to call the custom contact information field added in the AnQiCMS template?

The complete guide to calling the custom contact information field in AnQi CMS template: from backend configuration to frontend display As an experienced website operations expert, I know the importance of a flexible and efficient content management system for a corporate website.AnQiCMS stands out among many CMSs with its powerful custom capabilities and SEO-friendliness.It can not only help us easily manage content, but also seamlessly integrate various information configured in the background with the front end of the website through its flexible template mechanism.Today, let's delve into a very practical scenario

2025-11-06

Does the AnQiCMS contact information tag support displaying multiple custom social media accounts at the same time?

As an experienced website operation expert, I know that in an increasingly diversified digital age, whether a website can effectively connect with its audience largely depends on the breadth and convenience of its contact information.AnQiCMS (AnQiCMS) has always been committed to providing flexible and efficient solutions in content management, then, is the contact information label of AnQiCMS supported to display multiple custom social media accounts simultaneously?This specific question, my answer is: **Fully supported and very flexible

2025-11-06

How to display all AnQiCMS contact information uniformly at the footer of the website without repeating code?

Certainly, as an experienced website operations expert, I am more than happy to provide a detailed explanation of how to implement the unified management and display of website footer contact information in AnQiCMS, ensuring efficient content maintenance and concise code. --- ## Say goodbye to repetitive labor: Efficiently manage website footer contact information in AnQiCMS In website operations, the footer usually carries important information such as the company's contact information, copyright statements, friend links, filing numbers, and so on.This information is not only an important way for users to obtain the basic situation of the site

2025-11-06

What default social media contact method tags does AnQiCMS support?

As an experienced website operations expert, I am well aware that seamless integration between websites and social media is crucial in today's digital marketing environment.A high-efficiency content management system (CMS) should not only provide content publishing capabilities, but also simplify users' interactions with social platforms.AnQiCMS (AnQiCMS) performs well in this aspect, providing great convenience to website operators through built-in contact label tags.Today, let's delve into which social media contact methods AnQiCMS supports by default, and how to cleverly use them to enhance the user connection efficiency of the website

2025-11-06

What are the naming conventions or suggestions when defining a custom contact method field?

In the powerful function ecosystem of Anqi CMS, the flexibility of custom contact information fields is undoubtedly a key factor in improving website operation efficiency.As an experienced website operations expert, I know that every detail can affect the overall performance of the website, and the naming conventions of 'parameter names', although seemingly trivial, are actually related to the maintainability, scalability, and smoothness of team collaboration of the website content.

2025-11-06

How should the 'parameter value' be filled in for the customized contact information in the AnQiCMS background to be correctly called in the template?

As an experienced website operations expert, I am well aware of how crucial it is to efficiently utilize each feature of a rich platform like AnQiCMS to serve the website content.Today, let's delve deeply into a seemingly simple yet often perplexing issue for many operators: 'How should the 'parameter value' of the customized contact information be filled in the AnQiCMS backend so that it can be correctly called in the template?'}]This is not just a technical detail, it is also about the precise presentation of website information and the smoothness of user experience.

2025-11-06

What is the actual function of the 'remark' field in AnQiCMS custom contact information?

As an experienced website operations expert, I am well aware that every detail of a CMS system may have a profound impact on the operational efficiency and long-term maintenance of a website.AnQiCMS (AnQiCMS) has become a powerful assistant for many enterprises and self-media in content management, thanks to the efficiency and excellent expansion capabilities brought by the Go language.Today, let's talk about a seemingly insignificant feature in AnQi CMS that plays a huge role in actual operation - the "note" field in the custom contact information.### Flexible Contact Management

2025-11-06

Does the contact label support setting links to overseas communication tools such as WhatsApp?

As an experienced website operations expert, I am well aware that in the digital wave, enterprises need to maintain seamless connections with global customers.When it comes to configuring website contact information, especially the integration of overseas communication tools, the flexibility of AnQiCMS (AnQiCMS) always impresses me.Many friends will ask: Does AnQi CMS support setting links to overseas communication tools such as WhatsApp?My answer is: **Fully supported and very convenient to implement!

2025-11-06