默認(rèn)情況下,動(dòng)易的標(biāo)簽 {$ShowChannel} 輸出時(shí),網(wǎng)站首頁、頻道首頁的地址都是{$InstallDir}index.htm、{$InstallDir}Article/index.asp 的形式,如何才能修改為 {$InstallDir}、{$InstallDir}Article/ 的形式呢?
通過查看文件,可以發(fā)現(xiàn)只需修改 Include/PowerEasy.Common.Front.asp 中的Function GetChannelList(NumNewLine),進(jìn)而改變標(biāo)簽 {$ShowChannel} 的輸出即可。
下面以動(dòng)易開源版SiteWeaver™ CMS 6.5為例進(jìn)行說明。
第一步,將網(wǎng)站首頁地址由 {$InstallDir}index.htm 的形式修改為 {$InstallDir} 的形式。
在 Include/PowerEasy.Common.Front.asp 中找到如下代碼:
If ChannelID = 0 Then
strChannel = ChannelLink & "<a class='Channel2' href='" & strInstallDir & FileName_SiteIndex & "'>" & XmlText("BaseText", "FirstPage", "網(wǎng)站首頁") & "</a>" & ChannelLink
Else
strChannel = ChannelLink & "<a class='Channel' href='" & strInstallDir & FileName_SiteIndex & "'>" & XmlText("BaseText", "FirstPage", "網(wǎng)站首頁") & "</a>" & ChannelLink
End If
If ChannelID = 0 Then
strChannel = ChannelLink & "<a class='Channel2' href='" & strInstallDir & "'>" & XmlText("BaseText", "FirstPage", "網(wǎng)站首頁") & "</a>" & ChannelLink
Else
strChannel = ChannelLink & "<a class='Channel' href='" & strInstallDir & "'>" & XmlText("BaseText", "FirstPage", "網(wǎng)站首頁") & "</a>" & ChannelLink
End If第二步,將頻道首頁地址由 {$InstallDir}Article/index.htm 的形式修改為 {$InstallDir}Article/ 的形式。在 Include/PowerEasy.Common.Front.asp 中找到如下代碼:If rsChannel("UseCreateHTML") > 0 Then
strChannel = strChannel & " href='" & ChannelUrl & "/Index" & arrFileExt(rsChannel("FileExt_Index")) & "'"
Else
strChannel = strChannel & " href='" & ChannelUrl & "/Index.asp'"
End If
將其修改為If rsChannel("UseCreateHTML") > 0 Then
strChannel = strChannel & " href='" & ChannelUrl & "/'"
Else
strChannel = strChannel & " href='" & ChannelUrl & "/'"
End If共2頁上一頁12下一頁
學(xué)習(xí)交流熱門圖片猜你喜歡的新聞猜你喜歡的關(guān)注
- Powereasy siteweaver 6.8轉(zhuǎn)換為dedecms5.7
- 動(dòng)易SiteFactory配置文件(web.config)常用
- 動(dòng)易SiteFactory添加.Net控件同時(shí)并結(jié)合VS
- 動(dòng)易SiteFactory后臺(tái)菜單架構(gòu)原理圖文介紹
- 動(dòng)易Cms MAC驗(yàn)證視圖失敗的解決方法
- 動(dòng)易CMS中去掉網(wǎng)站的滾動(dòng)公告的發(fā)布人和發(fā)
- 如何給SW中的評(píng)論加驗(yàn)證碼 給SW中的評(píng)論加
- 動(dòng)易CMS系統(tǒng)功能簡單點(diǎn)評(píng)
- 動(dòng)易系統(tǒng)解決IE8網(wǎng)站后臺(tái)編輯器無效問題
- 動(dòng)易SiteWeaver6.6轉(zhuǎn)換DEDECMS案例
新聞熱點(diǎn)
疑難解答
圖片精選