1.首页调用友情链接添加nofollow标签
<ul class="infoList link">
<!-- <li>{dede:flink /}</li> --!>
{dede:sql sql="select url,webname from dede_flink where "}
<li><a href="[field:url/]" rel="follow" target="_blank">[field:webname /]</a></li>
{/dede:sql}
</ul>
如果要对指定友情链接添加nofollow,添加where条件后,分开写即可。
2.首页调用交叉栏目链接
<div class="link_channel">
{dede:sql sql="select url,webname from dede_flink where typeid = (select id from dede_flinktype where typename=~typename~)"}
<a href="[field:url/]" >[field:webname/]</a> |
{/dede:sql}
</div>