打開(kāi)網(wǎng)站首頁(yè)時(shí)怎么讓地址欄上不顯示出網(wǎng)頁(yè)的擴(kuò)展名_動(dòng)易Cms教程
教程Tag:暫無(wú)Tag,歡迎添加,賺取U幣!
默認(rèn)情況下,動(dòng)易的標(biāo)簽 {$ShowChannel} 輸出時(shí),網(wǎng)站首頁(yè)、頻道首頁(yè)的地址都是{$InstallDir}index.htm、{$InstallDir}Article/index.asp 的形式,如何才能修改為 {$InstallDir}、{$InstallDir}Article/ 的形式呢?
通過(guò)查看文件,可以發(fā)現(xiàn)只需修改 Include/PowerEasy.Common.Front.asp 中的Function GetChannelList(NumNewLine),進(jìn)而改變標(biāo)簽 {$ShowChannel} 的輸出即可。
下面以動(dòng)易開(kāi)源版SiteWeaver™ CMS 6.5為例進(jìn)行說(shuō)明。
第一步,將網(wǎng)站首頁(yè)地址由 {$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)站首頁(yè)") & "</a>" & ChannelLink
Else
strChannel = ChannelLink & "<a class='Channel' href='" & strInstallDir & FileName_SiteIndex & "'>" & XmlText("BaseText", "FirstPage", "網(wǎng)站首頁(yè)") & "</a>" & ChannelLink
End If
將其修改為
If ChannelID = 0 Then
strChannel = ChannelLink & "<a class='Channel2' href='" & strInstallDir & "'>" & XmlText("BaseText", "FirstPage", "網(wǎng)站首頁(yè)") & "</a>" & ChannelLink
Else
strChannel = ChannelLink & "<a class='Channel' href='" & strInstallDir & "'>" & XmlText("BaseText", "FirstPage", "網(wǎng)站首頁(yè)") & "</a>" & ChannelLink
End If第二步,將頻道首頁(yè)地址由 {$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)動(dòng)易Cms教程:
- MAC錯(cuò)誤的解決方法
- 如何屏蔽動(dòng)易后臺(tái)導(dǎo)航里的某個(gè)功能菜單?
- 動(dòng)易.NET版本留言自動(dòng)選定欄目方法
- 動(dòng)易SiteFactoty整合Discuz!NT3.0
- 在任意位置獲取根節(jié)點(diǎn)ID標(biāo)簽
- 如何開(kāi)啟SiteWeaver6.8的支持,反對(duì)功能
- Windows 2008安裝動(dòng)易.NET系統(tǒng)之四----動(dòng)易系統(tǒng)安裝篇
- Windows 2008安裝動(dòng)易.NET系統(tǒng)之三----數(shù)據(jù)庫(kù)篇
- Windows 2008安裝動(dòng)易.NET系統(tǒng)之二----IIS、目錄環(huán)境配置篇
- 數(shù)據(jù)庫(kù)修復(fù),SQL Server 2005內(nèi)部操作不一致的處理
- 如何安裝動(dòng)易.net程序權(quán)限配置
- 為什么提示對(duì)Windows系統(tǒng)文件夾下的Temp目錄沒(méi)有訪問(wèn)權(quán)限?
動(dòng)易Cms教程教程Rss訂閱Cms教程搜索
動(dòng)易Cms教程推薦
- FLV視頻內(nèi)容頁(yè)直接播放標(biāo)簽制作和使用說(shuō)明
- 如何查看動(dòng)易產(chǎn)品及組件的版本號(hào)
- 如何修改注冊(cè)等待時(shí)間?
- 用自定義標(biāo)簽實(shí)現(xiàn)2006的時(shí)間問(wèn)題
- 《動(dòng)易網(wǎng)站管理系統(tǒng)》2005版幻燈片效果操作示例
- 《動(dòng)易網(wǎng)站管理系統(tǒng)》2005版商城頻道標(biāo)簽
- 關(guān)于子域名模式下登錄登處示載入中的問(wèn)題
- 背景更換顏色插件(保護(hù)視力色)
- 怎么樣才能加了圖片水印但圖片的容量不會(huì)增大
- 動(dòng)易如何寫{$MY_首頁(yè)推薦圖片文章}標(biāo)簽
- 相關(guān)鏈接:
復(fù)制本頁(yè)鏈接| 搜索打開(kāi)網(wǎng)站首頁(yè)時(shí)怎么讓地址欄上不顯示出網(wǎng)頁(yè)的擴(kuò)展名
- 教程說(shuō)明:
動(dòng)易Cms教程-打開(kāi)網(wǎng)站首頁(yè)時(shí)怎么讓地址欄上不顯示出網(wǎng)頁(yè)的擴(kuò)展名
。