What are the differences and similarities in the calling methods of links in templates for social media such as `Tiktok` and `Pinterest`?

Calendar 👁️ 82

As an experienced website operations expert, I have a deep understanding of the design concept and actual operation of AnQiCMS in social media link calling. Facing likeTiktokandPinterestThis increasingly important social platform, AnQiCMS provides a set of efficient and flexible template calling mechanisms. Today, let's delve deeper into, in AnQiCMS,TiktokandPinterestWhat are the similarities and differences in calling methods for social media links across different platforms.


Unlock social media: Template call parsing for Tiktok and Pinterest links in AnQiCMS

In the wave of today's digital marketing, social media has become an indispensable channel for enterprises to connect with users and promote their brands. Whether it is a short video giantTiktokor a treasure trove of visual inspirationPinterestThey all carry huge traffic and user interaction potential.For website operators, how to efficiently and conveniently integrate links to these social platforms into the website is the key to improving user experience and traffic conversion.AnQiCMS is a content management system centered around user needs and provides an intuitive and powerful solution in this regard.

How AnQiCMS manages social media links uniformly

AnQiCMS has unified links to various social media platforms into the "Contact Settings" module for management. This means that whether it is traditional phone, email, or emergingTiktok/PinterestAccounts, they are all considered important "contact methods" for corporate communication.This centralized management method greatly simplifies the work of operations personnel, all external link configurations and modifications can be completed in the same place, without delving into the code or searching for scattered settings.

In the background, you can find specially designed forTiktok/PinterestFields preset by mainstream social platforms. Operators only need to fill in the complete link to the social media homepage in the corresponding field, and the system will automatically save it.This preset field design reflects AnQiCMS's keen insight into mainstream social trends and also provides a standardized data source for subsequent template calls.

Template calling method for Tiktok and Pinterest links

In the AnQiCMS template files, callTiktokandPinterestThe link method is very concise and clear, mainly through built-incontacttags to implement. This tag is specifically used to obtain various information configured in the background "Contact Information Settings".

If you want to display a link in the templateTiktokyou can use it like thiscontactTags:

{% contact with name="Tiktok" %}

Or, if you want to assign the link you get to a variable so that you can build a clickable icon in HTML, you can do it like this:

{% contact contactTiktokLink with name="Tiktok" %}
<a href="{{ contactTiktokLink }}" target="_blank" rel="nofollow">
    <img src="你的Tiktok图标路径.png" alt="Tiktok" />
</a>

The same logic also applies toPinterest:

{% contact with name="Pinterest" %}

Or:

{% contact contactPinterestLink with name="Pinterest" %}
<a href="{{ contactPinterestLink }}" target="_blank" rel="nofollow">
    <img src="你的Pinterest图标路径.png" alt="Pinterest" />
</a>

These code snippets will directly output the contact information you entered in the background "Contact Settings".TiktokorPinterestHome page link string. You just need to embed them into<a>label'shrefProperties, and pair with the corresponding icons or text, can be displayed on the website front-end.

Differences in linking calls with other social media platforms

Understood in depth.TiktokandPinterestAfter the calling method, let's compare the similarities and differences in the social media link calls in AnQiCMS.

Similarities:

  1. Unified management entry:whether it isTiktok/Pinterest/Facebook/Twitter/LinkedIn/Instagram/Youtube/QQ/WhatsAppAnd, AnQiCMS will classify their link configurations uniformly into the 'Contact Information Settings'. This centralized management model ensures operational efficiency and consistency in configuration.
  2. samecontactLabel structure:The basic syntax structure called in the template for all social media platforms supported by AnQiCMS built-in are{% contact with name="字段名称" %}. The only difference lies innameThe field name following the parameter, for examplename="Facebook"/name="Twitter"This makes the learning and usage threshold very low, once you master the call of one platform, you can also understand other platforms by analogy.
  3. The standardization of output results:The output of these tags is usually pure link strings (URL), which is convenient for front-end developers to use ashrefAttribute value, flexibly embedded in various HTML elements (such as text links, icon links).
  4. Supports custom social platforms:Even if AnQiCMS adds new social platforms in the future, or if some regions are popular with niche platforms, we can manually add new social media fields through the "Contact Information Settings" "Custom Parameter Settings" feature, and configure links for them. Although the tag used will change to{% diy with name="自定义参数名" %}However, the idea of unified configuration in the background and unified calling in the front-end is consistent.

Differences:

  1. Distinction between built-in fields and custom fields: TiktokandPinterestMost mainstream platforms have custom field names set by AnQiCMS (such asTiktok/Pinterest),directly fill it in the background. And for social platforms not built into AnQiCMS (such as a local social application), you need to manually add them through the "Custom Settings" function, and the tags are also called fromcontactchanges todiy.
  2. nameThe difference in parameter values:This is the main difference. Built-in fields use their platform name asnameparameter values, such asname="Tiktok"; whereas custom fields use the 'parameter name' you set in the background, such asname="MySocialApp".
  3. The trade-off between flexibility and convenience:The built-in fields provide out-of-the-box convenience, just fill in the link.Custom fields provide greater flexibility, can meet various unique needs, but require an additional step of defining 'parameter name'.

Practical application suggestions

In actual operation, integrating these social media links into the website usually involves the following common scenarios:

  • Footer:Social media icons are usually placed here, clicking on the icon will jump to the corresponding social media homepage.
  • Header:Some websites display important social media entries at the top.
  • Contact us page:Add social media links to the detailed contact information list.
  • Article share button:Although AnQiCMS may provide independent sharing features, you can also use these links to create simple 'Follow Me' buttons.

