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

实现教程

打开织梦 /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/} 条记录

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容