主题 : 图片集 |
级别: 贡士
|
4# 发表于:2017-10-20 15:31:26 IP:106.87.*.*
我有一个模块上部分是轮播图,但是只录入一篇文章,我怎么用在轮播处用图片集调用多张图片
|
||
---|---|---|---|
级别: 总版主
|
6# 发表于:2017-10-20 15:36:17 IP:182.218.*.*
[@cms_content_list typeId='2' recommend='1' channelId='75,76' orderBy='4' titLen='22' channelOption='0' dateFormat='yyyy-MM-dd']
<ul> [#list tag_list as a] <li class="item" [#if a_index<1]style="left:0;"[/#if]><a href="${a.url}" target="_blank"><img src="${a.typeImg!}"><div class="banner-title"><i class="Cpic"></i><span>[@text_cut s=a.title len=titLen /]</span></div></a></li> [/#list] </ul> [/@cms_content_list] </div> <div class="hd" data-scro="controler"> [@cms_content_list typeId='2' recommend='1' channelId='75,76' orderBy='4' titLen='22' channelOption='0' dateFormat='yyyy-MM-dd'] [#list tag_list as a] <b [#if a_index<1]class="down"[/#if]>${a_index+1}</b> [/#list] <span>/${tag_list?size}</span> [/@cms_content_list] |
||
---|---|---|---|
级别: 贡士
|
7# 发表于:2017-10-20 15:39:13 IP:106.87.*.*
The following has evaluated to null or missing: ==> content [in template "WEB-INF/t/cms/www/mobile/index/index.html" at line 141, column 23] ---- 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: #list content.pictures as p [in template "WEB-INF/t/cms/www/mobile/index/index.html" at line 141, column 16] - Reached through: @cms_content_list count="5" orderBy="... [in template "WEB-INF/t/cms/www/mobile/index/index.html" at line 140, column 9] ----
不行,报错 |
||
---|---|---|---|
1
共1页