主题 : cms.ArtiList自定义两列显示的问题 |
级别: 童生
![]() |
1# 发表于:2010-12-01 13:06:22 IP:124.220.*.*
|
||||
---|---|---|---|---|---|
级别: 童生
![]() |
2# 发表于:2010-12-01 13:28:23 IP:59.138.*.*
您好,加个[#if (i+1)%2==0]<br/>[/#if] 就可以显示2行了
|
||
---|---|---|---|
级别: 童生
![]() |
3# 发表于:2010-12-01 13:34:50 IP:124.220.*.*
不是,您没明白我的意思,就是我执行上面的代码后,我想列出文章属性为焦点图的两列的效果,但是目前是区分不出来那个栏目底下的焦点图属性,只是把该栏目下全部的都取出来并两列显示了!
|
||
---|---|---|---|
级别: 童生
![]() |
5# 发表于:2010-12-01 13:51:01 IP:124.220.*.*
是的,但我无论写3还是4,想得到该栏目下所属的文章分类信息,可是他总是读取的栏目下所有的数据,如果直接单独以标签 [@cms.ArtiList sysTpl='0' chnlId='2' count='20' sysContent='1-1' orderBy='0' titLen='14' lineHeight='3' headMark='1' target='1' style='5' attr='4' rollCols='3'/] 这么写可以得到属于4的文章信息,但他不能两列显示,所以我像如主题发布一样那么写的,但他就全部读取栏目信息了,不认attr='4'
|
||
---|---|---|---|
级别: 童生
![]() |
6# 发表于:2010-12-01 14:01:05 IP:59.138.*.*
您好,内嵌式的自定义标签里attr属性会失效,这个是个小BUG,您可以使用第一种自定义标签的写法
http://bbs.jeecms.com/fabu/82.htm |
||
---|---|---|---|
级别: 童生
![]() |
7# 发表于:2010-12-01 14:07:33 IP:124.220.*.*
[#elseif style=='7']
[#list pagination.list as ctt ] <img src="${root}/shucai/article/img/dian2.gif" width="9" height="23" /><span class="top_01"> <a href="${ctt.url}" title="${ctt.title}" target="_blank">${ctt.stit(titLen)}</a>${ctt.releaseDate?string("yyyy-MM-dd")}</span><br /> [/#list] [#list pagination.list as ctt ]这块,我如何取得循环的变量i啊,也就是我要判断循环到第二次的时候,然后执行操作。能给个大概例子吗 |
||
---|---|---|---|
级别: 童生
![]() |
8# 发表于:2010-12-01 14:20:48 IP:59.138.*.*
第二次?
[#elseif style=='7'] [#list pagination.list as ctt ] [#if ctt==1] <img src="${root}/shucai/article/img/dian2.gif" width="9" height="23" /><span class="top_01"> <a href="${ctt.url}" title="${ctt.title}" target="_blank">${ctt.stit(titLen)}</a>${ctt.releaseDate?string("yyyy-MM-dd")}</span><br /> [/#list] [#list pagination.list as ctt ] |
||
---|---|---|---|
级别: 童生
![]() |
9# 发表于:2010-12-01 14:44:04 IP:124.220.*.*
[#if ctt==1] ?? ctt是一个对象,不能这样判断的吧,我按照你这么写了,没显示效果
|
||
---|---|---|---|
级别: 童生
![]() |
10# 发表于:2010-12-01 16:19:55 IP:59.138.*.*
[#elseif style=='7']
[#list pagination.list as ctt ] [#if ctt_index==1] <img src="${root}/shucai/article/img/dian2.gif" width="9" height="23" /><span class="top_01"> <a href="${ctt.url}" title="${ctt.title}" target="_blank">${ctt.stit(titLen)}</a>${ctt.releaseDate?string("yyyy-MM-dd")}</span><br /> [/#list] [#list pagination.list as ctt ] freemarker语法问题 |
||
---|---|---|---|
1
共1页