帝国cms灵动标签如何实现调用去除重复标题?
[e:loop={'11,14,17,18,',22,0,0,'firsttitle=0','newstime DESC'}]
<a href="<?=$bqsr['titleurl']?>"><?=$bqr[ftitle]?$bqr[ftitle]:esub($bqr[title],60)?></a>
[/e:loop]
解决方法:
<?php
$cfbt="|";
?>
[e:loop={'11,14,17,18,',22,0,0,'firsttitle=0','newstime DESC'}]
<?php
if(stristr($cfbt,"|".$bqr['title']."|"))
{
continue;
}
$cfbt.=$bqr['title']."|";
?>
<a href="<?=$bqsr['titleurl']?>"><?=$bqr[ftitle]?$bqr[ftitle]:esub($bqr[title],60)?></a>
[/e:loop]
留言与评论(共有 0 条评论) |