打開網(wǎng)站首頁時怎么讓地址欄上不顯示出網(wǎng)頁的擴(kuò)展名_動易Cms教程
教程Tag:暫無Tag,歡迎添加,賺取U幣!
默認(rèn)情況下,動易的標(biāo)簽 {$ShowChannel} 輸出時,網(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} 的輸出即可。
下面以動易開源版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
相關(guān)動易Cms教程:
- MAC錯誤的解決方法
- 如何屏蔽動易后臺導(dǎo)航里的某個功能菜單?
- 動易.NET版本留言自動選定欄目方法
- 動易SiteFactoty整合Discuz!NT3.0
- 在任意位置獲取根節(jié)點(diǎn)ID標(biāo)簽
- 如何開啟SiteWeaver6.8的支持,反對功能
- Windows 2008安裝動易.NET系統(tǒng)之四----動易系統(tǒng)安裝篇
- Windows 2008安裝動易.NET系統(tǒng)之三----數(shù)據(jù)庫篇
- Windows 2008安裝動易.NET系統(tǒng)之二----IIS、目錄環(huán)境配置篇
- 數(shù)據(jù)庫修復(fù),SQL Server 2005內(nèi)部操作不一致的處理
- 如何安裝動易.net程序權(quán)限配置
- 為什么提示對Windows系統(tǒng)文件夾下的Temp目錄沒有訪問權(quán)限?
- 相關(guān)鏈接:
- 教程說明:
動易Cms教程-打開網(wǎng)站首頁時怎么讓地址欄上不顯示出網(wǎng)頁的擴(kuò)展名
。