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 ID
siteIdsiteIdGenerally, 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 Name
Title - Link Address
Link - Link note
Remark - Link nofollow
Nofollow
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 %}