How does Anqi CMS display and manage website friend links?

Calendar 👁️ 72

In website operation, friendship links play an important role. They not only help to improve the search engine ranking (SEO) of the website, but also bring valuable traffic and are also a reflection of cooperation and mutual trust between websites.A enterprise CMS deeply understands this, providing a intuitive and efficient friend link management and display solution for website operators, allowing you to easily master this feature.

Next, we will delve into how to manage the link function of Anqi CMS in the background, and how to flexibly display it on the website front-end, providing you with a detailed explanation of its function.

Manage friend links: Overview of background operations

It is very simple to manage friend links in AnQi CMS.You can find 'Function Management' in the left navigation bar of the background management interface, click on it, and you will see the option 'Friendship Link Management'.

After entering the friend link management page, you will see a clear list displaying all the friend links that have been added.To add a new link, just click the "Add New Link" button.This is when you will see several key input items:

  • Link Name (Title): This is the text name displayed to visitors on your website for the friend link, such as 'AnQi CMS Official Website'.
  • Link AddressThis is the actual URL pointed to by the friend link, please be sure to fill in the complete and correct address, for examplehttps://en.anqicms.com.
  • Remark for LinkThis is an optional internal note field, usually used to record additional information for links, such as the name of the partner, contact information, etc. These details are not displayed on the website frontend by default.
  • Nofollow (Nofollow)This is a very important SEO setting. When you check this option, Anqi CMS will automatically add the link to the friend link.rel="nofollow"Property.This means you are telling the search engine not to pass the weight of your website ("link juice") to this link.This is very useful for pointing to some links you do not want to pass weight, or simply for the purpose of cooperation, which helps protect the SEO health of your website.

All added friendship links will be clearly displayed in this list, and you can edit, delete, or adjust the order at any time to ensure the timeliness and accuracy of the friendship link content.It is worth mentioning that Anqi CMS also supports adding and deleting friend links through API, which provides greater flexibility for users with specific automation needs.

Display friendship links: let them shine on the website

Let these carefully selected友情links be displayed on the front end of your website, Anqi CMS provides a simple and powerful template tag——linkList. This tag allows you to call the friend link data in any template file of the website and display it in the style you want.

