問題:如何去掉作者后的省略號?
解答:從動易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教程 動易Cms模板
來源:模板無憂/ /所屬分類:動易Cms教程/ 更新時間:2008-05-05
相關動易Cms教程:
|