1、
[e:loop={'selectsearchid,keyboardfromphome_enewssearchorderbyrand()limit10',10,24,0}]
<ahref="[!--news.url--]e/search/result/?searchid=<?=$bqr['searchid']?>"target="_blank"><?=esub($bqr['keyboard'],10)?>...</a>
[/e:loop]
2、增加显示搜索关键字数量
[e:loop={"select searchid,keyboard,result_num from phome_enewssearch where iskey=0 order by onclick desc limit 10",10,24,0}]
<a href="/e/search/result/?searchid=<?=$bqr[searchid]?>" target="_blank"><?=$bqr[keyboard]?></a>(记录数:<?=$bqr[result_num]?>条)
[/e:loop]
指定一个栏目where iskey=0 and classid=1
指定多个栏目where iskey=0 and classid in(1,2,3……..)
效果:
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)