元数据导航具有变化的变化 - 使用网站集合集或变体网站术语集?
-
10-12-2019 - |
题
当使用启用变体的Metadata导航时,默认值是以下(假设语言en-US和DE-DE):
- 网站集( http://example.org/ )
- site de-de( http://example.org/de-de )
- 网站en-US( http://example.org/en-us )
发布门户的默认值是使用元数据导航。 SharePoint创建一个每个站点的一个术语集(即站点集的一个导航术语集,每个新变体站点一个)。
所以,现在我有三个术语集:
- 网站导航
- 变异导航
- 变异导航(zh-li>
默认情况下,变体站点 not 从站点集中继承导航。这意味着如果我在源变量(de-de)中创建新页面并将导航元数据项分配,则该术语将自动复制到另一个的变型术语集(因此从“变体导航”中复制了
term
到“变化导航(en-US)”)。
这里是我的问题: 通过这样做,“友好的URL”是如此相同的页面:
- http://example.org/de-de/freundlicheseite
- http://example.org/en-en/friendlypage
我希望的是剥离语言部分(de / en),我希望将URL成为以下内容:
- http://example.org/freundlichesheite
- http://example.org/friendlypage
与自动生成的术语集(每个变型站点)似乎可能是可能的,或者是吗?我是否必须从网站集中继承所有变体网站的导航,并手动创建条款 - 我的意思是我会丢失所有的“自动复制到目标变体术语集”功能?
解决方案
There isn't an "out-of-the-box" way to accomplish this. However, you could create your own custom Site Map Provider and in your code get the data from the Managed Metadata Service. Then you can modify the information however you need to.
Here is some info to get you started:
TaxonomySession (How you get the metadata): http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.taxonomy.taxonomysession(v=office.14).aspx
Sample custom site map provider: http://msdn.microsoft.com/en-us/library/cc789625(v=office.14).aspx