织梦栏目列表、TAG列表和搜索结果单独输出当前页码、总页码、文档总数
栏目列表页实现教程
打开 /include/arc.listview.class.php 找到 (大约在673行)
else if($PageNo!=1 && $ctag->GetName()=='field' && $ctag->GetAtt('display')!='')
在它上面加入
else if($ctag->GetName()=="pageno"){$this->dtp->Assign($tagid,$this->PageNo);}else if($ctag->GetName()=="totalpage"){$this->dtp->Assign($tagid,ceil($this->TotalResult/$this->PageSize));}else if($ctag->GetName()=="totalresult"){$this->dtp->Assign($tagid,$this->TotalResult);}
如图
TAG标签列表页实现教程
打开 /include/arc.taglist.class.php 找到 大概在 253 行
else if($ctag->GetName()=="pagelist")
在它上面加入
else if($ctag->GetName()=="pageno"){$this->dtp->Assign($tagid,$this->PageNo);}else if($ctag->GetName()=="totalpage"){$this->dtp->Assign($tagid,ceil($this->TotalResult/$this->PageSize));}else if($ctag->GetName()=="totalresult"){$this->dtp->Assign($tagid,$this->TotalResult);}
如图
搜索结果页实现教程
打开 /include/arc.searchview.class.php 找到 (大概在542行)
else if($tagname=="field")
在它上面加入
else if($ctag->GetName()=="pageno"){$this->dtp->Assign($tagid,$this->PageNo);}else if($ctag->GetName()=="totalpage"){$this->dtp->Assign($tagid,ceil($this->TotalResult/$this->PageSize));}else if($ctag->GetName()=="totalresult"){$this->dtp->Assign($tagid,$this->TotalResult);}
如图
栏目列表模板、TAG列表页和搜索结果页模板调用标签统一写法
当前第{dede:pageno/}页 共有{dede:totalpage/}页 共有{dede:totalresult/}条数据
免责声明:本文由 一秒搜在https://www.1miaoseo.com发布,不代表SEO优化_织梦仿站[低至599]_网络营销推广服务-一秒搜立场。
本站所发布文章和图片均来自用户分享和网络收集,https://www.1miaoseo.com/seojc/seojq_1394.html文章和图片版权归原作者及原出处所有,仅供学习与参考,请勿用于商业用途,如果损害了您的权利,请联系网站客服处理。