siteweaver 自定义文章列表字体颜色的设置方法

2012-02-24 浏览:1117
siteweaver 自定义文章列表字体颜色的设置方法
评论:(0)复制地址

动易Siteweaver默认自定义列表是不能显示标题字体颜色等属性的。

要想让自定义列表显示颜色需要修改include文件夹的Powereasy.Common.Front.asp,方法如下:

打开include文件夹的Powereasy.Article.asp,找到2352行左右的Private Function GetCustomFromLabel(strTemp, strList)函数

找到下面的代码

        If TitleLen > 0 Then
            strTemp = PE_Replace(strTemp, "{$Title}", GetSubStr(rsCustom("Title"), TitleLen, ShowSuspensionPoints))
        Else
            strTemp = PE_Replace(strTemp, "{$Title}", rsCustom("Title"))
        End If

将这段代码改成

        If TitleLen > 0 Then
            strTemp = PE_Replace(strTemp, "{$Title}", GetInfoList_GetStrTitle(rsCustom("Title"), TitleLen, rsCustom("TitleFontType"), rsCustom("TitleFontColor")))
        Else
            strTemp = PE_Replace(strTemp, "{$Title}", GetInfoList_GetStrTitle(rsCustom("Title"), 0, rsCustom("TitleFontType"), rsCustom("TitleFontColor")))
        End If

因为这里我们需要用到字体颜色,字体类型两个字段,所以我们还要修改一下SQL语句,加入这两个字段.

还是找到这个函数的

    sqlCustom = sqlCustom & "A.ArticleID,A.ChannelID,A.ClassID,A.Title,A.Subheading,A.Keyword,A.Intro,A.DefaultPicUrl"

替换成

    sqlCustom = sqlCustom & "A.ArticleID,A.ChannelID,A.ClassID,A.Title,A.TitleFontType,A.TitleFontColor,A.Subheading,A.Keyword,A.Intro,A.DefaultPicUrl"


 

评论:(0)复制地址
发布:苗景云 | 分类:IT技术&设计 | Tags:siteweaver

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。