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

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

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

前台效果


织梦搜索结果显示结果数量  第1张


 

实现教程

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

 

else if($tagname=="field")

 

在它的上面加入

 

else if($tagname=="itemcount")

{

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

}

 

织梦搜索结果显示结果数量  第2张

 

 

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

{dede:itemcount/}

 

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


 

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