主题 : 怎么控制上下篇显示多少个字?
级别: 秀才
UID: 116464
积分:79 加为好友
威望: 3 精华: 0
主题:11 回复:27
注册时间:2017-09-11
在线时长:0
1#   发表于:2017-09-20 16:44:48  IP:60.179.*.*
<ul style="text-align: center;"> 
            <li style="line-height: 25px;"><strong>上一篇:</strong>[@cms_content id=content.id next='0' channelId=channel.id][#if tag_bean??]<a href="${tag_bean.url}">${tag_bean.title}</a>[#else]没有了[/#if][/@cms_content]</li> 
            <li style="line-height: 25px;"><strong>下一篇:</strong>[@cms_content id=content.id next='1' channelId=channel.id][#if tag_bean??]<a href="${tag_bean.url}">${tag_bean.title}</a>[#else]没有了[/#if][/@cms_content]</li> 
        </ul> 
像下图一样
级别: 版主
UID: 70293
积分:78391 加为好友
威望: 1 精华: 0
主题:7 回复:68397
注册时间:2014-12-03
在线时长:0
2#   发表于:2017-09-20 16:45:53  IP:106.166.*.*
[@text_cut s=tag_bean.title len='10' append='...']
1
级别: 秀才
UID: 116464
积分:79 加为好友
威望: 3 精华: 0
主题:11 回复:27
注册时间:2017-09-11
在线时长:0
3#   发表于:2017-09-20 16:52:04  IP:60.179.*.*
应该加在哪里为什么我加上的报错
级别: 版主
UID: 70293
积分:78391 加为好友
威望: 1 精华: 0
主题:7 回复:68397
注册时间:2014-12-03
在线时长:0
4#   发表于:2017-09-20 16:52:48  IP:106.166.*.*
替换原来的${tag_bean.title}
[@text_cut s=tag_bean.title len='10' append='...' /]
1
级别: 秀才
UID: 116464
积分:79 加为好友
威望: 3 精华: 0
主题:11 回复:27
注册时间:2017-09-11
在线时长:0
5#   发表于:2017-09-20 16:55:47  IP:60.179.*.*
<ul style="text-align: center;"> 
            <li style="line-height: 25px;"><strong>上一篇:</strong>[@cms_content id=content.id next='0' channelId=channel.id][#if tag_bean??]<a href="${tag_bean.url}">[@text_cut s=tag_bean.title len='10' append='...']</a>[#else]没有了[/#if][/@cms_content]</li> 
            <li style="line-height: 25px;"><strong>下一篇:</strong>[@cms_content id=content.id next='1' channelId=channel.id][#if tag_bean??]<a href="${tag_bean.url}">[@text_cut s=tag_bean.title len='10' append='...']</a>[#else]没有了[/#if][/@cms_content]</li> 
        </ul> 不行还是服务器报错
级别: 版主
UID: 70293
积分:78391 加为好友
威望: 1 精华: 0
主题:7 回复:68397
注册时间:2014-12-03
在线时长:0
6#   发表于:2017-09-20 16:56:42  IP:106.166.*.*
[@text_cut s=tag_bean.title len='10' append='...' /]
1
级别: 秀才
UID: 116464
积分:79 加为好友
威望: 3 精华: 0
主题:11 回复:27
注册时间:2017-09-11
在线时长:0
7#   发表于:2017-09-20 16:59:43  IP:60.179.*.*
谢谢,好了
级别: 版主
UID: 70293
积分:78391 加为好友
威望: 1 精华: 0
主题:7 回复:68397
注册时间:2014-12-03
在线时长:0
8#   发表于:2017-09-20 17:00:02  IP:106.166.*.*
1
1 共1页