主题 : 首页下主体显示问题
级别: 白丁
UID: 95
积分:37 加为好友
威望: 0 精华: 0
主题:7 回复:4
注册时间:2009-06-09
在线时长:0
1#   发表于:2009-06-11 15:59:04  IP:58.119.*.*
<div class="page_row">
    <div class="page_main_msg left">
    <div class="cycle_news_row">[@cms.ChnlList id='' sysType='article' hasContent='1' inner='1';c]
    <div class="list cycle_news">
    <div class="list_bar"><img height="28" alt="" width="39" align="left" src="${root}/default/tianyuan/img/zyimg73_33.gif" /><a target="_blank" style="margin-left: -10px" href="${c.url}">${c.name}</a></div>
    <div class="list_content">[@cms.ArtiList chnlId=c.id sysContent='1-1' titLen='20' count='6' lineHeight='3'lineHeight='3' dateFormat='4' datePosition='2' headMark='1' target='1'/]</div>
    </div>
[/@cms.ChnlList]
    <div style="clear: both"></div>
    </div>
    </div>
    <div style="clear: both"></div>
    </div>
怎么改这里只要显示两个呢~
级别: 白丁
UID: 3
积分:2415 加为好友
威望: 0 精华: 0
主题:23 回复:1614
注册时间:2009-06-02
在线时长:0
2#   发表于:2009-06-11 16:02:09  IP:59.133.*.*
直接在模板里写两个自定义标签,指定栏目id,例如:
[@cms.ArtiList chnlId='19' count='7'inner='1';a]
 <a href="${a.outerUrl}" title="${a.title}" target="_blank">${a.tit(21)}</a>
${a.releaseDate?string("MM-dd")}
[/@cms.ArtiList]
生命在于折腾!
级别: 白丁
UID: 95
积分:37 加为好友
威望: 0 精华: 0
主题:7 回复:4
注册时间:2009-06-09
在线时长:0
3#   发表于:2009-06-11 16:27:10  IP:58.119.*.*
不见得捏
版主~~
1 共1页