扩展了SharePoint面包屑跨多个站点集合 [英] Extending SharePoint Breadcrumbs across multiple site collections

查看:250
本文介绍了扩展了SharePoint面包屑跨多个站点集合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直试图找到一种方法,在多个网站集的SharePoint面包延伸,我一直无法找到一种方式。我可以设置的门户网站连接的网站集设置链接到其父网站集。但是,这不会只显示一个父网站集。下面是设置的我期待在创建类型的例子。

I’ve been trying to find a way to extend SharePoint breadcrumbs across multiple site collections, and I’ve been unable to find a way. I can set the portal site connection setting on the site collection to link to its parent site collection. But, that will not show only one parent site collection. Here’s an example of the type of setup I’m looking at creating.

根网站,内联网,有一个名为网站管理路径。在网站有网站集名为 HR 位于 /网站/小时/ 。在人力资源还有另外一个管理路径设置所谓的宣传。在推广有一个网站集名为招聘位于 /网站/小时/推广/招聘/ 。因此,当一个用户在招聘现场,我想让他们看到的内部网> HR>招聘作为面包屑。

The root site, Intranet, has a managed path called sites. Under sites there is site collection called HR located at /sites/hr/. Under HR there is another managed path set up called outreach. In outreach there is a site collection called Recruiting located at /sites/hr/outreach/recruiting/. Thus when a user is in the recruiting site, I want them to see Intranet > HR > Recruiting as the breadcrumb trail.

举例网站地图:

<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0">
    <siteMapNode title="Intranet" url="http://intranet/Pages/Default.aspx">
	<siteMapNode title="HR" url="http://intranet/sites/hr/default.aspx">
    		<siteMapNode title="Recruiting" url="http://inranet/hr/outreach/recruiting/default.aspx"/>
    	</siteMapNode>
    </siteMapNode>
</siteMap>

设置上的招聘门户网站的连接,我可以得到的 HR>招聘当你在招聘和设置上的人力资源门户网站的连接,我可以得到的内部网> HR 当你在人力资源网站。我不能,虽然。

Setting the portal site connection on recruiting I can get HR > Recruiting when you’re in recruiting and setting the portal site connection on HR I can get Intranet > HR when you are in the HR site. I can’t though.

我试过用在 SPXmlContentMapProvider 以阅读sitemap文件,但我一直无法得到,要显示在所有当我设置为 SiteMapProvider 为的 GlobalNavigationSiteMap 的在 default.master 的的的SiteMapPath。 (的 GlobalNavigationSiteMap 的是,在网站的顶部创建面包屑的SiteMapPath)。相同的架构运作良好但在一个通用的.NET应用程序,但似乎并没有在SharePoint工作。我也注册正确的站点地图为 defaultProvider 并能够使用它来代替的 TopNavigationMenu 的。 ( TopNavigationMenu 的是全球导航菜单/按钮,在默认的SharePoint布局最上面一栏)。

I’ve tried using the SPXmlContentMapProvider to read the sitemap file, but I’ve been unable to get that to display at all when I set that as the SiteMapProvider for the SiteMapPath of GlobalNavigationSiteMap in the default.master. (GlobalNavigationSiteMap is the SiteMapPath that creates the bread crumbs at the top of the site). The same architecture works well however on a generic .NET application, but does not seem to work in SharePoint. I’ve also properly registered the sitemap as a defaultProvider and been able to use it to replace the TopNavigationMenu. (TopNavigationMenu is the global navigation menu/bar of buttons at the top of the default SharePoint layout).

有没有办法实际构建这个功能到SharePoint?

Is there a way to actually build this functionality into SharePoint?

推荐答案

由于要实现自定义的母版(或自定义默认的),为什么不能代替面包屑控制自己的?或者创建自定义站点地图提供,如果您需要将您的网站地图与SharePoint的生成的地图结合起来。

Since you are implementing a custom masterpage (or customizing the default one), why not replace the breadcrumb control with your own? Or make a custom sitemap provider if you need to combine your sitemap with Sharepoint's generated map.

这篇关于扩展了SharePoint面包屑跨多个站点集合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