我整理了一下代码
head 以上部分
内容获取代码
[@cms_content_list channelId='72' image='0' orderBy='0' titLen='20' count='7' new='0' showDesc='0' target='1' channelOption='1' siteId=site.id ]
[#list tag_list as a]
<li><span class="tb"></span><a href="${a.url}">[@text_cut s=a.title len=titLen /]</a><span class="dj"><a><span id="views"></span></a></span></li>
[/#list]
[/@cms_content_list]
这是全部内容了 不知道那里出错 查看新闻详细页面是正常的 获取方法也正常 但是我用在别的地方就报错
错误信息
The following has evaluated to null or missing: ==> content [in template "WEB-INF/t/cms/www/default/index/index.html" at line 29, column 29] 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: ==> ${content.id} [in template "WEB-INF/t/cms/www/default/index/index.html" at line 29, column 27] |
|