简体   繁体   English

SharePoint-从MySite链接回门户

[英]SharePoint - Link back to the Portal from MySite

We have a custom master page that is deployed to My Site, as well as to the portal. 我们有一个自定义母版页,已部署到“我的网站”以及门户中。 The portal master page has an image, that the user clicks and directs them to the MySite application. 门户网站母版页上有一个图像,用户单击该图像并将其定向到MySite应用程序。 On the My Site master page, we need to be able to facilitate the same functionality. 在“我的网站”母版页上,我们需要能够实现相同的功能。 When a user clicks on an image that is in the global navigation, they need to be directed back to the Portal. 用户单击全局导航中的图像时,需要将他们定向回到门户。 Since the portal will be deployed in different locations, I don't necessarily want to hard code the URL, nor do I want to leave it as an end user configuration (ie read the URL from a list). 由于门户将部署在不同的位置,因此我不一定要对URL进行硬编码,也不必将其保留为最终用户配置(即从列表中读取URL)。 Is there anything in the SharePoint API that we can use that will provide us the URL for the main portal site collection? 我们可以使用SharePoint API中的任何东西来为我们提供主门户网站集的URL吗?

The problem is that one MySite host is assigned to a Shared Service Provider and multiple web applications can be assigned to one Share Service Provider. 问题在于,一个MySite主机被分配给一个共享服务提供者,而多个Web应用程序可以被分配给一个共享服务提供者。 So a MySite could be used for multiple web applications. 因此MySite可以用于多个Web应用程序。

So without any meta infos or conventions it won't be possible to link back to the "right" site collection. 因此,没有任何元信息或约定,就不可能链接回“正确的”网站集。

We added an entry to the Property Bag of the the My Site Host that contains the fully qualified URL to the Portal web application. 我们在“我的网站”主机的“属性”包中添加了一个条目,其中包含指向Portal Web应用程序的标准URL。 We build all relative URL hyperlinks on any of the My Site pages using the portal value from the property bag. 我们使用属性包中的门户网站值在任何“我的网站”页面上构建所有相对URL超链接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM