主题 : @cms_channel_list标签的使用 |
级别: 管理员
![]() |
22# 发表于:2021-05-19 15:46:59 IP:59.211.*.*
[@cms_content_page channelId=channel.id count='15'pageNo=1 titLen='60' append='...' orderBy='4' dateFormat='YYYY-MM-dd']
[#list tag_pagination.content as a] <li> <a href="${a.url}" title="[@text_cut s=a.title /]" >[@text_cut s=a.title len=titLen append=append/]</a> <span>${a.releaseTime?string(dateFormat)} </span> </li> [/#list] </ul> <div class="fy"> [@cms_pagination sysPage='1'/] </div> </div> [/@cms_content_page] 这个是我们分页标签的用法 |
||
---|---|---|---|
级别: 举人
![]() |
23# 发表于:2021-05-19 16:00:54 IP:123.203.*.*
FreeMarker template error (DEBUG mode; use RETHROW in production!):
The following has evaluated to null or missing: ==> tag_pagination.content [in template "WEB-INF/t/cms/pyms/pyms/channel/zcfg_ckgd_index.html" at line 131, column 28] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- 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: #list tag_pagination.content as a [in template "WEB-INF/t/cms/pyms/pyms/channel/zcfg_ckgd_index.html" at line 131, column 21] - Reached through: @cms_content_page channelId=channel.i... [in template "WEB-INF/t/cms/pyms/pyms/channel/zcfg_ckgd_index.html" at line 129, column 21] ---- Java stack trace (for programmers): ---- freemarker.core.InvalidReferenceException: [... Exception message was already printed; see it above ...] at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:134) |
||
---|---|---|---|