首页 > Typecho如何单独输出totalPage

Typecho如何单独输出totalPage

我知道,可以用<?php echo $this->_currentPage; ?>单独输出当前页码,但是当前总页数totalPage如何单独输出呢?
ps:版本为Typecho 0.8/10.8.15


当前页码:<?php if($this->_currentPage>1) echo $this->_currentPage; else echo 1;?>
总页码:<?php echo ceil($this->getTotal() / $this->parameter->pageSize); ?>

针对typecho1.0的不知道对于0.8好用不,你可以试试

来自文章:http://qqdie.com/archives/typecho-the-current-page-number-and-total-page-number-is-implemented/

【热门文章】
【热门文章】