Umbraco/常見問題解答
| 此頁面可能需要更新以反映當前知識。 您可以幫助更新它,討論進度,或請求幫助。 |
這是一個常見問題的列表。
Umbraco 提供官方的雲託管服務
許多網路主機也提供 Umbraco 託管。
如果您有自己的資料中心或伺服器,您可以自行託管 Umbraco。
如果在安裝之前將web.config中的鍵“umbracoEnableStat”從false更改為true,則可能會出現此錯誤。在使用嚮導完成安裝過程之前,該鍵不得更改為除false之外的任何其他值。
似乎安裝已準備就緒,但由於某種原因無法繼續。嘗試瀏覽到https:///install,安裝可能會繼續(如果您的安裝在https://中)。
當 Umbraco 安裝在虛擬目錄中時,也可能會出現此錯誤。當您的虛擬目錄名為 myvirtualdir 時,更改 web.config,使鍵 umbracoReservedPaths 和 umbracoPath 包含虛擬目錄的名稱,例如 <add key="umbracoReservedPaths" value="/myvirtualdir/umbraco,/myvirtualdir/install/" /> 和 <add key="umbracoPath" value="/myvirtualdir/umbraco" />
以上內容可能存在誤導,Umbraco 不支援安裝在虛擬目錄中。
安裝成功後,出現以下錯誤
No node found (https:///default.aspx?umbPage=/default.aspx, '/root/node [@urlName = ""] | /root/node')
這是因為還沒有頁面。轉到您的管理區域 (http://foo.bar/umbraco),登入並先建立一些內容。
這裡有三個螢幕截圖在這裡,將向您介紹 Umbraco UI 以及如何開始建立文件型別和模板。
SMTP 伺服器設定在 web.config 檔案中,該檔案位於您的 Umbraco 安裝的根資料夾中。
您需要設定以下鍵
<add key="umbracoSmtpServer" value="127.0.0.1"/>
通知的傳送者設定在 umbracoSettings.xml 中,該檔案位於您 Umbraco 安裝根目錄下的 config 資料夾中。
您需要修改以下部分以包含您要使用的電子郵件地址作為傳送者
<notifications> <!-- the email that should be used as from mail when umbraco sends a notification --> <email>darren@xxxx.com</email> </notifications>
您可能還需要更改位於同一目錄下的 formHandlers.xml 中的設定
<parameter alias="sender">robot@umbraco.dk</parameter>
通知電子郵件訊息設定在您 Umbraco 安裝目錄下的 umbraco\config\lang 目錄中的相應語言本地化 xml 檔案中。
您需要修改以下部分
<area alias="notifications" version="2.1"> <key alias="notifications" version="2.1">Notifications</key> <key alias="editNotifications" version="2.1">Edit your notification for %0%</key> <key alias="mailSubject" version="2.1">[%0%] Notification about %1% performed on %2%</key> <key alias="mailBody" version="2.1"> Hello %0% This is an automated mail to inform you that the task '%1%' has been performed on the page '%2%' by the user '%3%' Go to http://%4%/umbraco/default.aspx?section=content&id=%5% to edit. </key> </area>
開啟 /config/umbracoSettings.xml 找到 <error404>1</error404> 行,並將 1 替換為您要顯示的頁面的 ID。
<errors> <!-- the id of the page that should be shown if the page is not found --> <error404>1</error404> </errors>
如果您使用的是 IIS7,則必須在 web.config 中新增以下內容;
<system.webServer> <httpErrors existingResponse="PassThrough" /> </system.webServer>
為什麼要啟用它?這會將頁面連結從示例 http://www.mydomain.com/news.aspx 更改為 http://www.mydomain.com/news
開啟 /config/umbracoSettings.xml 找到 <umbracoUseDirectoryUrls>false</umbracoUseDirectoryUrls> 行,並將 false 替換為 true。然後應該像這樣
<umbracoUseDirectoryUrls>true</umbracoUseDirectoryUrls>
然後您必須讓 IIS 處理所有請求。
請按照以下說明 [1]
只需在查詢字串中將“altTemplate”引數設定為所需模板的別名即可。例如
http://foo.bar/page.aspx?altTemplate=MyAltTemplateAlias
可以透過在列表中的第一個樣式表中新增一些編輯器 CSS 來更改此行為。
#holderBody {
background: #fff;
}
#holder {
border: 1px solid #ccc;
padding: 10px;
margin: 5px;
text-align: left;
}

您可以從以下地方獲得幫助:
- Umbraco 論壇:https://our.umbraco.com/forum