Description: Used to obtain the friendship link list
Usage:{% linkList 变量名称 %}If the variable is defined as friendLinks{% linkList friendLinks %}...{% endlinkList %}
linkList supported parameters are
- Site ID
siteIdsiteIdGenerally, it is not necessary to fill in. If you have created multiple sites using the multi-site management on the backend and want to call data from other sites, you can do so by specifyingsiteIdTo implement the call to data from a specified site.
linkList will retrieve all the friend links.
friendLinks is an array object, therefore it needs to beforin a loop to output
item is the variable within the for loop, the available fields are: :
- link name
Title - Link address
Link - link remark
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 %}