# 织梦cms如何将列表页分页改为当前页数/总页数样式

*Published:* 2023-11-21
*Author:* 客服001

#### 温馨提醒

如果文章内容或图片资源失效，请留言反馈，我们会及时处理，谢谢

本文最后更新于2023年11月21日，已超过 180天没有更新



织梦列表页[分页](https://www.xarjtc.com/tag/%e5%88%86%e9%a1%b5 "查看分页此标签更多文章")样式使用 1/3 的展现形式，效果如下图所示：

[![](https://www.xarjtc.com/wp-content/uploads/2023/11/20210106134848910.jpg)](https://www.xarjtc.com/wp-content/uploads/2023/11/20210106134848910.jpg)

网站根目录找到\*\*/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);
}
```

调用方法：

当前第{dede:pageno/}页

共有{dede:totalpage/}页

共有{dede:totalresult/}条数据