首先明确下栏目的设置:
akcms的栏目设置中有别名和栏目两个字段,别名是用来做SEO的,给栏目取别的名称,栏目是用来定义URL的,我一般用栏目名称的英文或者全拼。
然后在栏目模板里使用以下分页代码:
<{getpaging page=$page
paging="[first][previous][paging][next][last]"
firstpage="$path/"
baseurl="$path/[page].html"
template="<a href='[url]'>[page]</a>"
currenttemplate="<span>[page]</span>"
previoustemplate="<a href='[url]'>上一页</a>"
noprevioustemplate="<span>上一页</span>"
nexttemplate="<a href='[url]'>上一页</a>"
nonexttemplate="<span>上一页</span>"
firsttemplate="<a href='[url]'>第一页</a>"
alreadyfirsttemplate="<span>第一页</span>"
lasttemplate="<a href='[url]'>最后一页</a>"
alreadylasttemplate="<span>最后一页</span>"
}>