修改方法:
打开 /include/taglib/flink.lib.php 文件
找到
$attlist="type|textall,row|24,titlelen|24,linktype|1,typeid|0";
修改为
$attlist="type|textall,row|24,titlelen|24,linktype|1,typeid|0,limit|0,10";
找到
$equery = "SELECT * FROM dede_flink $wsql order by sortrank asc limit 0,$totalrow";
修改为
if(!$limit){
$equery = "SELECT * FROM dede_flink $wsql order by sortrank asc limit 0,$totalrow";
}else{
$equery = "SELECT * FROM dede_flink $wsql order by sortrank asc limit $limit";
}
调用方法:
{dede:flink limit='0,7' type='text' titlelen="24" typeid="0"}[field:link /]{/dede:flink}
{dede:flink limit='7,7' type='text' titlelen="24" typeid="0"}[field:link /]{/dede:flink}本站部分文章搜集整理于互联网或者网友提供,如有侵权请联系站长
如若转载,请注明出处:https://htmlbk.com/dedecms/590.html
温馨提示:该文档最后一次修改时间为2020-08-01 11:41:11,请注意相关的内容是否还可用!