主题 : cms_content_page标签,生成静态页面报错 |
级别: 童生
![]() |
1# 发表于:2016-05-17 09:02:20 IP:117.48.*.*
|
||||
---|---|---|---|---|---|
级别: 童生
![]() |
3# 发表于:2016-05-17 09:11:34 IP:49.229.*.*
回复第2楼
会不会和我的栏目设置有关,我的栏目设置贴在附件里面了, 这是模板内容:我拷贝的试用版里面的:[@cms_content_page count='10' orderBy='4' channelId='1' channelOption='2' dateFormat='yyyy-MM-dd'] [#list tag_pagination.list as a] <div class="hdNews hasPic"> [#if a.typeImg??] <a href="${a.url}" target="_blank" class="pic" style="border:1px solid #ccc;"> <img src="${a.typeImg!site.typeImg}" /> </a> [/#if] <a href="${a.url}" title="${a.title}" target="_blank"> <h2>[@text_cut s=a.title len=22 /][#if a.new]<img src="${base}/${site.newPic!}"/>[/#if]</h2> </a> <p> [@text_cut s=a.desc len=60 append='...'/] <span style="color:#999">(${a.date?string(dateFormat)})</span> </p> </div> [/#list] <div style="clear:both;"></div> <div class="pagesite"> [@cms_pagination sysPage='1'/] </div> [/@cms_content_page] 附件是我的栏目设置 |
||
---|---|---|---|
级别: 童生
![]() |
5# 发表于:2016-05-17 09:12:25 IP:49.229.*.*
![]() |
||
---|---|---|---|
级别: 童生
![]() |
7# 发表于:2016-05-17 09:13:07 IP:49.229.*.*
回复第4楼
The following has evaluated to null or missing: ==> hrefFormer [in template "WEB-INF/t/cms_sys_defined/style_page/channel_1.html" at line 11, column 62] Tip: If the failing expression is known to be legally null/missing, either specify a default value with 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 parenthessis: (myOptionVar.foo)!myDefault, (myOptionVar.foo)?? The failing instruction (print stack trace for 3 more): ==> ${hrefFormer} [in template "WEB-INF/t/cms_sys_defined/style_page/channel_1.html" at line 11, column 60] |
||
---|---|---|---|
级别: 童生
![]() |
9# 发表于:2016-05-17 09:15:38 IP:117.48.*.*
回复第8楼
是的,是在顶级栏目下,上面的图片我贴出来了设置 |
||
---|---|---|---|