主题 : 关于标签[@cms_content_list] |
级别: 贡士
|
1# 发表于:2014-03-24 16:56:43 IP:27.75.*.*
|
||||
---|---|---|---|---|---|
级别: 状元
|
2# 发表于:2014-03-24 16:58:08 IP:182.205.*.*
通过下标,取下标大于4小于9 |
||
---|---|---|---|
级别: 贡士
|
3# 发表于:2014-03-24 17:12:53 IP:27.75.*.*
回复第2楼 不太明白
[@cms_content_list count='5' titLen='8' channelOption='1' channelId=62 orderBy='2'] [#list tag_list as a] <li style=" "><a href="javascript:void(0);" class="thickbox" myrel="galleryplants"> <img title="undefined" alt="undefined" src="${a.typeImg!site.defImg}" style=""></a> </li> [/#list] [/@cms_content_list] 然后我要求5-10或者最后5个内容,应该怎么写 |
||
---|---|---|---|
级别: 状元
|
4# 发表于:2014-03-24 17:18:31 IP:182.205.*.*
[#list tag_list as a] [#if a_index <4<9] <li style=" "><a href="javascript:void(0);" class="thickbox" myrel="galleryplants"> <img title="undefined" alt="undefined" src="${a.typeImg!site.defImg}" style=""></a> </li> </#if> [/#list] |
||
---|---|---|---|
级别: 贡士
|
5# 发表于:2014-03-24 17:31:16 IP:27.75.*.*
回复第4楼 我这样写的 但是报错。 把if标签去掉就不报错了
<ul style="position: relative; list-style-type: none; z-index: 1; padding: 0px; margin: 0px; left: -5610px; "> [@cms_content_list count='5' titLen='8' channelOption='1' channelId=62 orderBy='2'] [#list tag_list as a] [#if a_index <4<9] <li style="overflow: hidden; float: left;width:230px;height:150px; "><a href="javascript:void(0);" class="thickbox" myrel="galleryplants"> <img title="undefined" alt="undefined" src="${a.typeImg!site.defImg}" style="width:100%;height:100%;"></a> </li> </#if> [/#list] [/@cms_content_list] </ul> |
||
---|---|---|---|
级别: 贡士
|
7# 发表于:2014-03-24 17:40:16 IP:27.75.*.*
回复第6楼 是在这里判断吗
<img title="undefined" alt="undefined" src="="[#if a.typeImg??]${a.typeImg!site.defImg}[/#if]" style="width:100%;height:100%;"> 我这样写还是不行 |
||
---|---|---|---|
1
共1页