主题 : 分页能加一个页码输入框吗 |
级别: 解元
![]() |
1# 发表于:2017-07-11 16:04:04 IP:219.211.*.*
|
||||
---|---|---|---|---|---|
级别: 版主
![]() |
2# 发表于:2017-07-11 16:06:18 IP:182.217.*.*
[@cms_pagination sysPage='1'/]
用这个分页标签试下 |
||
---|---|---|---|
级别: 解元
![]() |
3# 发表于:2017-07-11 16:10:45 IP:219.211.*.*
回复第2楼
The following has evaluated to null or missing: ==> tag_pagination [in template "WEB-INF/t/cms_sys_defined/style_page/channel_1.html" at line 7, column 12] ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use [#if myOptionalVar??]when-present[#else]when-missing[/#if]. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign p = tag_pagination [in template "WEB-INF/t/cms_sys_defined/style_page/channel_1.html" at line 7, column 1] - Reached through: @cms_pagination channelId=channel.id ... [in template "WEB-INF/t/cms/www/default/channel/news.html" at line 132, column 5] ---- Java stack trace (for programmers): ---- freemarker.core.InvalidReferenceException: [... Exception message was already printed; see it above ...] at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:134) at freemarker.core.Assignment.accept(Assignment.java:139) at freemarker.core.Environment.visit(Environment.java:326) at freemarker.core.Environment.visit(Environment.java:332) at freemarker.core.Environment.include(Environment.java:2505) at freemarker.core.Environment.include(Environment.java:2419) at com.jeecms.core.web.util.FrontUtils.includePagination(FrontUtils.java:455) at com.jeecms.cms.action.directive.PaginationDirective.execute(PaginationDirective.java:54) at freemarker.core.Environment.visit(Environment.java:426) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:101) at freemarker.core.Environment.visit(Environment.java:326) at freemarker.core.Environment.visit(Environment.java:332) at freemarker.core.Environment.visit(Environment.java:332) at freemarker.core.Environment.process(Environment.java:305) at freemarker.template.Template.process(Template.java:384) |
||
---|---|---|---|
级别: 版主
![]() |
4# 发表于:2017-07-11 16:11:56 IP:182.217.*.*
[@cms_content_page]
[#list tag_pagination.list as a] [/#list] [@cms_pagination sysPage='1'/] </div> [/@cms_content_page] 你这写的什么 |
||
---|---|---|---|
级别: 解元
![]() |
5# 发表于:2017-07-11 16:13:41 IP:219.211.*.*
回复第4楼
额,不是把cms_content_page换成cms_pagination吗? |
||
---|---|---|---|
级别: 解元
![]() |
7# 发表于:2017-07-11 16:15:05 IP:219.211.*.*
回复第6楼
<div class="newsList content" style="height: auto;"> [@cms_content_page channelId=c.id count='20' sysPage='1' titLen=titLen append='...' orderBy='2' dateFormat='yyyy-MM-dd' channelOption='1'] <ul style="width: 94%;"> [#list tag_pagination.list as a] <li> <a href="${a.url}" title="${a.title}">[@text_cut s=a.title len=titLen append=append/]</a> <span class="date">${a.date?string(dateFormat)}</span> </li> [/#list] </ul> [/@cms_content_page] </div> 那应该怎么加? |
||
---|---|---|---|
级别: 解元
![]() |
9# 发表于:2017-07-11 16:18:07 IP:219.211.*.*
回复第8楼
跟之前的效果是一样的啊 ![]() |
||
---|---|---|---|