Generally, friend links appear in the footer area of a website or on a separate "friend links" page. You only need to display the friend links in the template files where they are required (such as the footer filepartial/footer.htmlorindex.htmlInsert a code snippet like this one:

{% linkList friendLinks %}
{% if friendLinks %}
<div class="footer-links">
    <h4>友情链接</h4>
    <ul class="friendship-links-list">
        {% for item in friendLinks %}
        <li><a href="{{item.Link}}" {% if item.Nofollow == 1 %} rel="nofollow"{% endif %} target="_blank">{{item.Title}}</a></li>
        {% endfor %}
    </ul>
</div>
{% endif %}
{% endlinkList %}

Let's go into a detailed explanation of this code:

  1. {% linkList friendLinks %}This is the start tag of the link list call:friendLinksIs a variable name you define, all the friendship link data obtained will be stored in this variable.
  2. {% if friendLinks %}and{% endif %}: This is a conditional judgment, used to check.friendLinksDoes the variable have data. If there is a link to friendship, the internal code will be executed, otherwise, the area of friendship links will not be displayed to avoid blank pages or errors.
  3. {% for item in friendLinks %}and{% endfor %}This is a loop label, it will iterate overfriendLinksEach friendship link data. In each loop, the current friendship link data will be assigned toitemVariable.
  4. <li><a href="{{item.Link}}" ...>{{item.Title}}</a></li>: This is the specific display code for each friendship link.
    • {{item.Link}}: It will display the link address you set in the background.
    • {{item.Title}}: It will display the link name you set in the background.
    • {% if item.Nofollow == 1 %} rel="nofollow"{% endif %}This line of code will intelligently add or remove the 'Nofollow' option you set in the backgroundrel="nofollow"Property. If the Nofollow option is checked in the background, this property will be output, otherwise it will not.
    • target="_blank"This is an HTML attribute that is usually used for friendship links, indicating that when the link is clicked, it will open in a new window or tab to keep the visitor on your site.

In this way, you can fully control the display style and layout of the friend links, whether it is a simple text link or combined with CSS styling, it can be easily achieved.The AnQi CMS template engine supports Django template engine syntax, giving you great freedom in content display.

Friend link operation tips

  • Regular checks: The validity and quality of the friendship link will change over time.It is recommended to regularly check that all友情链接 are still valid and content is healthy, to avoid dead links or bad links affecting your website's image and SEO.
  • Maintain relevance: Try to exchange friend links with websites related to your website content or industry. This not only helps with SEO, but also provides visitors with more valuable extended reading or services.
  • Use Nofollow Appropriately: For links you do not fully understand or do not want to pass weight to, be sure to check the Nofollow option.For high-quality, mutually beneficial cooperation links, it can be unchecked to allow the normal transmission of weight.

Through AnQi CMS, the management and display of friend links become extremely simple.No matter if you are running a small and medium-sized enterprise website, a personal blog, or an industry portal, AnQi CMS can help you efficiently utilize the important SEO tool of友情链接, bringing more value to your website.


Frequently Asked Questions (FAQ)

Question: What is the specific role of the 'Nofollow' attribute in friendship links? When should I use it?Answer: The Nofollow attribute tells search engines not to pass the 'weight' (also known as 'link juice') of your website to the link.Its main function is to prevent websites from being penalized by search engines for linking to low-quality or irrelevant websites, and it can also prevent the valuable SEO weight from being unintentionally scattered.You should use Nofollow in the following situations: linking to sponsored content, advertisements, user submitted links in comment sections, pointing to external websites you do not fully trust or do not want to endorse, or simply to prevent search engines from tracking the link.

Ask: If my website has many friend links, is it convenient to manage on the Anqi CMS backend?Answer: The Anqi CMS' friend link management interface is designed simply and intuitively, all friend links are displayed in a list, and you can clearly see the link name, address, and Nofollow status.You can edit or delete any link as needed.Although there is no direct grouping feature provided, you can make use of the "link note" field for internal marking and display filtering or classification based on the note content in the frontend template (if there is a second development), thereby achieving more fine-grained management.

Ask: Can I add elements other than text in the friend links, such as images?Answer: The default friend link management on Anqi CMS backend mainly supports the names and links of text links.If you need to add an image link, this usually requires some customization at the template level.You can fill in the image description in the link name in the background, and fill in the image link in the link address field.Then in the front-end template, you can{{item.Title}}Replace<img src="{{item.Link}}" alt="{{item.Title}}" />This method requires you to manually maintain the image URL, but it provides greater flexibility.

Related articles

How to display a list of recommended content related to the current article?

In content operation, guiding users to discover more interesting content is one of the key strategies to enhance user experience and extend the time spent on the website.AnQiCMS (AnQiCMS) provides very flexible and powerful features, helping us easily achieve the goal of displaying a list of recommended content related to the current article.Why is it necessary to have relevant recommended content?

2025-11-08

How to display the link to the previous and next article on the Anqi CMS content page?

In AnQi CMS, it is a common need to add navigation links for "Previous Article" and "Next Article" to enhance the user experience of the website and the efficiency of internal links.These links not only help visitors browse related content more smoothly, but also have a positive impact on the website's SEO performance.AnQi CMS provides a set of intuitive template tags that allow you to easily display these navigation features on the content detail page.### Core Function: Use `prevArchive` and `nextArchive` tags Anqi CMS passes through

2025-11-08

What tags does Anqi CMS provide to display content publishing or update time information?

In website content operation, the time of content release and update is a key factor in conveying information timeliness and establishing user trust.For search engine optimization (SEO), clear time information also helps improve the freshness score of the content.Anqi CMS is well-versed in this, providing users with flexible and diverse tags and methods to accurately and beautifully display these time information on the website front-end.Next, we will explore how Anqi CMS helps us manage and display the content publication and update time.###

2025-11-08

How to judge conditions in templates and dynamically display different content blocks based on logic?

In AnQiCMS, flexibly controlling the display of web page content is the key to website operators creating personalized, high-efficiency websites.The AnQiCMS template engine provides rich logical judgment and dynamic content display capabilities, allowing us to present content intelligently according to different conditions, greatly enhancing user experience and website adaptability.AnQiCMS' template syntax is clever, it absorbs the advantages of the Django template engine while also taking into account the characteristics of the Go language.

2025-11-08

How to display the list of user comments on articles in AnQi CMS?

In AnQi CMS, allowing users to comment on articles and clearly displaying these comments is an important aspect of enhancing the interactivity and user engagement of the website.AnQiCMS's powerful template engine and built-in features make this process flexible and efficient.This article will introduce in detail how to integrate the comment list and its related functions on the article detail page.

2025-11-08

How to build and display a custom field comment form on the front-end page?

When you want website visitors to be able to interact with you, such as submitting questions, providing feedback, or making appointments, a well-functioning contact form is essential.AnQiCMS provides a very flexible and powerful message management function, the core of which is to support custom message fields, allowing you to build personalized forms according to your actual business needs.This article will guide you on how to build and display these comment forms with custom fields on the front-end page.Why do you need a custom message form?

2025-11-08

How to display system-level configurations such as the website logo, filing number, copyright information, etc.

The brand identity, legal statements, and core contact information, such as Logo, filing number, and copyright information, are an indispensable part of the professional image of a website.They not only convey trust and standardization to visitors, but are also important aspects of search engine optimization and legal compliance.In Anqi CMS, managing and displaying these system-level configurations becomes extremely intuitive and efficient. ### Backend Settings: The "Control Center" of Website Information AnQi CMS concentrates these core website information in the "Global Settings" of the backend, making management clear at a glance.

2025-11-08

How to embed and display mathematical formulas or flowcharts from the Markdown editor in the content?

In modern content operation, the professionalism and readability of the content are equally important.Especially when our website involves fields such as science, education, engineering, and so on, how to clearly and beautifully present complex mathematical formulas or logically rigorous flowcharts in articles often becomes the key to improving user experience.AnQi CMS understands this need, integrating a powerful Markdown editor and combining it with simple frontend configuration, allowing your website to easily present these professional contents.### First Step

2025-11-08