默認情況下,動易的標簽 {$ShowChannel} 輸出時,網站首頁、頻道首頁的地址都是{$InstallDir}index.htm、{$InstallDir}Article/index.asp 的形式,如何才能修改為 {$InstallDir}、{$InstallDir}Article/ 的形式呢?
通過查看文件,可以發現只需修改 Include/PowerEasy.Common.Front.asp 中的Function GetChannelList(NumNewLine),進而改變標簽 {$ShowChannel} 的輸出即可。
下面以動易開源版SiteWeaver™ CMS 6.5為例進行說明。
第一步,將網站首頁地址由 {$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", "網站首頁") & "</a>" & ChannelLink
Else
strChannel = ChannelLink & "<a class='Channel' href='" & strInstallDir & FileName_SiteIndex & "'>" & XmlText("BaseText", "FirstPage", "網站首頁") & "</a>" & ChannelLink
End If
If ChannelID = 0 Then
strChannel = ChannelLink & "<a class='Channel2' href='" & strInstallDir & "'>" & XmlText("BaseText", "FirstPage", "網站首頁") & "</a>" & ChannelLink
Else
strChannel = ChannelLink & "<a class='Channel' href='" & strInstallDir & "'>" & XmlText("BaseText", "FirstPage", "網站首頁") & "</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下一頁學習交流
- 綠毒越獄軟件 完美越獄4.21教程12-21
- htcg15怎么刷機?htcg15刷機教程12-21
- HTC hd7刷安卓2.2全教程12-21
- mpkg軟件下載和卸載的方法12-21
- 網站后臺系統設置的網站地址格式寫法07-09
- 防止重復提交js按鈕變灰07-09
- 不同時間顯示不同的廣告代碼07-09
- iframe框架調用高度自適應方法07-09
- 備份數據庫出現問題的解決方法07-09
熱門圖片猜你喜歡的新聞
新聞熱點
疑難解答
圖片精選