Friendship Links Label

Description: Used to get the friend link list

Usage:{% linkList 变量名称 %}If the variable is defined as friendLinks{% linkList friendLinks %}...{% endlinkList %}

linkList supports the parameters

  • Site IDsiteId siteIdGenerally, it is not necessary to fill in, if you use the multi-site management on the backend to create multiple sites and want to call data from other sites, you can specifysiteIdTo call the data of the specified site.

linkList will get all the friend links.

friendLinks is an array object, therefore it needs to useforloop to output

item is the variable in the for loop body, available fields include: :

  • Link NameTitle
  • Link AddressLink
  • Link noteRemark
  • Link nofollowNofollow

Example Code

{% linkList friendLinks %}
{% if friendLinks %}
<div>
    <span>友情链接:</span>
    {% for item in friendLinks %}
    <a href="{{item.Link}}" {% if item.Nofollow == 1 %} rel="nofollow"{% endif %} target="_blank">{{item.Title}}</a>
    {% endfor %}
</div>
{% endif %}
{% endlinkList %}