主题 : 生成静态页面后分页错误 |
级别: 童生
![]() |
1# 发表于:2017-05-04 11:39:18 IP:58.36.*.*
|
||||
---|---|---|---|---|---|
级别: 童生
![]() |
3# 发表于:2017-05-04 15:53:12 IP:58.36.*.*
用的默认的模版include/page.html
<div class="page-large"> [#assign p=tag_pagination/] <div style="display:inline-block;"> [#if p.firstPage][#else]<a href="#" class="prev-page" onclick="location.href=encodeURI('${hrefFormer}[#if p.prePage gt 1]_${p.prePage}[/#if]${hrefLatter}');"></a>[/#if] [#if p.pageNo lte 3] [#if p.totalPage gt 3] [#list 1..3 as i] <a [#if i==p.pageNo]class="Num on"[#else]class="Num"[/#if] href="#" onclick="location.href=encodeURI('${hrefFormer}_${i}${hrefLatter}');">${i}</a> [/#list] <a class="none">...</a><a [#if i==p.pageNo]class="Num on"[#else]class="Num"[/#if] href="#" onclick="location.href=encodeURI('${hrefFormer}_${p.totalPage}${hrefLatter}');">${p.totalPage}</a> [#else] [#list 1..p.totalPage as i] <a [#if i==p.pageNo]class="Num on"[#else]class="Num"[/#if] href="#" onclick="location.href=encodeURI('${hrefFormer}_${i}${hrefLatter}');">${i}</a> [/#list] [/#if] [#else] [#assign first=p.pageNo-2/] [#assign last=p.pageNo/] <a class="Num" href="#" onclick="location.href=encodeURI('${hrefFormer}_1${hrefLatter}');">1</a> [#if first gt 2]<a class="Num none">...</a>[/#if] [#list first..last as i] <a [#if i==p.pageNo]class="Num on"[#else]class="Num"[/#if] href="#" onclick="location.href=encodeURI('${hrefFormer}_${i}${hrefLatter}');">${i}</a> [/#list] [#if p.totalPage!=p.pageNo] [#if last lt p.totalPage-1]<a class="none">...</a>[/#if] <a class="Num " href="#" onclick="location.href=encodeURI('${hrefFormer}_${p.totalPage}${hrefLatter}');">${p.totalPage}</a> [/#if] [/#if] [#if p.lastPage][#else]<a class="next-page" href="#" onclick="location.href=encodeURI('${hrefFormer}_${p.nextPage}${hrefLatter}');"></a>[/#if] </div> </div> |
||
---|---|---|---|
级别: 童生
![]() |
5# 发表于:2017-05-04 16:07:23 IP:58.36.*.*
[@cms_content_page count='6' orderBy='5' titLen='30' channelId=channel.id channelOption='1' dateFormat='yyyy-MM-dd']
<div class="tssjList jcspList clearfix"> [#list tag_pagination.list as a] <div class="tssjItem" [#if (a_index+1)%3=1]style="margin-left:0;"[/#if]> <a class="tssjImg" href="${a.url}" target="_blank"><img src="${a.titleImg!site.defImg}"></a> <h1 style="font-size:16px;">【${a.ctgName}】<a href="${a.url}" target="_blank" style="line-height:24px;">[@text_cut s=a.title len=titLen append='...'/]</a></h1> <p>${a.date?string(dateFormat)}</p> <div id="caseBlanche"> <div id="rond"> <div id="test"></div> </div> <div id="load"></div> </div> </div> [/#list] </div> [#include "../include/page.html"/] [/@cms_content_page] |
||
---|---|---|---|
级别: 童生
![]() |
9# 发表于:2017-05-12 10:01:54 IP:58.36.*.*
静态页从第2页或者第二页之后的页面点击第一页的时候链接地址是:index_1.html,打不开。
后台生产的静态页面是index.html,怎么把链接地址改成index.html? |
||
---|---|---|---|
级别: 版主
![]() |
10# 发表于:2017-05-12 10:03:15 IP:106.167.*.*
http://bbs.jeecms.com/bug/51249.jhtml
用11月7号那个修复包 |
||
---|---|---|---|
1
共1页