事情:
查询列表中需要在醒目的地方单独显示查到了多少条记录。无奈dede没有提供,只有自动动手搞。
解决:
1. 找到include/arc.searchview.class.php 文件 ,找到 Display()函数,添加如下判断
代码如下:
1
2
3
4
|
else if ( $tagname == "totalcount" ) { $this ->dtp->Assign( $tagid , $this ->GetTotalResult()); } |
2.外部添加GetTotalResult()函数,函数如下:
代码如下:
1
2
3
4
|
function GetTotalResult() { return $this ->TotalResult; } |
3.模板也调用,代码如下:
1
|
{dede:totalcount/} |
以上就是dede查询列表中单独显示查到了多少条记录的全部内容,希望对大家的学习和解决疑问有所帮助。
发表评论