日韩天天综合网_野战两个奶头被亲到高潮_亚洲日韩欧美精品综合_av女人天堂污污污_视频一区**字幕无弹窗_国产亚洲欧美小视频_国内性爱精品在线免费视频_国产一级电影在线播放_日韩欧美内地福利_亚洲一二三不卡片区

打開網(wǎng)站首頁時怎么讓地址欄上不顯示出網(wǎng)頁的擴(kuò)展名_動易Cms教程

編輯Tag賺U幣
教程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

查看更多 動易Cms教程  動易Cms模板

共2頁上一頁12下一頁
來源:模板無憂//所屬分類:動易Cms教程/更新時間:2008-02-16
相關(guān)動易Cms教程