主题 : 图库文章的类型图怎么调用? |
级别: 童生
![]() |
2# 发表于:2017-05-25 01:20:00 IP:182.189.*.*
The following has evaluated to null or missing: ==> [in template "WEB-INF/t/cms/www/default/channel/news_houseList.html" at line 22, column 10] ---- 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.title} [in template "WEB-INF/t/cms/www/default/channel/news_houseList.html" at line 22, column 8] - Reached through: @cms_channel_list channelId=channel.i... [in template "WEB-INF/t/cms/www/default/channel/news_houseList.html" at line 16, column 2] ----
这个错误是什么意思? |
||
---|---|---|---|
级别: 童生
![]() |
4# 发表于:2017-05-25 17:10:54 IP:222.204.*.*
![]() |
||
---|---|---|---|
级别: 童生
![]() |
6# 发表于:2017-05-25 17:18:38 IP:222.204.*.*
回复第5楼<!DOCTYPE html>
<html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>楼盘户型</title> <link rel="stylesheet" type="text/css" href="${resSys}/www/default/css/bootstrap.min.css"> <link rel="stylesheet" type="text/css" href="${resSys}/www/default/css/index.css"> </head> <body> <div class="container-fluid ov-hiden"> <div class="row"> [#include "../include/head.html"/] <div class="housepic">户型图(在售)</div> <!--户型图列表--> [#list pagination.list as c] <a href="${c.url}" target="_self"> <div class="houseImgList"> <a href="${c.url}" target="_self"><div class="imgShow ml2"> <img src="${c.typeImg!site.defImg}" /><!--类型图--> <p>${c.title}</p><!--标题--> <p>${c.shortTitle}</p><!--简短标题--> <p>${c.description}</p><!--摘要--> </div></a> </div> [/#list] </div> </div> <!--end nav--> [#include "../include/notJs_end.html"/] </body> </html> 这个是列表页 |
||
---|---|---|---|
级别: 童生
![]() |
7# 发表于:2017-05-25 17:19:09 IP:222.204.*.*
回复第5楼<!DOCTYPE html>
<html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>32#楼06户型</title> <link rel="stylesheet" type="text/css" href="${resSys}/www/default/css/bootstrap.min.css"> <link rel="stylesheet" type="text/css" href="${resSys}/www/default/css/index.css"> </head> <body> <div class="container-fluid ov-hiden"> <div class="row"> [#include "../include/head.html"/] <div class="houseInfo clearfix"> <div class="housem clearfix"> <p>居室:${arti.title} </p><!--文章标题--> <p><span class="fl">建筑面积:${arti.shortTitle}</p><!--简短标题--> </div> <div class="houseList clearfix"> <ul> <li class="houseListL1">在售</li> <li class="houseListL2">平层</li> <li class="houseListL3">户型方正</li> <li class="houseListL4">主卧带卫</li> </ul> </div> </div> <div class="houseMoney clearfix"> ${arti.description} </div><!--文章摘要--> <div class="houseImg clearfix" id="houseSlider"> <ul class="thumbnails" id="gallery"> [#list content.pictures as p] <figure> <li value="${p_index+1}"><a href="${p.imgPath}"><img src="${p.imgPath}"></a></li> <script type="tExt/JavaScript"> imgsrc[${p_index+1}]="${p.imgPath}"; pictitle[${p_index+1}]="${p.description?trim?replace('\r\n','')}"; </script> </figure> [/#list] </ul> </div> <div class="housePJ"> <label><strong>户型点评:</strong></label> <p>各个空间方正,后期空间利用率高,整个空间采光很好,主卧和客厅均能够保证很好的采光;并且能真正做到全明通透,整个空间空气好。独立书房,功能多变。</p> </div> </div> </div> <!--end nav--> [#include "../include/js_end.html"/] </body> </html>这是图库文章页 |
||
---|---|---|---|
级别: 版主
![]() |
8# 发表于:2017-05-25 17:20:58 IP:106.166.*.*
[@cms_content_list typeId='2' count='5' orderBy='9' channelId='75' channelOption='0']
[#list tag_list as a] <div [#if a_index<1]class="item first"[#else]class="item"[/#if]> <a href="${a.url}" target="_blank" class="title">[@text_cut s=a.title len='19' append='...' /]</a> [#if a_index<1]<div class="first-des clearfix"><a href="${a.url}" target="_blank"><img src="${a.typeImg!}"></a><span>[@text_cut s=a.description! len='34' append='...' /]</span></div>[/#if] </div> [/#list] [/@cms_content_list] 列表标签都没写 |
||
---|---|---|---|
级别: 版主
![]() |
10# 发表于:2017-05-25 17:32:12 IP:106.166.*.*
你报错的不是这个标签吧
@cms_channel_list channelId=channel.i... [in template "WEB-INF/t/cms/www/default/channel/news_houseList.html" at line 16, column 2] ---- |
||
---|---|---|---|