Does AnQiCMS support displaying a list of友情链接 links on the front end and distinguishing whether to add the nofollow attribute?

Calendar 👁️ 73

In website operation, friendship links are not only an important means to expand external resources and enhance website weight, but also the impact on search engine optimization (SEO) needs to be carefully managed. Many website administrators are very concerned about whether the content management system they use can flexibly support the display of friendship links and providenofollowThe control of properties to better balance SEO strategy and link collaboration needs.

When building a website using AnQiCMS, you will be surprised to find that the system provides very clear and convenient support for managing friend links and front-end display, and fornofollowThe fine-grained control of properties is also considered very thoroughly.

Revealing the core feature: the frontend display of friend links

A security CMS provides friend links as a core 'function management' module.This means, you can add, edit, and delete friendship links through an intuitive backend interface, including link name, link address, and remarks information.How can I display these links on the website front end after they are configured in the background?This is where the powerful template tags of AnQi CMS come into play.

By using the built-inlinkListLabel, we can easily call the friend link list at any template position on the website. Simply insert a code snippet like this where you need to display the friend links:

{% linkList friendLinks %}
    {% if friendLinks %}
    <div>
        <span>友情链接:</span>
        {# 这里将遍历后台添加的所有友情链接 #}
        {% for item in friendLinks %}
            <a href="{{item.Link}}" target="_blank">{{item.Title}}</a>
        {% endfor %}
    </div>
    {% endif %}
{% endlinkList %}

In this code block,friendLinksIt is a variable name we define, which carries all the friend link data obtained from the background. Then, throughforLoop throughfriendLinks, we can pick out each friend link one by one.Title(link name) andLink(Link address), and render it into the HTML structure we want, such as a simple text link list.This method is not only flexible, but also separates content from presentation, even if the front-end structure needs to be adjusted, it only needs to modify the template file without changing the background data.

SEO optimization tool: The flexible application of the nofollow attribute

For SEO, the links'nofollowAn attribute is crucial. It tells search engines not to pass the 'weight' or 'trustworthiness' from your website to the linked websites, which is typically used to handle paid links, untrusted external links, or user-generated content links.AnQi CMS provides access tonofollowdirect control of the attribute.

When adding or editing a friend link in the background, you can set whether to add each link separatelynofollowProperty. What is more pleasing is that this setting can be directly linked in the front-end template to judge and apply data items.NofollowProperty to judge and apply.

Let's see how to implement this fine-grained control in the template:

{% linkList friendLinks %}
    {% if friendLinks %}
    <div>
        <span>友情链接:</span>
        {% for item in friendLinks %}
            {# 根据item.Nofollow的值,条件性地添加rel="nofollow"属性 #}
            <a href="{{item.Link}}" {% if item.Nofollow == 1 %} rel="nofollow"{% endif %} target="_blank">{{item.Title}}</a>
        {% endfor %}
    </div>
    {% endif %}
{% endlinkList %}

In this optimized code segment,{% if item.Nofollow == 1 %}Judgment statements are crucial. When the backend selects the "nofollow" option for a friend link,item.Nofollowthe value will be1In this case,rel="nofollow"the attribute will be automatically added to the link's<a>Tagged. Conversely, if not checkednofollow,item.NofollowThe value is0the link will not carry this attribute, passing the weight normally.

this out-of-the-boxnofollowThe control ability gives website operators great flexibility, allowing them to accurately manage each link based on the actual cooperative relationship, link quality, and SEO strategy.

Practical Application: Build a More Professional Friendship Link Area

This combination of functions in Anqi CMS means you can build a friendship link area that is both beautiful and SEO compliant. For example, for those sites that have been long-term partners and have good reputations, you can choose not to addnofollowTo promote weight transmission; for some advertising cooperation, short-term promotion, or links whose content quality is yet to be examined, it can be selected by checkingnofollowTo avoid potential SEO risks and maintain the link health of your own website.

In summary, Anqi CMS in the display of friend links andnofollowThe property control is done very well. It not only provides simple and easy-to-use template tags to dynamically display link lists on the front end, but also through built-inNofollowThe field allows website operators to flexibly and accurately manage the SEO behavior of each link exchange according to specific needs.This undoubtedly provides strong support for us to build a professional, efficient, and SEO-friendly website.


Frequently Asked Questions (FAQ)

Q1: How to add or edit友情链接 in AnQi CMS backend?A1: You can find the "Friend Link Management" option in the "Function Management" menu of the background management interface. Here, you can easily add new friend links, fill in the link title, link address, notes, and check whether to add it.nofollowProperties, you can also edit or delete existing links.

Q2: Besidesnofollowwhether the friend link supports otherrelProperties, or customize other link properties?A2: Anqi CMS'slinkListThe label mainly built-in toNofollowSupport for properties. If you need to add otherrelproperties such asnoopener/noreferrer) or other custom link attributes, you can modify them manually in the template<a>The rendering logic of the tag, directly intarget="_blank"Add the properties you need after that, but this requires a certain ability to modify templates. For example,target="_blank" rel="noopener noreferrer".

Q3: If I don't want to set it manuallynofollowDoes Anqi CMS automatically add to all external linksnofollowfunction?A3: The Anqin CMS provides an option for 'whether to automatically filter external links' under 'Content Settings' in the 'Background Settings'. If 'Do not filter external links' is selected, the system will automatically add external links to the document content.rel="nofollow"Label. However, this only applies to links within the article content, not the friend links.nofollowThe properties still need to be configured separately in the "Friend Link Management" to provide finer control.

Related articles

How to generate a clickable table of contents (TOC) based on the title structure of the article content?

In AnQiCMS (AnQiCMS), generating a clickable table of contents (Table of Contents, TOC) for your article detail page is a very practical feature.It can not only significantly improve the reading experience of users, help readers quickly locate the chapters of interest, which is particularly important for long content, but also optimize the page SEO performance to a certain extent.The Anqi CMS provides very practical mechanisms to help us achieve this, the core lies in the clever use of the title structure of the article content.###

2025-11-09

How does AnQiCMS manage and display single-page content, such as 'About Us' or 'Contact Information'?

In website operations, single-page content such as "About Us", "Contact Information", "Service Introduction", and "Privacy Policy" is a core element in building the basic information of the website, enhancing user trust, and facilitating users in quickly obtaining information.These pages usually have fixed content, but their importance is self-evident.AnQiCMS provides an intuitive and powerful single-page management mechanism that allows you to easily create, manage, and display these key contents.### Create and Edit Single Page Content: Starting from the Backend Manage Single Page Content in Anqi CMS

2025-11-09

How to customize the shutdown prompt displayed to users when the website is closed?

During the operation of the website, we sometimes encounter situations where we need to temporarily close the website, such as system upgrades, server migrations, major content adjustments, or simply brief technical maintenance.How can you clearly and friendliness convey the current status of the website to the visitors at this time and provide necessary information, which is particularly important.AnQiCMS provides comprehensive shutdown management functions for website administrators, allowing us to easily set the shutdown status of the website and highly customize the display of shutdown prompt information.### Enable website shutdown feature When your website needs to be temporarily offline

2025-11-09

How to implement the 'Recommended Attribute' feature of AnQiCMS for displaying article categories on the front end (such as headlines, recommendations)?

AnQiCMS provides rich and flexible tools for the organization and display of website content, among which the "recommendation attribute" feature is a very practical design.It allows us to add special tags to articles for classification display on the website front end, such as highlighting 'headlines' articles or displaying 'recommended' content in specific areas. ### Understanding "Recommended Properties" The "Recommended Properties" in AnQiCMS essentially act as metadata tags for articles, used to describe the characteristics or importance of the articles.In the background content management interface, when you edit or publish an article

2025-11-09

How to configure and manage the website's home page TDK (Title, Description, Keywords) to optimize search engine display?

What is the first impression of your website on search engines? Usually, it is TDK: Title (Title), Description (Description), and Keywords (Keywords).These seemingly simple pieces of information are, in fact, the key to search engines understanding the content of your website and deciding whether to display it to users.They are not only technical configurations, but also the precise extraction of the core value of your website, which directly affects the user's choice in a vast number of search results.AnQiCMS (AnQiCMS) is a content management system tailored for small and medium-sized enterprises and content operation teams

2025-11-09

How does AnQiCMS handle external links in content, is it retained directly or automatically added nofollow attribute?

In website operation, the management of external links is a detail that cannot be ignored. It not only relates to user experience but is also an important part of SEO strategy.We often ponder: When publishing content, how will AnQiCMS handle links to other websites included in the article?Is it simply to keep it as it is, or will it intelligently add the `nofollow` attribute, even directly remove these links?AnQiCMS provides a clear and powerful control strategy for handling external links in content

2025-11-09

How to implement batch management and classification of image resources in AnQiCMS for easy front-end calls?

In today's era where content is king, images, as an important carrier of information, directly affect the user experience and operation efficiency of the website through their management and call efficiency.For AnQiCMS users, batch management and flexible invocation of image resources are not difficult things.This system not only provides intuitive and convenient background operations, but also enhances the brilliance of image resources when presented on the front end through intelligent image processing and rich template tags.### Build a comprehensive image library: from batch upload to precise classification The richness of website content depends on a large amount of image materials, and how to organize these materials efficiently

2025-11-09

Does AnQiCMS support automatically converting uploaded JPG/PNG images to WebP format to improve page loading speed?

The importance of page loading speed in website operation is self-evident.A fast-loading website not only improves user experience and reduces bounce rate, but is also one of the key factors in search engine optimization (SEO).Images are an important part of web content, and their loading efficiency directly affects the overall performance of the page.Therefore, converting traditional JPG/PNG images to the smaller and more efficient WebP format has become the mainstream trend of website optimization.When using the AnQiCMS website management, if you have ever been confused about how to automatically optimize the uploaded images

2025-11-09