主题 : 特殊循环 |
级别: 举人
![]() |
21# 发表于:2015-12-18 15:25:18 IP:116.16.*.*
|
||||
---|---|---|---|---|---|
级别: 版主
![]() |
22# 发表于:2015-12-18 15:26:30 IP:182.242.*.*
[#list tag_list as a]
[#if a_index<8] [/#if] [/#list] |
||
---|---|---|---|
级别: 举人
![]() |
23# 发表于:2015-12-18 15:34:52 IP:116.16.*.*
有没有什么属性 就是指定 去取第几个 我可以先取前四个 再取序号为5,6,7,8,的
|
||
---|---|---|---|
级别: 版主
![]() |
26# 发表于:2015-12-18 15:40:39 IP:182.242.*.*
[@cms_content_list count='4' typeId='4' orderBy='4' titLen='30' channelId='89' channelOption='1']
[#list tag_list as a] [#if a_index<8] <a href="${a.url}" target="_blank"><img src="${a.typeImg!site.defImg}" title=""><span>[@text_cut s=a.title len=titLen /]</span></a> [/#if] [/#list] [/@cms_content_list] |
||
---|---|---|---|
级别: 举人
![]() |
27# 发表于:2015-12-18 15:42:14 IP:116.16.*.*
<ul class="slides_container">
<li> [@cms_content_list count='4' typeId='4' orderBy='4' titLen='30' channelId='89' channelOption='1'] [#list tag_list as a] [#if a_index<4] <a href="${a.url}" target="_blank"><img src="${a.typeImg!site.defImg}" title=""><span>[@text_cut s=a.title len=titLen /]</span></a> [/#if] [/#list] [/@cms_content_list] </li> <li> [@cms_content_list count='4' typeId='4' orderBy='4' titLen='30' channelId='89' channelOption='1'] [#list tag_list as a] [#if 4<a_index<8] <a href="${a.url}" target="_blank"><img src="${a.typeImg!site.defImg}" title=""><span>[@text_cut s=a.title len=titLen /]</span></a> [/#if] [/#list] [/@cms_content_list] </li> </ul> |
||
---|---|---|---|
级别: 版主
![]() |
29# 发表于:2015-12-18 15:43:53 IP:182.242.*.*
[@cms_content_list count='4' typeId='4' orderBy='4' titLen='30' channelId='89' channelOption='1']
[#list tag_list as a] [#if a_index<8&&a_index>3] <a href="${a.url}" target="_blank"><img src="${a.typeImg!site.defImg}" title=""><span>[@text_cut s=a.title len=titLen /]</span></a> [/#if] [/#list] [/@cms_content_list] </li> 下面的判断条件要这样写 |
||
---|---|---|---|