主题 : cuowu
级别: 贡士
UID: 92160
积分:726 加为好友
威望: 1 精华: 0
主题:53 回复:236
注册时间:2016-09-02
在线时长:0
1#   发表于:2017-10-20 09:09:02  IP:106.87.*.*
The following has evaluated to null or missing: ==> c.contentImg [in template "WEB-INF/t/cms/www/mobile/index/index.html" at line 55, column 44] ---- 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: ${c.contentImg} [in template "WEB-INF/t/cms/www/mobile/index/index.html" at line 55, column 42] - Reached through: @cms_channel_list parentId="95" [in template "WEB-INF/t/cms/www/mobile/index/index.html" at line 51, column 2] ----




这是什么错误?
级别: 总版主
UID: 10736
积分:149787 加为好友
威望: 212 精华: 42
主题:297 回复:127674
注册时间:2010-09-08
在线时长:90.1
2#   发表于:2017-10-20 09:14:37  IP:182.218.*.*
c.contentImg 你调用这个字段属性的完整标签发下
路漫漫其修远兮,吾将上下而求索!
级别: 贡士
UID: 92160
积分:726 加为好友
威望: 1 精华: 0
主题:53 回复:236
注册时间:2016-09-02
在线时长:0
3#   发表于:2017-10-20 09:16:10  IP:106.87.*.*
 [@cms_channel_list parentId='95']  
          
             [#list tag_list as c]
                         <a href="${c.url}"  target="_self" [#if channel??&&(channel.id==c.id||(channel.parent??&&channel.parent.id==c.id))] class="selected" [/#if]>
                         <span><img src="${c.contentImg}"  width="312" height="80" class="mt16"  alt="" /></span></a>
             [/#list]
        [/@cms_channel_list]
级别: 总版主
UID: 10736
积分:149787 加为好友
威望: 212 精华: 42
主题:297 回复:127674
注册时间:2010-09-08
在线时长:90.1
4#   发表于:2017-10-20 09:17:19  IP:182.218.*.*
${c.contentImg}改成${c.contentImg!} 试试
路漫漫其修远兮,吾将上下而求索!
级别: 贡士
UID: 92160
积分:726 加为好友
威望: 1 精华: 0
主题:53 回复:236
注册时间:2016-09-02
在线时长:0
5#   发表于:2017-10-20 09:23:54  IP:106.87.*.*
这个专业特色不分成栏目点击进入这个页面,页面中的办学特色,主修课程在分成栏目,怎么实现?
级别: 总版主
UID: 10736
积分:149787 加为好友
威望: 212 精华: 42
主题:297 回复:127674
注册时间:2010-09-08
在线时长:90.1
6#   发表于:2017-10-20 09:31:10  IP:182.218.*.*
你用内容列表循环出办学特色的内容不就可以吗?
路漫漫其修远兮,吾将上下而求索!
级别: 贡士
UID: 92160
积分:726 加为好友
威望: 1 精华: 0
主题:53 回复:236
注册时间:2016-09-02
在线时长:0
7#   发表于:2017-10-20 09:34:34  IP:106.87.*.*
那我品牌专业是不是需要建模型,栏目,模板,然后点进去才能对应相应的这个专业下的办学特色,主修课程等呀
级别: 总版主
UID: 10736
积分:149787 加为好友
威望: 212 精华: 42
主题:297 回复:127674
注册时间:2010-09-08
在线时长:90.1
8#   发表于:2017-10-20 09:48:31  IP:182.218.*.*
对的
路漫漫其修远兮,吾将上下而求索!
级别: 贡士
UID: 92160
积分:726 加为好友
威望: 1 精华: 0
主题:53 回复:236
注册时间:2016-09-02
在线时长:0
9#   发表于:2017-10-20 09:50:44  IP:106.87.*.*
 [@cms_channel_list parentId='95']          
             [#list tag_list as c]
 
<div class="weui-flex">
<div class="weui-flex__item speciality-text">
            <h4 class="weui-media-box__title">${c.name}</h4>
          
</div>
<div class="weui-flex__item speciality-image" >
     <img src="images/jk.jpg">
            <div class="triangle"></div>
</div>
</div>

             [/#list]
        [/@cms_channel_list]
我这个只能调出一级栏目下的二级栏目名称,我怎么调出二级栏目中录入的描述和标题?
级别: 总版主
UID: 10736
积分:149787 加为好友
威望: 212 精华: 42
主题:297 回复:127674
注册时间:2010-09-08
在线时长:90.1
10#   发表于:2017-10-20 10:04:49  IP:182.218.*.*
调用二级栏目描述和标题你当然要写二级栏目的id了
路漫漫其修远兮,吾将上下而求索!
1 共1页