多语言变体 - 如何本地化导航?
我们正在为 2010 年多语言网站创建变体结构。我们希望我们的导航基于网站集的网站/子网站结构。问题在于,开箱即用的 SharePoint 导航从网站名称创建链接,而该网站名称恰好已本地化到源网站。我们同意 URL 中包含源站点名称,我们只希望导航使用本地化文本。
我知道解决方法是关闭目标站点上基于站点的导航并手动执行此操作,但这会变得很麻烦,因为我们预计会有数百个子站点。
我们希望导航看起来像这样的一个示例:
EN-US(英文源站点)
导航中的链接 |网址
首页 | www.consoso.com/en-us/Pages/default.aspx
工作| www.consoso.com/en-us/Work/Pages/default.aspx
de-DE(德语目标网站)
导航中的链接 |网址
海姆 | www.consoso.com/de-de/Pages/default.aspx
阿尔贝特 | www.consoso.com/de-de/Work/Pages/default.aspx
We are creating the variation structure for a multilingual 2010 site. We would like our navigation to be based upon the site/subsite structure of the site collection. The problem is that the out-of-the-box SharePoint navigation creates links from the site name, which happens to be localized to the source site. We are ok with the URL's having the source site's name in it, we just want the navigation to use localized texts.
I know that a work-around is to turn off site-based navigation on the target site and do it manually, but this will become cumbersome as we anticipate having a few hundred subsites.
An example of what we would like our navigation to look like:
EN-US (English Source Site)
Link in Navigation | URL
Home | www.consoso.com/en-us/Pages/default.aspx
Work | www.consoso.com/en-us/Work/Pages/default.aspx
de-DE (German target site)
Link in Navigation | URL
Heim | www.consoso.com/de-de/Pages/default.aspx
Arbeit | www.consoso.com/de-de/Work/Pages/default.aspx
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为你没有那么多选择。对于每个网站,您需要启用多语言选项;这似乎不是遗传的。对子网站标题所做的任何更改都不会自动反映在父网站的导航中。我尝试这样:
所以我认为你没有那么多选择,只是不存在 ootb。可行的(也许是最简单的)是创建一个计时器作业,它递归地处理您的网站集/网站并重新创建所有子网站的导航链接。只要有一点逻辑,您还可以丢弃任何其他(外部)链接。
但也许您同时找到了一个不错的选择?我也在研究多语言/变体选项,所以我很想知道:)
I think you don't have that much options. For each web, you need to enable the multilanguage option; it doesn't seem like this is inherited. Any changes made to the subweb's title don't automatically reflect in the navigation of the parent site. I tried like this:
So I don't think you have that many options, it's just not there ootb. What could work (and perhaps is the most easiest) is creating a timer job which recursively processes your site collections / webs and recreates the navigation links for all subsites. With a little logic there, you could also discard any other (external) links.
But perhaps you found a good alternative in the meantime? I'm also researching the multilanguage / variation options, so I'm eager to find out :)