Please note when using these links:

  • Icon beautification:Combine CSS and font icons (such as Font Awesome) or custom image icons to make social media links more attractive.
  • Open in a new window:Suggest to addtarget="_blank"the attribute to<a>the tag, make sure that the social media page opens in a new window when the user clicks on it, to avoid the user leaving your website.
  • SEO consideration:For external links, it is usually addedrel="nofollow"Attribute, inform the search engine not to pass weight. AnQiCMS inlinkListThe tag already hasNofollowAttribute support, forcontactThe tag output link, needs to be added manually.

In summary, AnQiCMS in the template call of social media links, whether it isTiktokandPinterestWhether it is other built-in or custom platforms, they all show a high degree of unity and the convenience of operation. ThroughcontactanddiyThese core tags allow operators to easily achieve seamless connection between websites and social media, providing users with a richer interactive experience.


Frequently Asked Questions (FAQ)

  1. Q: How do I display social media icons instead of plain text links?A: AnQiCMS'contactTags are responsible for outputting the URL string of social media. To display the icon, you need to combine front-end HTML and CSS technology. The usual practice is to put a<a>tag inside a<img>Label (point to your social media icon image) or a font icon (such as using Font Awesome provided social icon classes), and<a>label'shrefset the attribute tocontactLabel the output link.

  2. Q: Does AnQiCMS support adding some non-mainstream social media platform links?A: Yes, AnQiCMS is very flexible. Besides likeTiktokandPinterestIn addition to the built-in mainstream platform fields, you can also use the "Custom Setting Parameters" feature in the "Contact Information Settings" to add any social media platforms you need. Just set a "Parameter Name" and the corresponding "Parameter Value" link, and then use `{% diy with name="` in the template.

Related articles

How to display the YouTube channel link set in the AnQiCMS backend and ensure the validity of the link?

As an experienced website operation expert, I am well aware of the importance of gathering the brand's influence from various platforms to the official website.The YouTube channel as the core battlefield for video content marketing, the effective display and management of its link is particularly crucial in content management systems like AnQiCMS.Today, let's delve into how to set up and accurately display your YouTube channel link on the AnQiCMS backend.### Make your YouTube channel shine on the AnQiCMS website

2025-11-06

How to individually and safely call the QQ contact number and generate a click link in AnQiCMS templates?

As an expert well-versed in website operations, I am willing to give you a detailed explanation of how to conveniently and relatively safely call a QQ contact number and convert it into a user-friendly clickable link in the AnQiCMS template.This not only enhances user experience, but also balances information protection.In AnQiCMS template, call the QQ contact number separately and safely to generate a click link In modern website operations, providing convenient contact methods is a key factor in improving user experience and promoting business transformation.QQ is a commonly used instant messaging tool in China

2025-11-06

How to create a "Contact Us" single page and dynamically embed all contact tags in AnQiCMS?

As an experienced website operations expert, I fully understand the importance of an efficient and easy-to-maintain 'Contact Us' page for any corporate website.In a powerful and flexible content management system like AnQiCMS, creating such a page and dynamically embedding contact information can not only enhance the user experience but also greatly simplify future content update work.Today, let me guide you step by step to achieve this goal.

2025-11-06

I entered HTML code in the contact information field, will the `contact` tag be safely parsed and displayed?

As an experienced website operations expert, I am well aware of the key role played by the Content Management System (CMS) in website security and content display.When it comes to user input and front-end display, especially for fields like contact information that may contain sensitive or dynamic information, how the underlying HTML code is handled is an important indicator of the security of a CMS system.Today, let's delve into the performance of AnQiCMS in handling HTML code in the 'Contact Information' field.

2025-11-06

Can I flexibly implement the `contact` tag of AnQiCMS to display multiple WhatsApp contacts on the page?

How to flexibly display multiple WhatsApp contacts in AnQiCMS?Unlock the advanced usage of the `contact` tag In today's global business environment, WhatsApp has become an important tool for efficient communication between businesses and customers.Whether it is for sales consultation, customer service, or specialized support for different products or regions, businesses may need to display multiple WhatsApp contact methods on their websites.The Anqi CMS is a powerful and flexible content management system that naturally also provides a convenient way to display contact information.

2025-11-06

How to ensure that all external social media links called by the `contact` tag open in a new window when clicked?

As an experienced website operations expert, I am well aware of the importance of website details for user experience and brand image.In content operation, we often need to guide users to visit external social media platforms to expand influence or provide more interactive channels.AnQiCMS (AnQiCMS) takes advantage of its flexible template tag system, making such operations intuitive and efficient.However, a common detail that is often overlooked is: How to ensure that these external links open in a new window or tab when clicked, thus avoiding users leaving your main site?Today, let's delve deeply into this issue

2025-11-06

What is the core use of the `{% diy %}` custom content tag in AnQiCMS?

## Core Usage Deep Analysis of Custom Content Tags in Anqi CMS `{% diy %}` As an experienced website operations expert, I fully understand the importance of a flexible and scalable content management system for efficient website operations.AnQiCMS (AnQiCMS) stands out among many CMS products with its powerful customization capabilities.In its rich template tag system, the `{% diy %}` (Do It Yourself) custom content tag is undoubtedly a core tool for achieving high website personalization and operational efficiency optimization.

2025-11-06

How to use the `{% diy %}` tag to display custom information configured on the back-end page?

As an experienced website operations expert, I fully understand how important the flexibility and update efficiency of website content are in the increasingly fierce online competition.AnQiCMS (AnQiCMS) with its powerful functions and friendly template system provides us with many operational tools.Today, let's delve into one of the very practical 'magic box' - the `{% diy %}` tag, and see how it helps us easily control the custom information of the front-end page, making website content operation more intelligent and efficient.

2025-11-06