帝国CMS灵动标签不显示重复标题信息调用

  • 方法一:PHP 处理
<?php $cfbt = "|"; ?> [e:loop={'11,14,17,18,',22,0,0,'firsttitle=0','newstimeDESC'}] <?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]
  • 方法二:数据库处理
[e:loop={'11,14,17,18,',22,0,0,'groupbytitle','newstimeDESC'}] <a href="<?=$bqsr['titleurl']?>"><?= $bqr['ftitle'] ? $bqr['ftitle'] : esub($bqr['title'], 60) ?></a> [/e:loop]

 

wx.jpg ywfw.jpg
热门