As an experienced website operations expert, I know that in the increasingly diverse digital age, whether a website can effectively connect with its audience largely depends on the breadth and convenience of its contact information display.AnQiCMS (AnQiCMS) has always been committed to providing flexible and efficient solutions in content management, then, is the contact information tag of AnQiCMS supported to display multiple custom social media accounts at the same time?This specific question, my answer is: Fully supported and designed to be very flexible.
AnQiCMS'contactThe tag is a core component of its powerful template engine, dedicated to retrieving various contact information from the background.It is not limited to traditional phone, email and address, but also deeply considers the modern website's needs for multi-channel communication.
Contact information tag overview of AnQi CMS
In the AnQiCMS backend, you can easily manage all the contact information published externally under the "Contact Information Settings" in the "Backend Settings". This information iscontactThe tag is called in the front-end template. For example, if you need to display the contact phone number of the website, just write it in the template.{% contact with name="Cellphone" %}The system will automatically read and display the phone number you entered in the background. This calling method is concise and intuitive, greatly reducing the difficulty for front-end developers to obtain dynamic data.
Built-in social media support, meets mainstream needs
To adapt to the trend of globalization and multi-platform promotion, AnQiCMS is incontactThe tag has pre-set many mainstream social media fields.This includes WhatsApp, Facebook, Twitter, Tiktok, Pinterest, Linkedin, Instagram and Youtube, etc.This means you can directly fill in these social media links or account IDs in the background, and then use them in the template according to their correspondingname(for example{% contact with name="Facebook" %}/{% contact with name="Instagram" %}Easily call and display. This built-in support allows websites to quickly integrate common social media channels without additional development.
Flexible custom extension capabilities, seamless integration with multiple accounts
AnQiCMS is truly remarkable for its excellent flexibility and scalability.When the built-in social media fields cannot meet your specific needs, for example, if you have multiple similar social media accounts (such as two Facebook pages), or need to display a social platform that AnQiCMS has not yet preset, you can add an arbitrary number of custom contact methods through the "Custom Settings Parameters" feature in the "Contact Information Settings" backend.
The operation is very simple: just click "Add a new custom setting item", enter a "parameter name" (it is recommended to use camel case, such as "SecondFacebook" or "WeChatOfficialAccount"), then fill in the corresponding "parameter value" (such as the link or account ID of social media), and finally add a "note" for easy management.Once saved, this custom parameter has the same call ability as built-in fields.You can use it in the template to{% contact with name="SecondFacebook" %}In order to call it, thus achieving the simultaneous display of multiple custom social media accounts of the same type or different types.This design logic ensures that AnQiCMS can provide stable and flexible support regardless of how complex and diverse your business communication channels are.
How to integrate display in the template
Whether you are calling the built-in social media field of the system or extending the parameters through custom settings, their integrated display methods in the template are unified and coherent.You can place these tags flexibly at the header, footer, sidebar, or a dedicated contact us page according to the layout of the website.All PassedcontactThe information called by the tag will always be based on the latest value set in your background, ensuring the timeliness of content updates. For example:
{# 显示内置的Facebook账号 #}
<div>关注我们的Facebook:<a href="{% contact with name="Facebook" %}" target="_blank">Facebook主页</a></div>
{# 显示通过自定义参数添加的第二个WhatsApp账号 #}
<div>紧急联系WhatsApp:<a href="https://wa.me/{% contact with name="CustomWhatsApp" %}" target="_blank">即时聊天</a></div>
{# 显示另一个内置的Twitter账号 #}
<div>关注我们的Twitter:<a href="{% contact with name="Twitter" %}" target="_blank">Twitter动态</a></div>
In this way, you can not only easily display traditional social media platforms like Facebook, Twitter, but also concurrently display your custom second WhatsApp account or any other personalized contact information, with all information presented clearly and orderly on your website.
Summary
In summary, AnQiCMS'scontactThe label has fully considered the actual needs of the website operator in design.It not only provides out-of-the-box support for mainstream social media platforms, but also empowers users with infinite extensibility through its powerful custom parameter function, ensuring that you can manage and display multiple custom social media accounts flexibly and efficiently.This design philosophy allows your website to maintain simplicity in management while also maximizing diverse interactions with visitors.
Frequently Asked Questions (FAQ)
Ask: Why didn't the custom social media account I added display on the front end?Answer: After AnQiCMS's custom parameters are set in the background, you still need to manually modify the front-end template files, using
{% contact with name="您的自定义参数名" %}Call its syntax. If you do not explicitly call it in the template, even if it is configured on the backend, the front end will not automatically display it.Ask: Can I add multiple different account links for the same social media platform (such as Facebook)?Answer: yes. Although AnQiCMS has built-in fields like "Facebook", if you need to display a second or more Facebook accounts, you can create new custom fields (such as "SecondFacebook", "ThirdFacebook") through the "Custom Settings Parameters" feature, and fill in different links for each field.Then, call these custom parameters respectively in the template.
Ask: Can custom social media accounts automatically match the corresponding social media icons?Answer: AnQiCMS'
contactThe label is responsible for outputting the text or link data you configure in the background, and it does not provide the function of automatically matching social media icons.Social media icons usually require you to manually implement the corresponding icon display in the frontend template, based on the social media type being called (whether built-in or custom), using CSS or by introducing an icon library (such as Font Awesome).