將討論區放在首頁

Wednesday, 30 May 2007 20:45 by admin

之前寫過一篇 single blog ,單獨把 Blog 當作首頁的人應該不少,也許會有人也會想把討論區當成首頁

ooto.info 寫了一篇 forums at the Root ( http://ooto.info/archive/2007/05/30/CS2007-Forums-at-the-Root.aspx ),介紹了如何把CS 2007的討論區放在首頁

在 siteurls.config 檔案裡面,可以找到以下這串

 <location name="forums" path="/forums/" themeDir="forums">

首先必須把 path 設為 "/" ,意思為在根目錄,另外加上 physicalPath = "/forums/" 指定實體檔案位置在 /forums/,修改後會長的如下

 <location name="forums" path="/" physicalPath="/forums/" themeDir="forums">

當然,您也可以不需要修改 siteurls.config ,另外將以下內容存成 siteurls_override.config 存到根目錄即可

<?xmlversion="1.0"encoding="utf-8" ?>
<
Overrides>
  <
Overridexpath = "/SiteUrls/locations/location[@name='forums']"mode = "change"name = "path"value = "/" />
  <
Overridexpath = "/SiteUrls/locations/location[@name='forums']"mode = "new"name = "physicalPath"value = "/forums/" />
</
Overrides>