有的同志在读分类归档的时候没有办法读到更多的内容,只能读到最近的10篇,现在安装了 PagedArchives 插件,这个问题解决了。

大家可以去这里下载这个插件,注意版本哦。

安装很简单,上传到 MT 的 cgi-bin 的 plugins 目录即可,然后在插件管理里设置下:
MT 分页插件 PagedArchives 介绍

然后设置归档模板,按分类归档日记列表,找到 <mt:Entries limit=”$limit”>,把 <mt:Entries limit=”$limit”> 修改为 <mt:Entries limit=”1000″>,在再下面 加入 <$MTPAEntry$>,找到 </mt:Entries> ,在后面加入<$MTPAEnd$>,再加入
<MTPAIfMultiplePages>
<div class=”page-archive-center”>
<MTPAPreviousPage text=”« 上一页” show=”0″>
<MTPAPageList>
<MTPANextPage text=”下一页 »” show=”0″>
</div>
</MTPAIfMultiplePages>

我的MT版本是4.31,大家可以参考下面:

<mt:Entries limit="1000">
<$MTPAEntry$>
<mt:Ignore><!-- Use the Entry Summary module for each entry published on this page --></mt:Ignore>
<$mt:Include module="日记摘要"$>
</mt:Entries>
<$MTPAEnd$>
<MTPAIfMultiplePages>
<div class="page-archive-center">
<MTPAPreviousPage text="« 上一页" show="0">
<MTPAPageList>
<MTPANextPage text="下一页 »" show="0">
</div>
</MTPAIfMultiplePages>

5 Comments

Leave a Reply to 王炜 Cancel reply