Version 5.1.5

{ openzc:pagelist }

pagelist:当前分类分页调用,只能在分类页面使用

字段名称 说明
[field:page_link/]分页链接
[field:page_name/]分页名称
[field:page_range/]当前文章展示范围
[field:page_arctotal/]总共文章数量
[field:page_count/]页面数量
参数名称 参数值 说明
listitemfirst(首页)|prev(上一页)|next(下一页)|list(正常列表)|last(末页)内置固定分页模板调用
listsize5分页显示页数跨度,超过就显示省略号
customtest自定义分页模板标签
tplnew_pagelist.tpl自定义分页模板文件
① pagelist分页模板自定义

在分类页面自定义分页模板,模板存放位置 “includes/template/YOUR_TEMPLATE/html/modules/tpl/blogpage.tpl”

分页固定标签: prev(上一页) / next(下一页) / list(列表) / first(首页) / last(末尾) / active(当前状态,该参数不用填)
自定义标签: 自定义标签名称

常用固定分页调用:
自定义调用:( 格式 { openzc:pagelist custom="自定义标签名称"/} )

① Showing 1-0 of 0 item(s)
② There are 0 products.
③ 当前范围(1-0) 总计(0)


          
<!-------------------------前端调用代码------------------------------->
常用固定分页调用:<br/>
<nav aria-label="Page navigation example" class="mt-3">
	<ul class="pagination pagination-circle">
	{openzc:pagelist listitem="first,prev,list,next,last" listsize="5"/}
	</ul>
</nav>
自定义调用:( 格式 { openzc:pagelist custom="自定义标签名称"/} )<br/>
<p>
    <span>① {openzc:pagelist custom="info"/}</span><br/>
    <span>② {openzc:pagelist custom="text"/}</span><br/>
    <span>③ {openzc:pagelist custom="info1"/}</span>
</p>
<!-------------------------前端调用代码------------------------------->
          
<!-------------------------分页源码内容------------------------------->

分页源码文件位置:“includes/template/YOUR_TEMPLATE/html/modules/tpl/blogpage.tpl”
		  
{type:prev}
<li><a href="[field:page_link/]"><i data-feather="chevron-left"></i></a></li>
{/type:prev}

{type:next}
<li><a href="[field:page_link/]"><i data-feather="chevron-right"></i></a></li>
{/type:next}

{type:first}
<li><a href="[field:page_link/]"> first </a></li>
{/type:first}

{type:last}
<li><a href="[field:page_link/]"> last </a></li>
{/type:last}

{type:list}
<li><a href="[field:page_link/]">[field:page_name/]</a></li>
{/type:list} 

{type:active}
<li class="active"><a href="[field:page_link/]"> [field:page_name/] </a></li>               
{/type:active} 

{type:info}
Showing [field:page_range/] of [field:page_arctotal/] item(s)
{/type:info}

{type:text}
There are [field:page_arctotal/] products.
{/type:text}

{type:info1}
当前范围([field:page_range/]) 总计([field:page_arctotal/])
{/type:info1}          
<!-------------------------分页源码内容------------------------------->