简体   繁体   English

Sharepoint MySite:重定向快速启动URL

[英]Sharepoint MySite: Redirecting the Quick launch url

I'm personalizing the MySite page with a custom controller and custom aspx, based in the original ones inside the SPSMSITEHOST folder. 我正在使用SPSMSITEHOST文件夹中的原始控制器和定制aspx来个性化MySite页面。 What I've done is copy them in my project, create a new controller .ascx and modify the copy of person.aspx and conten.aspx. 我要做的是将它们复制到我的项目中,创建一个新的控制器.ascx并修改person.aspx和conten.aspx的副本。 Then I indicate in the the onet.xml the new path for my pages this way: 然后以这种方式在onet.xml中指示页面的新路径:

<NavBar Name="$Resources:spscore,SubNavTab_Overview_Text;" Url="person.aspx" />
<NavBar Name="$Resources:spscore,SubNavTab_Content_Text;" Url="personcontent.aspx" />
<NavBar Name="$Resources:spscore,SubNavTab_Tags_Text;" Url="_layouts/CustomMySite/thoughts.aspx" />
<NavBar Name="$Resources:spscore,SubNavTab_Colleagues_Text;" Url="_layouts/CustomMySite/MyContactLinks.aspx" />
<NavBar Name="$Resources:spscore,SubNavTab_Memberships_Text;" Url="_layouts/CustomMySite/MyMemberships.aspx" />

The thing is everything is working great. 事情是一切都很好。 Every element in the quick launch menu is pointing to the right custom url and everything. 快速启动菜单中的每个元素都指向正确的自定义网址和所有内容。 Everything works great BUT the personcontent.aspx and I'm turning crazy here. 一切都很好,但personcontent.aspx却让我发疯。 The person.aspx is loaded in the same way and it works, why doesn't the personcontent.aspx? person.aspx以相同的方式加载并且可以工作,为什么personcontent.aspx不? Should I change the url somewhere else? 我应该在其他地方更改网址吗?

Thanks! 谢谢!

I got with the problem. 我有这个问题。 The url's are ok, but not the file type. 网址可以,但文件类型不行。 It's necessary to mark them as Ghostable 有必要将它们标记为可鬼

<Modules>
 <Module Name="Default">
   <File Url="personcontent.aspx" Type="Ghostable"></File>
   <File Url="blog.xsl"></File>
   <File Url="tagprofile.aspx" Type="Ghostable">
     <AllUsersWebPart WebPartZoneID="LeftZone" WebPartOrder="1">
       ...

This made the trick for me. 这对我来说是个窍门。

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

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