Skip to main content
 Web开发网 » 站长学院 » 织梦教程

织梦搜索结果显示结果数量方法

2020年09月12日7890百度已收录

实现教程

 

打开织梦 /include/arc.searchview.class.php 找到

 

在它的上面加入

 

else if($tagname=="itemcount")

{

$this->dtp->Assign($tagid,$this->TotalResult);

}

织梦搜索页模板里调用标签写法

 

{dede:itemcount/}

例如

 

搜索 <strong>{dede:global name='keyword' function='RemoveXSS(@me)'/}</strong> 的结果 共有 {dede:itemcount/} 条记录


 

评论列表暂无评论
发表评论
微信