主题 : 图库文章的类型图怎么调用?
级别: 童生
UID: 113486
积分:27 加为好友
威望: 5 精华: 0
主题:5 回复:63
注册时间:2017-05-22
在线时长:0
1#   发表于:2017-05-25 00:50:16  IP:182.189.*.*
调用的标签是什么?麻烦版主告知一下
级别: 童生
UID: 113486
积分:27 加为好友
威望: 5 精华: 0
主题:5 回复:63
注册时间:2017-05-22
在线时长:0
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] ----
这个错误是什么意思?
级别: 版主
UID: 70293
积分:78391 加为好友
威望: 1 精华: 0
主题:7 回复:68397
注册时间:2014-12-03
在线时长:0
3#   发表于:2017-05-25 08:30:01  IP:106.166.*.*
你标签写错了吧
1
级别: 童生
UID: 113486
积分:27 加为好友
威望: 5 精华: 0
主题:5 回复:63
注册时间:2017-05-22
在线时长:0
4#   发表于:2017-05-25 17:10:54  IP:222.204.*.*
回复第3楼我是这么写的,做图库列表,还有图库内容也打不开咋回事呢,我是按照你们说的写的。
级别: 版主
UID: 70293
积分:78391 加为好友
威望: 1 精华: 0
主题:7 回复:68397
注册时间:2014-12-03
在线时长:0
5#   发表于:2017-05-25 17:11:44  IP:106.166.*.*
完整的标签发下
1
级别: 童生
UID: 113486
积分:27 加为好友
威望: 5 精华: 0
主题:5 回复:63
注册时间:2017-05-22
在线时长:0
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>
这个是列表页
级别: 童生
UID: 113486
积分:27 加为好友
威望: 5 精华: 0
主题:5 回复:63
注册时间:2017-05-22
在线时长:0
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>这是图库文章页
级别: 版主
UID: 70293
积分:78391 加为好友
威望: 1 精华: 0
主题:7 回复:68397
注册时间:2014-12-03
在线时长:0
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]
列表标签都没写
1
级别: 童生
UID: 113486
积分:27 加为好友
威望: 5 精华: 0
主题:5 回复:63
注册时间:2017-05-22
在线时长:0
9#   发表于:2017-05-25 17:29:38  IP:222.204.*.*
回复第8楼我昨晚就是你这么写的,生成页面的时候还是报最上面那个错误
级别: 版主
UID: 70293
积分:78391 加为好友
威望: 1 精华: 0
主题:7 回复:68397
注册时间:2014-12-03
在线时长:0
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] ---- 
1
1 2 > >| 共2页