原理:sharepoint2010内部UI版本号为4,sharepoint2007内部UI版本号为3 。
方法1:
使用SharePoint Designer 2010打开需要更改风格模板的网站,点左侧的 母板页
右侧选中default.master,点击上面工具条 “设为默认值” 按钮,所选母版页界面版本为3的网站。此网站的用户界面当前被设置为4。是否要将其更改为版本3?
点击是更改成功。
方法2:
Now in order to revert UI look and feel to the Sharepoint 2007 style we need to run the following program:
1: using (var site = new SPSite("http://bunsen.cn"))
2: {
3: site.RootWeb.UIVersion = 3;
4: site.RootWeb.Update();
5: }
After that the same site will look like this:
No ribbons, no new style – we are back to Sharepoint 2007 now. After playing with old UI lets return back to the modern version:
1: using (var site = new SPSite("http://bunsen.cn"))
2: {
3: site.RootWeb.UIVersion = 4;
4: site.RootWeb.Update();
5: }
And our site again has new UI version with ribbons.