我使用Umbraco 7.7製作一個站點,並且我有一個如下所示的內容樹。更改Umbraco中活動語言的URL 7
使用Vorto新聞(圖像呼號)爲所有語言版本作出(目前只有荷蘭語版本)。
問題是新聞頁面的網址。現在,它看起來像這樣:
http://localhost/data/nieuws
我會喜歡這個改變爲:
http://localhost/nl/nieuws
或者,如果我有一個其他語言:
http://localhost/en/news
這還必須爲工作新聞兒童頁面。例如:
http://localhost/nl/nieuws/nieuwe-directeur
http://localhost/en/news/new-CEO
我試圖做一個屬性別名爲umbracoUrlName
但只改變URL的最後一部分,它不可能爲其他語言的同一頁創建多個網址。
這是結果。我已經輸入本文nl/nieuws
和URL被改變本作的新聞頁面:
http://localhost/data/nlnieuws
我也嘗試了Vorto編輯器爲多國語言,但我有這個網址:
http://localhost:51086/data/values-nl-benlnieuws-dtdguid36eceba8-82ce-4362-954b-a870c65adfc1/
我應該如何改變依賴於actieve語言的URL
發現了一把umbraco論壇更簡單的答案。檢查這個鏈接:https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/88635-change-url-dependent-of-the-active-language-in-umbraco-7#評論-280214但謝謝你的幫助:) –