As an experienced CMS website operator for an enterprise, I know that the flexibility and timeliness of the corporate publicity strategy is crucial for attracting and retaining users.Contact information serves as a bridge for communication between enterprises and users, and its form and content often need to be adjusted with market changes or business needs.AnQi CMS provides highly customizable backend features, enabling us to easily cope with these changes.
Below, I will elaborate on how to customize the contact information settings in AnqiCMS to accurately match your corporate promotional needs.
AnqiCMS default contact information setting item overview
The Anqi CMS preset a series of commonly used contact information fields in the "Contact Information Settings" module, aiming to meet the daily display needs of most enterprises. These default settings include:
- ContactUsed to display the name for external contact of a company, such as "Mr. Wang" or the Customer Service Department.
- Contact phone numberUsed to provide the direct dialing phone number for users.
- Contact address: Display the physical office address or store address of the company.
- Contact email: Provide the email communication address.
- WeChat ID and WeChat QR code: Convenient for users to establish contact with the company through the WeChat platform.
- QQTraditional instant messaging communication method.
These default fields are enough to support the basic display of corporate information and can be called at the footer of the website, the contact us page, and other locations.They are managed centrally in the background, making it easy to update information quickly.
Why do you need a customized contact method?
In actual operation, the default contact information settings may not fully meet the publicity needs of all enterprises. For example:
- Global business expansion: You may need to add contact information for international social media platforms such as WhatsApp, Line.
- Multichannel marketingIn addition to WeChat, you may also need to display links to dedicated accounts or homepages on platforms such as Facebook, Twitter, TikTok, LinkedIn, Instagram, YouTube, etc. to guide users to your active social media channels.
- specific industry needsCertain industries may have their unique contact methods, such as online consultation links, hotlines of specific departments, etc.
- brand individualized display: You may want to add some brand-specific slogans or descriptions to your contact information.
When encountering these custom requirements, the flexible settings of AnqiCMS can come in handy.By adding custom parameters, we can easily expand the type of contact information, thereby more accurately matching the diverse promotional needs of enterprises.
Implementation steps for custom contact information settings.
To implement the custom settings for contact information in AnqiCMS, the process is intuitive and efficient.
First, please log in to your AnqiCMS backend management interface, find "Backend Settings" in the left navigation menu, and then click to enter the "Contact Information Settings" page.
At the bottom of the page, you will see a section named "Custom setting parameters". This is the core area where we carry out personalized customization.
When adding custom parameters, you need to fill in the following key information:
- Parameter NameThis is the identifier used when calling this custom contact method in the front-end template. It is strongly recommended to use English to name parameters for easier management and template development, for example
WhatsApp/FacebookPage/CustomerServiceHotline. The system will automatically convert the English parameter name you enter to camel case (i.e., each word starts with an uppercase letter and there are no spaces in between), for example, inputwhatsappwill becomeWhatsApp. Although the system also supports Chinese parameter names, it may increase complexity when called in templates, so it is recommended to use English. - Parameter valueThis is the specific contact information you want to display to the user. For example, if your parameter name is
WhatsAppThe parameter value can be filled with your WhatsApp number or link. If your parameter name isFacebookPageThe parameter value should be filled with your Facebook profile URL. - NoteThis field is only for internal reference by backend administrators and will not be displayed on the frontend.You can use the remarks to clearly describe the purpose or meaning of the custom parameter for future maintenance and management.
After completing the information entry, click save, your custom contact settings will be successfully added to the system.
Call custom contact information in the front-end template
Once you have set up custom contact information in the background, the next key step is to call and display it in the website's frontend template. AnqiCMS providescontactTags, it can conveniently retrieve and output the contact information you configure in the background, whether it is a default item or a custom item.
contactThe basic usage of tags is:{% contact 变量名称 with name="字段名称" %}Where the field name is
For example, suppose you have added a parameter namedWhatsAppa custom contact method, with the parameter value+8613800138000. In your AnqiCMS template file (for examplefooter.htmlorcontact.htmlIn the brackets, you can call and display it with the following code:
<p>
WhatsApp 联系方式:{% contact with name="WhatsApp" %}
</p>
If you want to assign this value to a variable for more complex processing in the template, you can do it like this:
{% contact whatsappNumber with name="WhatsApp" %}
{% if whatsappNumber %}
<p>
<a href="https://wa.me/{{ whatsappNumber }}" target="_blank" rel="nofollow">
<img src="/static/images/whatsapp-icon.png" alt="WhatsApp Icon" style="vertical-align: middle; margin-right: 5px;">
立即通过WhatsApp联系我们: {{ whatsappNumber }}
</a>
</p>
{% endif %}
In this way, you can flexibly display the newly added custom contact information at any location on the website.You can place it in the footer of the website, a dedicated "Contact Us" page, the sidebar, or even specific content detail pages to ensure that users can easily find and use these contact methods when needed.
Optimize and maintain
To ensure the accuracy and effectiveness of the contact information, it is recommended that you:
- Standardize naming:Custom parameter names should be concise and clear, easy to understand, and convenient for team members to use.
- Regular review: Contact information may change with business development.Regularly (e.g., quarterly or annually) check and update the contact information settings in the background to ensure all information is up-to-date and accurate.
- Test callAfter adding or modifying a custom contact method, be sure to test on the front page to confirm that the information is displayed correctly and the links are valid.
Summary
The contact information customization feature of AnQi CMS greatly enhances the flexibility and adaptability of the website in corporate promotion.It breaks the traditional CMS fixed field limits, allowing operators to dynamically expand contact channels according to specific market needs and marketing strategies.By carefully configuring these custom items and巧妙运用 in the front-end template, you will be able to more effectively connect with your target audience, thereby enhancing user experience and corporate influence.
Frequently Asked Questions (FAQ)
1. Can custom parameter names be Chinese?
Yes, AnqiCMS supports custom parameter names using Chinese.However, as a website operator, I would recommend using English as parameter names.This is because English parameter names are easier to identify and maintain in template code, and AnqiCMS will automatically convert them to camel case, which is a common coding naming convention that can improve code readability.
2. I have modified the contact information settings in the background, but the front-end page has not been updated. Why is that?
This is usually caused by caching.AnqiCMS to improve website access speed may cache data.
- Clear browser cache.
- Click the 'Update Cache' button on the AnqiCMS backend to force the system to clear and regenerate the cache.
- Check if the template file you have modified has been saved and uploaded to the server correctly.
3. Besides contact information, where else does AnqiCMS support customizable settings?
AnqiCMS also provides the ability to set custom parameters under "Global Function Settings" in the "Backend Settings".This allows you to add more custom configurations related to the overall operation of the website, such as specific API keys, partner links, or other text or links that need to be called globally across the website.It's usage method is similar to the contact information custom parameters, and it also supports custom parameter names, parameter values, and notes.