主题 : 求指导啊......快哭了!!
级别: 童生
UID: 24404
积分:38 加为好友
威望: 0 精华: 0
主题:5 回复:8
注册时间:2011-10-13
在线时长:0
1#   发表于:2011-10-13 15:52:27  IP:124.235.*.*
[@cms.ChnlList id='1890' count='4' inner='1';ctt] 
    <div class="jsbox"> 
    <div class="jsjs"> 
    <div class="jsimg"><img alt="" width="104" height="106" src="${ctt.imgUrl}" /></div> 
    <div class="jst"> 
    <h1>${ctt.name}</h1> 
    ${ctt.content}<span><a href="${ctt.url}">&gt;&gt;更多</a></span></div> 
    </div> 
    <div class="jskc">[@cms.ArtiList chnlId=ctt.id count='3' inner='1';c] 
    <div><img border="0" alt="" src="${c.imgUrl!}" /><a href="${c.url}">${c.tit(10)}</a></div> 
    [/@cms.ArtiList]</div> 
    </div> 
    [/@cms.ChnlList] 

如果content内容很多 样式就难看了,所以希望显示的conten 有个长度的限制!!
级别: 总版主
UID: 10736
积分:148486 加为好友
威望: 205 精华: 42
主题:287 回复:126202
注册时间:2010-09-08
在线时长:17.14
2#   发表于:2011-10-13 16:16:41  IP:115.214.*.*
您是想控制标题还是内容?
路漫漫其修远兮,吾将上下而求索!
级别: 童生
UID: 24404
积分:38 加为好友
威望: 0 精华: 0
主题:5 回复:8
注册时间:2011-10-13
在线时长:0
3#   发表于:2011-10-13 16:25:08  IP:124.235.*.*
回复第2楼 控制content 内容!
级别: 总版主
UID: 10736
积分:148486 加为好友
威望: 205 精华: 42
主题:287 回复:126202
注册时间:2010-09-08
在线时长:17.14
4#   发表于:2011-10-13 16:33:52  IP:115.214.*.*
控制内容可以直接在编辑器的长文章中插入分页符
路漫漫其修远兮,吾将上下而求索!
级别: 童生
UID: 24404
积分:38 加为好友
威望: 0 精华: 0
主题:5 回复:8
注册时间:2011-10-13
在线时长:0
5#   发表于:2011-10-14 09:58:24  IP:124.235.*.*
回复第4楼 我的意识不是那种控制分页 !!就是ctt.content怎么才能像ctt.title(10) 这样截取内容多少啊
级别: 总版主
UID: 10736
积分:148486 加为好友
威望: 205 精华: 42
主题:287 回复:126202
注册时间:2010-09-08
在线时长:17.14
6#   发表于:2011-10-14 10:15:06  IP:220.40.*.*
2.X的还真不记得了,您可以看下程序里面是怎么控制的
路漫漫其修远兮,吾将上下而求索!
级别: 童生
UID: 22094
积分:42 加为好友
威望: 0 精华: 0
主题:5 回复:9
注册时间:2011-07-25
在线时长:0
7#   发表于:2011-10-15 10:42:50  IP:60.135.*.*
   [@cms_content_list channelId='494' count='9' titLen='17' descLen='67' orderBy='8' channelOption='1' typeId='1']
              [#list tag_list as d]
                    
                        [#if d_index = 0]
                        [#else]
                     <li><a href="${d.url}" title="${d.title}" target="_blank">[@text_cut s=d.title len=titLen append=append/]</a></li>
                     [/#if]
                 
                    
                      [/#list]
                       [/@cms_content_list]



[@text_cut s=d.title len=titLen append=append/]这个就行了 len是控制长度

我去 貌似 不是一个 版本 那你参考下吧
1 共1页