主题 : 还是关于点击数获取
级别: 进士
UID: 63226
积分:2277 加为好友
威望: 22 精华: 0
主题:261 回复:571
注册时间:2014-06-13
在线时长:0
1#   发表于:2014-10-10 11:35:30  IP:58.72.*.*
我整理了一下代码 



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]
级别: 总版主
UID: 10736
积分:149787 加为好友
威望: 212 精华: 42
主题:297 回复:127674
注册时间:2010-09-08
在线时长:90.1
2#   发表于:2014-10-10 11:40:34  IP:182.221.*.*
你首页怎么调用的
路漫漫其修远兮,吾将上下而求索!
级别: 进士
UID: 63226
积分:2277 加为好友
威望: 22 精华: 0
主题:261 回复:571
注册时间:2014-06-13
在线时长:0
3#   发表于:2014-10-10 13:09:17  IP:58.72.*.*
回复第2楼<span id="views"></span>
1 共1页