怎么去掉作者后的省略号?-动易CMS教程

来源:模板无忧 作者:动易网络更新时间:2008-05-05点击:


问题:如何去掉作者后的省略号?
解答:从动易2006Sp6升级到SiteWeaver6.5后,如某一篇文章写两个以上的作者,作者长度设置为20,但是作者显示全了后面也会有省略号。但在2006中没这个问题,请问应该怎么修改?

1、设置作者显示长度,如:文章中心治理--文章中心设置--前台样式

*

设置设置大点。

2、修改Include\PowerEasy.Common.Content.asp中314行的Private Function GetAuthorInfo(tmpAuthorName, iChannelID)的相关代码

Private Function GetAuthorInfo(tmpAuthorName, iChannelID)
Dim i, tempauthor, authorarry, temprs, temparr
If IsNull(tmpAuthorName) Or tmpAuthorName = "未知" Or tmpAuthorName = "佚名" Then
GetAuthorInfo = tmpAuthorName
Else
authorarry = Split(tmpAuthorName, "|")
For i = 0 To UBound(authorarry)
tempauthor = tempauthor & "<a href='" & strInstallDir & "ShowAuthor.asp?ChannelID=" & iChannelID & "&AuthorName=" & authorarry(i) & "' title='" & authorarry(i) & "'>" & GetSubStr(authorarry(i), AuthorInfoLen, False) & "</a>"
If i <> UBound(authorarry) Then tempauthor = tempauthor & "|"
Next
GetAuthorInfo = tempauthor
End If
End Function
也就是红色的代码改为False,默认是Ture。

相关动易CMS教程:
最新评论:
loading.. 评论加载中....
发表评论:不能超过250字节,请自觉遵守互联网相关政策法规.
  • 昵称: 验证: