原帖如:http://topic.csdn.net/u/20091211/20/297f9e66-301c-4ce3-ab2a-5beaf7c6f9ca.html?63126
根据下面的回复有个疑问,
forever_kingdom
说的两种方法中:
可以两种方式让你的自定义页面显示出来
1.自己编写SiteMapProvider然后添加到WebConfig中去
2.JS将你要显示的东西,添加到前台页面上。
疑问的是,如果我要修改SharePoint的站点将要每次都手动修改,有没有可以像Feature一样直接部署激活就可以的方法来解决手动的操作?
<siteMap defaultProvider="CurrentNavigation" enabled="true">
<providers>
<add name="CONavigationProvider" type="Microsoft.SharePoint.Navigation.SPNavigationProvider, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c" />
<add name="SPNavigationProvider" type="Microsoft.SharePoint.Navigation.SPNavigationProvider, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c" />
------解决方案--------------------
回复原贴了 LZ参考参考
------解决方案--------------------
我只说修改web.config的问题
在vs中建一个sharepont项目 vs2010里自带sharepoint2010和07的模板
然后增加一个feature 再Add event receiver 在
public override void FeatureActivated(SPFeatureReceiverProperties properties)
{
}
里可以写修改web.config的代码
这样feature激活的时候就会修改web.config
还原web.config的代码可以写在 FeatureDeactivating里
------解决方案--------------------
打不开你的链接 悲剧